-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
37 lines (37 loc) · 980 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
{
"include": [
"src/*",
"src/**/*.vue",
"src/**/*.tsx",
"src/**/*.jsx",
"src/**/*.ts",
"src/**/*.js",
"types/shims-vue.d.ts"
],
"compilerOptions": {
"experimentalDecorators": true,
"suppressImplicitAnyIndexErrors": true,
"target": "esnext",
"module": "esnext",
// 这样就可以对 `this` 上的数据属性进行更严格的推断
"strict": true,
"jsx": "preserve",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"paths": {
// 根据别名配置相关路径
"@/*": ["src/*"],
"@packages/*": ["src/packages/*"],
"@views/*": ["src/views/*"],
"@common/*": ["src/common/*"],
"@plugins/*": ["src/plugins/*"],
"@store/*": ["src/store/*"],
"@utils/*": ["src/utils/*"],
"@config/*": ["src/config/*"],
"@router/*": ["src/router/*"],
"@service/*": ["src/service/*"],
"@types/*": ["types/*"]
}
}
}