-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
84 lines (84 loc) · 2.2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"compilerOptions": {
"target": "es5",
// 指定 ECMAScript 版本
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"paths": {
"@/*": [
"./src/*"
],
"@assets/*": [
"./src/assets/*"
],
"@pages/*": [
"./src/pages/*"
],
"@utils/*": [
"./src/utils/*"
],
"@components/*": [
"./src/components/*"
],
"@models/*": [
"./src/models/*"
],
"@images/*": [
"./src/assets/images/*"
],
"@document/*": [
"./src/document/*"
]
},
// 要包含在编译中的依赖库文件列表
"allowJs": true,
// 允许编译 JavaScript 文件
"skipLibCheck": true,
// 跳过所有声明文件的类型检查
"esModuleInterop": true,
// 禁用命名空间引用 (import * as fs from "fs") 启用 CJS/AMD/UMD 风格引用 (import fs from "fs")
"allowSyntheticDefaultImports": true,
// 允许从没有默认导出的模块进行默认导入
"strict": true,
// 启用所有严格类型检查选项
"forceConsistentCasingInFileNames": true,
// 不允许对同一个文件使用不一致格式的引用
"module": "esnext",
// 指定模块代码生成
"moduleResolution": "node",
// 使用 Node.js 风格解析模块
"resolveJsonModule": true,
// 允许使用 .json 扩展名导入的模块
"noEmit": true,
// 不输出(意思是不编译代码,只执行类型检查)
"jsx": "react",
// 在.tsx文件中支持JSX
"sourceMap": true,
// 生成相应的.map文件
"declaration": true,
// 生成相应的.d.ts文件
"noUnusedLocals": true,
// 报告未使用的本地变量的错误
"noUnusedParameters": true,
// 报告未使用参数的错误
"experimentalDecorators": true,
// 启用对ES装饰器的实验性支持
"incremental": true,
// 通过从以前的编译中读取/写入信息到磁盘上的文件来启用增量编译
"noFallthroughCasesInSwitch": true
},
"include": [
"src",
"src/*",
"src/**/*",
"src/types/ui-neumorphism.d.ts"
],
"exclude": [
"node_modules/*",
"node_modules/**",
"build"
],
}