-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtsconfig.json
92 lines (92 loc) · 2.96 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"compilerOptions": {
"baseUrl": ".",
"strict": false,
"sourceMap": true,
"moduleResolution": "node",
"rootDir": ".",
"downlevelIteration": true,
"target": "ES5", // 指定ECMAScript目标版本 "ES3"(默认), "ES5", "ES6"/ "ES2015", "ES2016", "ES2017"或 "ESNext"
"lib": [
"esnext",
"dom"
],
"module": "esnext", // 指定生成哪个模块系统代码
"declaration": false, // 生成( *.d.ts)文件
"allowJs": false, // 允许编译 javascript 文件
"jsx": "react", // 在 .tsx文件里支持JSX: "React"或 "Preserve"
"locale": "zh-CN",
"forceConsistentCasingInFileNames": false, // 禁止对同一个文件的不一致的引用
"noImplicitReturns": false, // 不是函数的所有返回路径都有返回值时报错
"noImplicitThis": false, // 当 this表达式的值为 any类型的时候,生成一个错误
"noImplicitAny": false, // 在表达式和声明上有隐含的 any类型时报错
"noUnusedLocals": false, // 若有未使用的局部变量则抛错
"noUnusedParameters": false, // 若有未使用的参数则抛错
"noEmitOnError": false, // 报错时不生成输出文件
"strictNullChecks": false, // 在严格的 null检查模式下, null和 undefined值不包含在任何类型里,只允许用它们自己和 any来赋值
"importHelpers": false, // 从 tslib 导入辅助工具函数(比如 __extends, __rest等)
"suppressImplicitAnyIndexErrors": false, // 阻止 --noImplicitAny对缺少索引签名的索引对象报错
"experimentalDecorators": true, // 启用实验性的ES装饰器
"allowSyntheticDefaultImports": true, // 允许从没有设置默认导出的模块中默认导入。这并不影响代码的输出,仅为了类型检查
"resolveJsonModule": true, //json 导入
"paths": {
"@gantd": [
"packages/gantd/src"
],
"@util": [
"packages/util-g/src"
],
"@color-picker": [
"packages/color-picker-g/src"
],
"@auto-reload": [
"packages/auto-reload-g/src"
],
"@data-cell": [
"packages/data-cell-g/src"
],
"@header": [
"packages/header-g/src"
],
"@submenu": [
"packages/submenu-g/src"
],
"@table": [
"packages/table-g/src"
],
"@grid": [
"packages/grid-g/src"
],
"@schema-form": [
"packages/schema-form-g/src"
],
"@anchor": [
"packages/anchor-g/src"
],
"@smart-table": [
"packages/smart-table-g/src"
],
"@smart-grid": [
"packages/smart-grid-g/src"
],
"@modal": [
"packages/modal-g/src"
],
"@keyevent": [
"packages/keyevent-g/src"
],
"@util/*": [
"packages/util-g/src/*"
]
}
},
"include": [
"packages/**/*",
"stories/**/*"
],
"exclude": [
"node_modules",
"dist",
"packages/node-util-g"
]
}