-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.json
33 lines (33 loc) · 1.47 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
{
"compilerOptions": {
"declaration": true,
"target": "esnext",
"module": "esnext",
"jsx": "preserve",
"importHelpers": true, // 从 tslib 导入辅助工具函数
"moduleResolution": "node",
"experimentalDecorators": true, // 启用装饰器
"esModuleInterop": true,
"allowSyntheticDefaultImports": true, // 允许从没有设置默认导出的模块中默认导入
"downlevelIteration": true, // 降级遍历器实现,如果目标源是es3/5,那么遍历器会有降级的实现
"noUnusedLocals": true, // 检查只声明、未使用的局部变量(只提示不报错)
"noUnusedParameters": true, // 检查未使用的函数参数(只提示不报错)
"sourceMap": false,
"removeComments": true,
"baseUrl": ".",
"typeRoots": ["./node_modules/@types/", "./node_modules/vue/types"], // 包含类型声明的文件列表
"strict": false,
"strictFunctionTypes": false,
"noImplicitAny": false, // 在表达式和声明上有隐含的 any类型时报错
"noImplicitThis": false, // 在"this"表达式上有隐含的 any类型时报错
"pretty": true, // 给错误和消息设置样式,使用颜色和上下文。
"types": ["webpack-env", "jest", "vite/client"],
"paths": {
"@/*": ["src/*"]
},
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": ["typings/vue-shim.d.ts", "typings/global.d.ts", "src/**/*.ts", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }],
"exclude": ["node_modules", "dist/**", "lib/**"]
}