-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtsconfig.json
42 lines (42 loc) · 1.26 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
{
// 编译选项
"compilerOptions": {
// 解析非相对模块名的基准目录
"baseUrl": "./",
// 启用所有严格类型检查选项
"strict": false,
// 指定生成哪个模块系统代码
"module": "commonjs",
// 决定如何处理模块
"moduleResolution": "node",
// 指定ECMAScript目标版本
"target": "es5",
// 支持 jsx
"jsx": "react",
// 启用实验性的ES装饰器。
"experimentalDecorators": true,
// 忽略所有的声明文件( *.d.ts)的类型检查。
"skipLibCheck": true,
"resolveJsonModule": true,
"sourceMap": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"downlevelIteration": true,
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": false,
// 指定要相对于 baseUrl 选项计算的路径映射
"paths": {
"Config/*": ["./config/*"],
"@/*": ["./src/*"],
"@Images/*": ["./src/images/*"],
"@Static/*": ["./src/static/*"],
"@Components/*": ["./src/components/*"],
"@Layout/*": ["./src/layout/*"],
"@AppPages/*": ["./src/pages/App/*"],
}
},
// 排除文件
"exclude": ["node_modules", "dist"]
}