Skip to content

Commit b803f19

Browse files
committed
fix(tsconfig): only apply router types in base preset
1 parent 96079b0 commit b803f19

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"jsx": "preserve",
5+
"lib": ["DOM", "ESNext"],
6+
"baseUrl": ".",
7+
"module": "ESNext",
8+
"moduleResolution": "bundler",
9+
"paths": {
10+
"@/*": ["src/*"]
11+
},
12+
"resolveJsonModule": true,
13+
"types": [
14+
"vite/client",
15+
"unplugin-vue-router/client"
16+
],
17+
"allowJs": true,
18+
"strict": true,
19+
"strictNullChecks": true,
20+
"noUnusedLocals": true,
21+
"esModuleInterop": true,
22+
"forceConsistentCasingInFileNames": true,
23+
"isolatedModules": true,
24+
"skipLibCheck": true
25+
},
26+
"include": [
27+
"src/**/*",
28+
"src/**/*.vue"
29+
],
30+
"exclude": ["dist", "node_modules", "cypress"],
31+
"references": [{ "path": "./tsconfig.node.json" }],
32+
}

template/typescript/default/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
},
1212
"resolveJsonModule": true,
1313
"types": [
14-
"vite/client",
15-
"unplugin-vue-router/client"
14+
"vite/client"
1615
],
1716
"allowJs": true,
1817
"strict": true,

0 commit comments

Comments
 (0)