-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
39 lines (39 loc) · 1.08 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
{
"compilerOptions": {
"target": "es5",
"module": "CommonJS",
"jsx": "preserve",
"outDir": "build",
"baseUrl": ".",
"removeComments": false,
// 将编译后的文件注释删掉
"noImplicitAny": true,
// 如果我们没有一些值设置明确类型,编译器会默认认为这个值为any类型
"allowSyntheticDefaultImports": true,
// 允许从没有默认导出的模块中默认导入
"experimentalDecorators": false,
// 开启装饰器
"emitDecoratorMetadata": false,
// 是否为装上去提供元数据支持,关于元数据,也是ES6的新标准,可以通过Reflect提供的静态方法获取元数据,如果需要使用Reflect的一些方法,需要引用ES2015.Reflect这个库
"skipLibCheck": true,
// 跳过声明文件的类型检查
"declaration": true,
"noEmitOnError": true,
"pretty": true,
"lib": [
"ES5",
"ES6",
"ES7",
"DOM"
]
},
"types": [],
"exclude": [
"node_modules",
"jest.config.js"
],
"include": [
"**/*"
],
"compileOnSave": false
}