-
Notifications
You must be signed in to change notification settings - Fork 30
/
tsconfig.json
75 lines (75 loc) · 2.15 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
{
"compilerOptions": {
// 指定ECMAScript目标版本,esnext为最新版本
"target": "esnext",
// 指定生成哪个模块系统代码,esnext为最新版本
"module": "esnext",
// 决定如何处理模块。
"moduleResolution": "node",
// 启用所有严格类型检查选项。
"strict": true,
"noLib": false,
// 禁止对同一个文件的不一致的引用。
"forceConsistentCasingInFileNames": true,
// 允许从没有设置默认导出的模块中默认导入。这并不影响代码的输出,仅为了类型检查。
"allowSyntheticDefaultImports": true,
// 禁用函数参数双向协变检查。
"strictFunctionTypes": false,
// 在 .tsx文件里支持JSX
"jsx": "preserve",
// 解析非相对模块名的基准目录。查看 模块解析文档了解详情。
"baseUrl": ".",
// 允许编译javascript文件。
"allowJs": true,
// 生成相应的 .map文件。
"sourceMap": true,
"esModuleInterop": true,
"resolveJsonModule": true,
// 若有未使用的局部变量则抛错。
"noUnusedLocals": true,
// 若有未使用的参数则抛错。
"noUnusedParameters": true,
// 启用实验性的ES装饰器。
"experimentalDecorators": true,
// 编译过程中需要引入的库文件的列表。
"lib": [
"dom",
"esnext"
],
// 在表达式和声明上有隐含的 any类型时报错。
"noImplicitAny": false,
// 忽略所有的声明文件( *.d.ts)的类型检查。
"skipLibCheck": true,
// 要包含的类型声明文件名列表。
"types": [
"vite/client"
],
"removeComments": true,
// 模块名到基于 baseUrl的路径映射的列表。查看模块解析文档了解详情。
"paths": {
"/@/*": [
"src/*"
],
"/#/*": [
"types/*"
]
}
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue",
"types/**/*.d.ts",
"types/**/*.ts",
"build/**/*.ts",
"build/**/*.d.ts",
"mock/**/*.ts",
"vite.config.ts"
],
"exclude": [
"node_modules",
"dist",
"**/*.js"
]
}