-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
45 lines (45 loc) · 1.24 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
{
"compilerOptions": {
"target": "esnext", // 编译输出目标 ES 版本
"module": "esnext", // 采用的模块系统
"strict": true,
"jsx": "preserve",
"importHelpers": true, // 从 tslib 导入外部帮助库: 比如__extends,__rest等
"moduleResolution": "node",
"experimentalDecorators": true, // 启用装饰器
"esModuleInterop": true,
"allowSyntheticDefaultImports": true, // 允许从没有设置默认导出的模块中默认导入
"strictPropertyInitialization" : false, // 定义一个变量就必须给它一个初始值
"allowJs": true, // 允许编译javascript文件
"sourceMap": true,
"noImplicitThis": false, // 忽略 this 的类型检查, Raise error on this expressions with an implied any type.
"baseUrl": "./",
"pretty": true, // 给错误和消息设置样式,使用颜色和上下文。
"types": [
"webpack-env",
"jest"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": [
"node_modules",
"config"
]
}