-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
42 lines (42 loc) · 1.84 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": {
"module": "esnext", // 用于指定模块的代码生成规则
"target": "es2018", // 用于指定生成代码的兼容版本
"lib": ["es2018", "dom", "es7", "es6", "es5"], // 编译过程中需要引入的库文件的列表
"sourceMap": false,
"allowJs": true,
"jsx": "react-jsx",
"moduleResolution": "node",
"strict": true, // 启用所有严格类型检查选项
"noUnusedLocals": true, // 不允许未使用的局部变量
"importHelpers": true, // 从 tslib 导入辅助工具函数
"forceConsistentCasingInFileNames": true, // 禁止对同一个文件的不一致的引用。
"removeComments": true, // 删除所有注释,除了以 /!*开头的版权信息。
"esModuleInterop": true, // 可调用的CommonJS模块必须被做为默认导入
"experimentalDecorators": true, // 启用实验性的ES装饰器
"noUnusedParameters": true, // 不允许有未使用的参数
"allowSyntheticDefaultImports": true, // 允许从没有设置默认导出的模块中默认导入。这并不影响代码的输出,仅为了类型检查。
"skipLibCheck": true,
"baseUrl": "./",
"outDir": "./",
"paths": {
"*": ["./node_modules/@types/*", "*"],
"@/*": ["./packages/*"]
},
"typeRoots": ["node_modules/@types", "./packages/*"]
},
"awesomeTypescriptLoaderOptions": {
"useWebpackText": true,
"useTranspileModule": true,
"doTypeCheck": true,
"forkChecker": true
},
"include": [
"docs/**/*",
"packages/**/src/*.ts",
"packages/**/src/*.tsx",
"packages/**/demo/*.ts",
"packages/**/demo/*.tsx"
],
"exclude": ["node_modules", "dist", "packages/**/es", "packages/**/cjs"]
}