-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
58 lines (58 loc) · 1.69 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
53
54
55
56
57
58
{
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
// 如果指定了types,只有被列出来的包才会被包含进来
"types": [
"vite/client",
"unplugin-icons/types/vue",
"@intlify/vite-plugin-vue-i18n/client",
"vite-plugin-svg-icons/client",
"pinia-plugin-persist",
"vite-plugin-pages/client",
"vite-plugin-vue-layouts/client"
],
"baseUrl": "./", // 解析非相对模块的基地址,默认是当前目录
"paths": {
// 路径映射,相对于baseUrl
"@/*": ["src/*"],
"@apis/*": ["src/apis/*"],
"@assets/*": ["src/assets/*"],
"@components/*": ["src/components/*"],
"@directive/*": ["src/directive/*"],
"@enums/*": ["src/enums/*"],
"@hooks/*": ["src/hooks/*"],
"@viteplugins/*": ["vite/plugins/*"],
"@router/*": ["src/router/*"],
"@store/*": ["src/store/*"],
"@styles/*": ["src/styles/*"],
"@types/*": ["src/types/*"],
"@utils/*": ["src/utils/*"],
"@views/*": ["src/views/*"],
"@class/*": ["src/class/*"]
}
},
"include": [
"src/**/*.ts",
"src/**/*.js",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.jsx",
"src/**/*.vue",
"vite/plugins/md-naiveui-anchor-toc.ts"
],
"references": [{ "path": "./tsconfig.node.json" }]
}