-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
31 lines (29 loc) · 959 Bytes
/
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
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"types": ["vite/client", "unplugin-icons/types/vue"],
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "Node",
"allowImportingTsExtensions": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
/* Linting */
"strict": true,
"noUnusedLocals": false, // 声明了变量但未读取值则报错(比较喜欢false关闭)
"noUnusedParameters": false, // 声明了形参但未读取值则报错(比较喜欢false关闭)
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.vue", "src/types/**/*.d.ts"],
"references": [{ "path": "./tsconfig.node.json" }]
}