-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtsconfig.json
35 lines (33 loc) · 1.3 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": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["ESNext", "DOM"],
"module": "NodeNext",
"outDir": "out/server",
"skipLibCheck": true,
"removeComments": false,
"allowJs": true,
"declaration": true,
/* Bundler mode */
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"allowImportingTsExtensions": false,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
"noEmit": false,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true, // 通过下标获取元素,默认添加 undefined 类型
"forceConsistentCasingInFileNames": true, // 必须配置,严格区分导入文件大侠写
"noImplicitReturns": true, // 必须配置,若函数需要返回一个值,那么保证函数每个执行分支都存在返回值
"noImplicitOverride": true, // 必须配置,对父类方法的覆盖,使用 override 关键字指明
"exactOptionalPropertyTypes": false
},
"include": ["src"],
"exclude": ["node_modules", "client"]
}