Skip to content

Commit

Permalink
fix(tsconfig): only apply router types in base preset
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Jun 30, 2024
1 parent 96079b0 commit b803f19
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
32 changes: 32 additions & 0 deletions template/typescript/base/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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" }],
}
3 changes: 1 addition & 2 deletions template/typescript/default/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
},
"resolveJsonModule": true,
"types": [
"vite/client",
"unplugin-vue-router/client"
"vite/client"
],
"allowJs": true,
"strict": true,
Expand Down

0 comments on commit b803f19

Please sign in to comment.