-
Notifications
You must be signed in to change notification settings - Fork 165
/
tsconfig.json
35 lines (35 loc) · 1.15 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
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
// 检查null和undefined
"strictNullChecks": true,
"esModuleInterop": true,
// 相当于下面两个检查noImplicitAny、strictNullChecks
"strict": true,
"noImplicitAny": true /*不能有any类型*/,
"noImplicitThis": true,
"noUnusedLocals": true /*定义未使用的时候会有提示*/,
"noUnusedParameters": true /*检查函数中是否有未使用的变量*/,
"noImplicitReturns": true /*检查函数否有返回值*/,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"paths": {
/*定义别名*/ "@src/*": ["src/*"]
},
"typeRoots": [/*类型声明文件*/ "./types", "./node_modules/@types"]
},
"include": ["src", "ecosystem.config.js"],
"exclude": ["node_modules", "dist"]
}