Skip to content

Commit

Permalink
chore: update tsconfig setup (#780)
Browse files Browse the repository at this point in the history
* chore: update tsconfig setup

* chore: use target es2022
  • Loading branch information
bluwy authored Nov 3, 2023
1 parent 213192a commit a784ad4
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions packages/e2e-tests/inspector-vite/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"moduleResolution": "Node16",
"target": "ESNext",
"module": "ESNext",
/**
* svelte-preprocess cannot figure out whether you have
* a value or a type, so tell TypeScript to enforce using
Expand Down
6 changes: 3 additions & 3 deletions packages/e2e-tests/svelte-preprocess/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"moduleResolution": "Bundler",
"target": "ESNext",
"module": "ESNext",
/**
* svelte-preprocess cannot figure out whether you have
* a value or a type, so tell TypeScript to enforce using
Expand Down
6 changes: 3 additions & 3 deletions packages/e2e-tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"include": ["."],
"exclude": ["**/dist/**", "**/build/**", "**/node_modules/**"],
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"target": "ESNext",
"module": "ESNext",
"outDir": "dist",
"baseUrl": ".",
"allowJs": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"moduleResolution": "Bundler",
"skipLibCheck": true,
"noUnusedLocals": true,
"jsx": "preserve",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"moduleResolution": "Node",
"moduleResolution": "Bundler",
"target": "ESNext",
"module": "ESNext",
/**
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/big-component-library/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"moduleResolution": "Bundler",
"target": "ESNext",
"module": "ESNext",
/**
* svelte-preprocess cannot figure out whether you have
* a value or a type, so tell TypeScript to enforce using
Expand Down
6 changes: 3 additions & 3 deletions packages/playground/optimizedeps-include/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"moduleResolution": "Bundler",
"target": "ESNext",
"module": "ESNext",
/**
* svelte-preprocess cannot figure out whether you have
* a value or a type, so tell TypeScript to enforce using
Expand Down
6 changes: 3 additions & 3 deletions packages/vite-plugin-svelte-inspector/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"include": ["src"],
"compilerOptions": {
"noEmit": true,
"target": "ES2020",
"module": "ES2022",
"moduleResolution": "node",
"target": "ES2022",
"module": "Node16",
"moduleResolution": "Node16",
"strict": true,
"noUnusedLocals": true,
"baseUrl": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-svelte/src/handle-hot-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { toRollupError } from './utils/error.js';
* @param {Function} compileSvelte
* @param {import('vite').HmrContext} ctx
* @param {import('./types/id.d.ts').SvelteRequest} svelteRequest
* @param {import('./utils/vite-plugin-svelte-cache').VitePluginSvelteCache} cache
* @param {import('./utils/vite-plugin-svelte-cache.js').VitePluginSvelteCache} cache
* @param {import('./types/options.d.ts').ResolvedOptions} options
* @returns {Promise<import('vite').ModuleNode[] | void>}
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-svelte/src/utils/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'node:path';

/**
* @param {import('../types/options.d.ts').ResolvedOptions} options
* @param {import('./vite-plugin-svelte-cache').VitePluginSvelteCache} cache
* @param {import('./vite-plugin-svelte-cache.js').VitePluginSvelteCache} cache
* @param {import('../types/id.d.ts').IdParser} requestParser
* @returns {void}
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/vite-plugin-svelte/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"include": ["src"],
"compilerOptions": {
"noEmit": true,
"target": "ES2020",
"module": "ES2022",
"moduleResolution": "node",
"target": "ES2022",
"module": "Node16",
"moduleResolution": "Node16",
"strict": true,
"noUnusedLocals": true,
"baseUrl": ".",
Expand Down

0 comments on commit a784ad4

Please sign in to comment.