-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
52 lines (52 loc) · 1.22 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
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"noImplicitAny": false, // 隐式具有“any”类型
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"jsx": "preserve",
"types": [
"vite/client"
],
// 如果编译器无法根据变量的使用来判断类型时,将用 any 类型代替
// "suppressImplicitAnyIndexErrors": true,
// 允许从没有设置默认导出的模块中默认导入。这并不影响代码的输出,仅为了类型检查。
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": [
"ESNext",
"DOM"
],
// 解析非相对模块名的基准目录
"baseUrl": "./",
// 模块名到基于 baseUrl的路径映射的列表。
"paths": {
"@": [
"packages"
],
"@/*": [
"packages/*"
]
},
"skipLibCheck": true
},
"include": [
"packages/**/*.ts",
"packages/**/*.d.ts",
"packages/**/*.tsx",
"packages/**/*.vue"
],
"exclude": [
"node_modules"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}