-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
39 lines (37 loc) · 1018 Bytes
/
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
{
"extends": [
"../../../../packages/tools/ts-config/tsconfig.dom.json"
],
"compilerOptions": {
// 不需要使用 tsc 编译,直接webpack(可以处理ts)
// "rootDir": "src",
// "outDir": "dist",
// "tsBuildInfoFile": "dist/.tsbuildinfo",
"baseUrl": "./",
"paths": {
"@/*": [
"./src/*"
],
"@assets/*": [
"../../../../assets/*"
]
},
"lib": ["es2015", "dom", "dom.iterable"],
"types": ["chrome"],
// suppress chart / input-otp
"strictNullChecks": false,
// TS6304: Composite projects may not disable declaration emit.
"composite": false,
"allowJs": true, // 允许导入 JS 文件
"checkJs": false, // 不对 JS 文件进行类型检查
// 不生成乱七八糟的js
"declarationMap": false,
"declaration": false
// "noImplicitAny": false, // 还是禁止这个的好,代码稳健性会高很多
},
"include": [
"src",
"tailwind.config.js",
"webpack.config.js"
]
}