-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
45 lines (38 loc) · 1.14 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
/**
* @tutorial https://www.tslang.cn/docs/handbook/compiler-options.html
*/
{
/** @type {Record<string, string | boolean>}
* * 编译选项。 */
"compilerOptions": {
/** ? 构建选项 */
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
/** ? 构建模式 */
"moduleResolution": "Node",
"allowImportingTsExtensions": false,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
/** ? 代码校验 */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
/** ? 自定义 */
"allowSyntheticDefaultImports": true
/** ? 类型声明 */
// "types": ["node"]
},
/** * 指定一个包含相对或绝对文件路径的列表。 */
// "files": [],
/** * 指定一个文件 glob 匹配模式。 */
"include": ["packages", "docs/*/**.ts"],
"exclude": ["packages/*/dist", "packages/*/node_modules"],
/** * 项目引用。 */
"references": []
}