-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtsconfig.json
52 lines (52 loc) · 1.47 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
{
"compilerOptions": {
/** type checking */
"strict": true,
// 默认false,是否检测定义了但是没使用的变量
"noUnusedLocals": true,
// 用于检查是否有在函数体中没有使用的参数
"noUnusedParameters": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": false,
"noImplicitReturns": true,
"noImplicitAny": false,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
/** module */
"baseUrl": "./",
"module": "commonjs",
// default: module === AMD or UMD or System or ES6, then Classic otherwise Node
"moduleResolution": "Node",
"target": "es5",
"lib": ["ESNext", "dom"],
/** emit */
"noEmit": true,
/** Interop Constraints */
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
// "isolatedModules": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"jsx": "react-jsx",
"skipLibCheck": false,
"paths": {
// 指定模块的路径,和baseUrl有关联,和webpack中resolve.alias配置一样
"@/*": ["./src/*"]
}
},
"include": [
"./src",
"./config",
"./types",
"./babel.config.js",
".eslintrc.js",
"./lint-staged.config.js",
"./stylelint.config.js",
"./_antm.config.js",
"./antm.config.js"
],
"compileOnSave": false
}