From a8db9f9c14846a04c6adbd4f3f89445ed21bbdb0 Mon Sep 17 00:00:00 2001 From: intergrav Date: Sun, 2 Aug 2026 13:00:55 -0400 Subject: [PATCH] chore: simplify tsconfig --- package.json | 2 +- tsconfig.app.json | 20 -------------------- tsconfig.json | 16 ++++++++++++---- tsconfig.node.json | 24 ------------------------ 4 files changed, 13 insertions(+), 49 deletions(-) delete mode 100644 tsconfig.app.json delete mode 100644 tsconfig.node.json diff --git a/package.json b/package.json index 5b14723..68fc496 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "check:tsc": "tsc --noEmit", "check:biome": "biome check", "check:knip": "knip", - "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc --noEmit && biome check && knip", + "check": "svelte-check && biome check && knip", "fix": "biome check --write" }, "devDependencies": { diff --git a/tsconfig.app.json b/tsconfig.app.json deleted file mode 100644 index 43baf24..0000000 --- a/tsconfig.app.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "@tsconfig/svelte/tsconfig.json", - "compilerOptions": { - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "target": "es2023", - "module": "esnext", - "types": ["svelte", "vite/client", "vite-plugin-pwa/svelte"], - "noEmit": true, - /** - * Typecheck JS in `.svelte` and `.js` files by default. - * Disable checkJs if you'd like to use dynamic types in JS. - * Note that setting allowJs false does not prevent the use - * of JS in `.svelte` files. - */ - "allowJs": true, - "checkJs": true, - "moduleDetection": "force" - }, - "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"] -} diff --git a/tsconfig.json b/tsconfig.json index fb12418..d119e87 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,15 @@ { - "files": [], - "references": [ - { "path": "./tsconfig.app.json" }, - { "path": "./tsconfig.node.json" } + "extends": "@tsconfig/svelte/tsconfig.json", + "compilerOptions": { + "target": "ES2022", + "types": ["svelte", "vite/client", "vite-plugin-pwa/svelte", "node"], + "allowArbitraryExtensions": true, + "noEmit": true + }, + "include": [ + "src/**/*.ts", + "src/**/*.svelte", + "vite.config.ts", + "pwa-assets.config.ts" ] } diff --git a/tsconfig.node.json b/tsconfig.node.json deleted file mode 100644 index d4c5b2b..0000000 --- a/tsconfig.node.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", - "target": "es2023", - "lib": ["ES2023"], - "module": "esnext", - "types": ["node"], - "skipLibCheck": true, - - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "verbatimModuleSyntax": true, - "moduleDetection": "force", - "noEmit": true, - - /* Linting */ - "noUnusedLocals": true, - "noUnusedParameters": true, - "erasableSyntaxOnly": true, - "noFallthroughCasesInSwitch": true - }, - "include": ["vite.config.ts", "pwa-assets.config.ts"] -} -- 2.51.2