-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
30 lines (30 loc) · 1.13 KB
/
tsconfig.json
File metadata and controls
30 lines (30 loc) · 1.13 KB
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
{
"compilerOptions": {
"target": "ESNext",
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"baseUrl": "./",
"module": "CommonJS",
"moduleResolution": "node", // 模块解q析策略,ts默认用node的解析策略,即相对的方式导入
"paths": {
"~": ["packages"],
"~/*": ["packages/*"]
},
"resolveJsonModule": true,
"types": ["element-plus/global"],
"strict": true,
"strictFunctionTypes": true, // 不允许函数参数双向协变
"strictNullChecks": true, // 不允许把null、undefined赋值给其他类型的变量
"alwaysStrict": true, // 在代码中注入'use strict'
"noImplicitAny": true, // 不允许隐式的any类型
"noImplicitThis": true, // 不允许this有隐式的any类型
"noUnusedLocals": false, // 检查只声明、未使用的局部变量(只提示不报错)
"removeComments": true, // 删除注释
"sourceMap": false, // 生成目标文件的sourceMap文件
"esModuleInterop": true, // 允许export=导出,由import from 导入
"skipDefaultLibCheck": true,
"skipLibCheck": true
},
"ts-node": {
"files": true
}
}