From b803f19814f9d6455042b067b21e787d9be341eb Mon Sep 17 00:00:00 2001 From: John Leider Date: Sun, 30 Jun 2024 11:58:41 -0500 Subject: [PATCH] fix(tsconfig): only apply router types in base preset --- template/typescript/base/tsconfig.json | 32 +++++++++++++++++++++++ template/typescript/default/tsconfig.json | 3 +-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 template/typescript/base/tsconfig.json diff --git a/template/typescript/base/tsconfig.json b/template/typescript/base/tsconfig.json new file mode 100644 index 0000000..301114c --- /dev/null +++ b/template/typescript/base/tsconfig.json @@ -0,0 +1,32 @@ +{ + "compilerOptions": { + "target": "ESNext", + "jsx": "preserve", + "lib": ["DOM", "ESNext"], + "baseUrl": ".", + "module": "ESNext", + "moduleResolution": "bundler", + "paths": { + "@/*": ["src/*"] + }, + "resolveJsonModule": true, + "types": [ + "vite/client", + "unplugin-vue-router/client" + ], + "allowJs": true, + "strict": true, + "strictNullChecks": true, + "noUnusedLocals": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "skipLibCheck": true + }, + "include": [ + "src/**/*", + "src/**/*.vue" + ], + "exclude": ["dist", "node_modules", "cypress"], + "references": [{ "path": "./tsconfig.node.json" }], +} diff --git a/template/typescript/default/tsconfig.json b/template/typescript/default/tsconfig.json index 301114c..c5ed714 100644 --- a/template/typescript/default/tsconfig.json +++ b/template/typescript/default/tsconfig.json @@ -11,8 +11,7 @@ }, "resolveJsonModule": true, "types": [ - "vite/client", - "unplugin-vue-router/client" + "vite/client" ], "allowJs": true, "strict": true,