2023-05-24 11:08:08 +08:00
|
|
|
|
{
|
|
|
|
|
"include": [
|
|
|
|
|
"src/**/*.ts",
|
|
|
|
|
"src/**/*.d.ts",
|
|
|
|
|
"src/**/*.tsx",
|
|
|
|
|
"src/**/*.vue",
|
|
|
|
|
"src/components.d.ts",
|
2023-10-10 20:06:38 +08:00
|
|
|
|
"src/auto-imports.d.ts",
|
2023-05-24 11:08:08 +08:00
|
|
|
|
"types/**/*.d.ts",
|
|
|
|
|
"types/**/*.ts",
|
|
|
|
|
"build/**/*.ts",
|
|
|
|
|
"build/**/*.d.ts",
|
|
|
|
|
"mock/**/*.ts",
|
2023-06-02 17:03:13 +08:00
|
|
|
|
"__test__/**/*.ts",
|
2023-07-17 15:16:54 +08:00
|
|
|
|
"node_modules/monaco-editor/monaco.d.ts"
|
2023-05-24 11:08:08 +08:00
|
|
|
|
], // TS解析路径配置
|
|
|
|
|
"compilerOptions": {
|
|
|
|
|
"allowJs": true, // 允许编译器编译JS,JSX文件
|
|
|
|
|
"noEmit": true,
|
|
|
|
|
"target": "esnext", // 使用es最新语法
|
|
|
|
|
"useDefineForClassFields": true,
|
|
|
|
|
"allowSyntheticDefaultImports": true, // 允许异步导入模块,配合自动导入插件使用
|
|
|
|
|
"module": "esnext", // 使用ES模块语法
|
|
|
|
|
"moduleResolution": "node",
|
|
|
|
|
"strict": true, // 严格模式
|
|
|
|
|
"jsx": "preserve",
|
|
|
|
|
"sourceMap": true, // 代码映射
|
|
|
|
|
"resolveJsonModule": true,
|
|
|
|
|
"isolatedModules": true,
|
|
|
|
|
"esModuleInterop": true,
|
2024-02-07 18:00:19 +08:00
|
|
|
|
"lib": [
|
|
|
|
|
"esnext",
|
|
|
|
|
"dom"
|
|
|
|
|
],
|
2023-05-24 11:08:08 +08:00
|
|
|
|
"skipLibCheck": true, // 跳过node依赖包语法检查
|
|
|
|
|
"types": [
|
2024-02-07 18:00:19 +08:00
|
|
|
|
"node",
|
2023-05-24 11:08:08 +08:00
|
|
|
|
// "vitest/globals",
|
|
|
|
|
// "vite-plugin-svg-icons/client"
|
|
|
|
|
], // 手动导入TS类型声明文件
|
|
|
|
|
"baseUrl": ".",
|
2023-10-10 20:06:38 +08:00
|
|
|
|
"paths": {
|
|
|
|
|
// 路径映射
|
2024-02-07 18:00:19 +08:00
|
|
|
|
"@/*": [
|
|
|
|
|
"./src/*"
|
|
|
|
|
],
|
|
|
|
|
"#/*": [
|
|
|
|
|
"types/*"
|
|
|
|
|
]
|
2023-12-29 16:54:52 +08:00
|
|
|
|
},
|
2023-10-10 20:06:38 +08:00
|
|
|
|
}
|
2024-02-07 18:00:19 +08:00
|
|
|
|
}
|