diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index eeb77f55f..bb2f9f885 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -1,20 +1,31 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2022", - "lib": ["ES2022", "DOM", "DOM.Iterable"], - "module": "ESNext", - "moduleResolution": "bundler", + "lib": [ + "ES2022", + "DOM", + "DOM.Iterable" + ], "jsx": "react-jsx", - "strict": true, - "noEmit": true, - "skipLibCheck": true, - "isolatedModules": true, - "verbatimModuleSyntax": true, "resolveJsonModule": true, "noUnusedLocals": true, "noUnusedParameters": true, - "types": ["vite/client", "node"] + "types": [ + "vite/client", + "node" + ] }, - "include": ["src", "vite.config.ts", "scripts"], - "exclude": ["dist", ".output", ".nitro", ".vercel", ".tanstack", "src/**/*.test.ts"] + "include": [ + "src", + "vite.config.ts", + "scripts" + ], + "exclude": [ + "dist", + ".output", + ".nitro", + ".vercel", + ".tanstack", + "src/**/*.test.ts" + ] } diff --git a/examples/tanstack-host/tsconfig.json b/examples/tanstack-host/tsconfig.json index 7d09db98c..9f295e6be 100644 --- a/examples/tanstack-host/tsconfig.json +++ b/examples/tanstack-host/tsconfig.json @@ -1,20 +1,30 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2022", - "lib": ["ES2022", "DOM", "DOM.Iterable"], - "module": "ESNext", - "moduleResolution": "bundler", + "lib": [ + "ES2022", + "DOM", + "DOM.Iterable" + ], "jsx": "react-jsx", - "strict": true, - "noEmit": true, - "skipLibCheck": true, - "isolatedModules": true, - "verbatimModuleSyntax": true, "resolveJsonModule": true, "noUnusedLocals": true, "noUnusedParameters": true, - "types": ["vite/client", "node"] + "types": [ + "vite/client", + "node" + ] }, - "include": ["src", "vite.config.ts"], - "exclude": ["dist", ".output", ".nitro", ".vercel", ".tanstack", ".vite"] + "include": [ + "src", + "vite.config.ts" + ], + "exclude": [ + "dist", + ".output", + ".nitro", + ".vercel", + ".tanstack", + ".vite" + ] } diff --git a/packages/jgengine/tsconfig.json b/packages/jgengine/tsconfig.json index 36772ba7b..fb684e730 100644 --- a/packages/jgengine/tsconfig.json +++ b/packages/jgengine/tsconfig.json @@ -1,19 +1,20 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2022", - "lib": ["ES2022"], - "module": "ESNext", - "moduleResolution": "bundler", - "strict": true, - "noEmit": true, - "skipLibCheck": true, - "isolatedModules": true, - "verbatimModuleSyntax": true, + "lib": [ + "ES2022" + ], "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, - "types": ["node"] + "types": [ + "node" + ] }, - "include": ["src"], - "exclude": ["src/**/*.test.ts"] + "include": [ + "src" + ], + "exclude": [ + "src/**/*.test.ts" + ] } diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 000000000..aa00a3db8 --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "bundler", + "strict": true, + "noEmit": true, + "skipLibCheck": true, + "isolatedModules": true, + "verbatimModuleSyntax": true + } +}