-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
35 lines (32 loc) · 912 Bytes
/
tsconfig.json
File metadata and controls
35 lines (32 loc) · 912 Bytes
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
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
// 基础配置 - 仅用于编辑器支持
"target": "esnext",
"module": "nodenext",
"moduleResolution": "nodenext",
"lib": ["ES2019", "ES2020", "ESNext"],
// 严格模式
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
// 模块解析
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
// 其他
"skipLibCheck": true,
"composite": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true
}
}