-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
59 lines (59 loc) · 1.31 KB
/
tsconfig.json
File metadata and controls
59 lines (59 loc) · 1.31 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"compilerOptions": {
"incremental": true, // 增量编译
"tsBuildInfoFile": "./buildFile", // 增量编译文件的存储位置
// "diagnostics": true, // 打印诊断信息
"target": "es6",
"module": "esnext",
"jsx": "preserve",
"lib": [
"dom",
"es2017"
],
"baseUrl": ".",
"moduleResolution": "node",
"strict": false,
"allowJs": true,
"noEmit": true,
"noEmitHelpers": true, // 不生成helper函数,而是通过tslib导入,减小code体积
"importHelpers": true, // 从 tslib 导入辅助工具函数
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noUnusedLocals": false,
"noUnusedParameters": true,
"isolatedModules": true,
"removeComments": false,
"preserveConstEnums": true,
"sourceMap": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"paths": {
"$components/*": [
"./components/*"
],
"$lib/*": [
"./lib/*"
],
"$interface": [
"./interface/index.ts"
],
"@/*": [
"./*"
],
}
},
"exclude": [
"dist",
".next",
"out",
"next.config.js",
".vscode",
"node_modules"
],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
]
}