-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
54 lines (52 loc) · 1.39 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
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"lib": ["esnext", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"types": ["vite/client", "element-plus/global"],
/* Bundler mode */
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
/* 确保每个文件都可以安全传输,而不依赖其他导入 */
"isolatedModules": true,
/* 不生成编译后的js文件 */
"noEmit": true,
"jsx": "preserve",
/* 对js文件进行编译 */
"allowJs": true,
"allowSyntheticDefaultImports": true,
/* 检测js代码 */
"checkJs": true,
"sourceMap": true,
/* 不允许隐式的any */
"noImplicitAny": false,
/* 不允许不明确的类型的this */
"noImplicitThis": false,
"noImplicitReturns": false,
/* 严格检查空值 */
"strictNullChecks": false,
"suppressImplicitAnyIndexErrors": false,
/* Linting */
"strict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
"baseUrl": "./",
"paths": {
"@": ["src"],
"@/*": ["src/*"]
}
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/types/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue"
],
"exclude": ["node_modules", "dist", "src/**/*.js", "src/**/*.jsx"],
"references": [{ "path": "./tsconfig.node.json" }]
}