-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
44 lines (44 loc) · 1.56 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
{
"compilerOptions": {
// 输出文件夹
"outDir": "lib",
// 是否包含可以用于 debug 的 sourceMap
"sourceMap": false,
// 以严格模式解析
"strict": true,
// 类属性允许不初始化
"strictPropertyInitialization": false,
// 采用的模块系统
"module": "es2015",
// 如何处理模块
"moduleResolution": "node",
// 编译输出目标 ES 版本
"target": "es5",
// 允许从没有设置默认导出的模块中默认导入
"allowSyntheticDefaultImports": true,
// 将每个文件作为单独的模块
"isolatedModules": false,
// 启用装饰器
"experimentalDecorators": true,
// 在表达式和声明上有隐含的 any 类型时报错
"noImplicitAny": true,
// 不允许 this 为隐式 any
"noImplicitThis": true,
// 函数并不需要有显式的 return
"noImplicitReturns": false,
// 严格的 null 检查
"strictNullChecks": true,
// 从 tslib 导入外部帮助库: 比如 __extends, __rest 等
"importHelpers": true,
// 编译过程中不打印文件名
"listFiles": false,
// 不移除注释
"removeComments": false,
// 缺少签名索引时禁用 'noImplicitAny' 错误
"suppressImplicitAnyIndexErrors": true,
// 包含的库定义文件
"lib": ["es2015", "es2016", "dom"],
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}