generated from mengxinssfd/lib-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
46 lines (45 loc) · 1.48 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
{
"compilerOptions": {
"baseUrl": ".",
"rootDir": ".",
// "outDir": "lib-es",
// "module": "commonjs",
// "target": "es5",
"lib": ["esnext", "dom"],
"target": "esnext",
"sourceMap": true,
"allowJs": true,
// "jsx": "react",
"moduleResolution": "node",
// "removeComments": true,
// "rootDir": "src",
"forceConsistentCasingInFileNames": false,
"importHelpers": true,
// "suppressImplicitAnyIndexErrors": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"strict": true,
"resolveJsonModule": true,
// "incremental": true // 增量编译tsc,除第一次编译全部之外,其余时候只编译有改动部分,但不会删除掉改名前的文件和d.ts
// "allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"strictPropertyInitialization": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"useUnknownInCatchVariables": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"exactOptionalPropertyTypes": true,
"noImplicitReturns": true,
// "noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false
},
"include": ["__tests__/**/*.ts", "tests/*/*.ts", "src/**/*.d.ts", "src/**/*.ts"]
}