From ff6d67daf1a4dcfe4e70207d18c8a42a8f5b7ec5 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Thu, 1 Jun 2023 10:40:18 +1000 Subject: [PATCH 1/2] chore: Extend base tsconfig for svelte packages --- packages/svelte-query-devtools/tsconfig.json | 22 ++------------------ packages/svelte-query/tsconfig.json | 20 +----------------- tsconfig.json | 1 + 3 files changed, 4 insertions(+), 39 deletions(-) diff --git a/packages/svelte-query-devtools/tsconfig.json b/packages/svelte-query-devtools/tsconfig.json index 4e88910caa..8e1f095104 100644 --- a/packages/svelte-query-devtools/tsconfig.json +++ b/packages/svelte-query-devtools/tsconfig.json @@ -1,25 +1,7 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "allowImportingTsExtensions": true, - "allowJs": true, - "allowSyntheticDefaultImports": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "isolatedModules": true, - "lib": ["DOM", "DOM.Iterable", "ES2020"], - "module": "ES2020", - "moduleResolution": "bundler", - "noEmit": true, - "noImplicitReturns": true, - "noUncheckedIndexedAccess": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "target": "ES2020" + "noEmit": true }, "include": [ "src/**/*.js", diff --git a/packages/svelte-query/tsconfig.json b/packages/svelte-query/tsconfig.json index cd010880a6..e5f7d215b9 100644 --- a/packages/svelte-query/tsconfig.json +++ b/packages/svelte-query/tsconfig.json @@ -1,25 +1,7 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "allowImportingTsExtensions": true, - "allowJs": true, - "allowSyntheticDefaultImports": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "isolatedModules": true, - "lib": ["DOM", "DOM.Iterable", "ES2020"], - "module": "ES2020", - "moduleResolution": "bundler", "noEmit": true, - "noImplicitReturns": true, - "noUncheckedIndexedAccess": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "target": "ES2020", "types": ["vitest/globals", "@testing-library/jest-dom"] }, "include": [ diff --git a/tsconfig.json b/tsconfig.json index b7f6b0dc2c..78aa8504d3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,7 @@ "declarationMap": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, + "isolatedModules": true, "lib": ["DOM", "DOM.Iterable", "ES2020"], "module": "ES2020", "moduleResolution": "node", From 072eb68bf69dad2e8c5fa5225c8e21e68023bc86 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Thu, 1 Jun 2023 15:35:48 +1000 Subject: [PATCH 2/2] Remove isolatedModules --- packages/svelte-query-devtools/tsconfig.json | 1 + packages/svelte-query/tsconfig.json | 1 + tsconfig.json | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/svelte-query-devtools/tsconfig.json b/packages/svelte-query-devtools/tsconfig.json index 8e1f095104..93a8d08ed7 100644 --- a/packages/svelte-query-devtools/tsconfig.json +++ b/packages/svelte-query-devtools/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.json", "compilerOptions": { + "isolatedModules": true, "noEmit": true }, "include": [ diff --git a/packages/svelte-query/tsconfig.json b/packages/svelte-query/tsconfig.json index e5f7d215b9..e11a19e4d4 100644 --- a/packages/svelte-query/tsconfig.json +++ b/packages/svelte-query/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.json", "compilerOptions": { + "isolatedModules": true, "noEmit": true, "types": ["vitest/globals", "@testing-library/jest-dom"] }, diff --git a/tsconfig.json b/tsconfig.json index 78aa8504d3..b7f6b0dc2c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,6 @@ "declarationMap": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "isolatedModules": true, "lib": ["DOM", "DOM.Iterable", "ES2020"], "module": "ES2020", "moduleResolution": "node",