-
Notifications
You must be signed in to change notification settings - Fork 108
/
tsconfig.json
41 lines (40 loc) · 1.03 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"compilerOptions": {
"target": "ESNext",
"jsx": "preserve",
"lib": ["ESNext", "DOM"],
"useDefineForClassFields": true,
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "Node",
"paths": {
"@/*": ["src/*"],
"#/*": ["types/*"]
},
"resolveJsonModule": true,
"typeRoots": ["./node_modules/@types/", "./types"],
"types": ["vite/client"],
"strict": true,
"noImplicitAny": false,
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": true,
"skipLibCheck": true
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.vue",
"components.d.ts",
"types/**/*.d.ts",
"types/**/*.ts",
"build/**/*.ts",
"build/**/*.d.ts",
"mock/**/*.ts",
"vite.config.ts"
],
"exclude": ["node_modules", "dist", "**/*.js"]
}
// tsconfig.json文件 compilerOptions 常用配置 https://juejin.cn/post/7091530360114118670
// tsconfig 常用配置解析 https://segmentfault.com/a/1190000021421461