46 lines
1.2 KiB
JSON
46 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "esnext",
|
|
"module": "esnext",
|
|
"moduleResolution": "node",
|
|
"lib": ["esnext", "dom"],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["src/*"]
|
|
},
|
|
|
|
// 严格性和类型检查相关配置
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
// 模块和兼容性相关配置
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"resolveJsonModule": true,
|
|
|
|
// 调试和兼容性相关配置
|
|
"sourceMap": true,
|
|
"useDefineForClassFields": true,
|
|
"allowJs": true,
|
|
|
|
// 类型声明相关配置
|
|
"types": ["node", "vite/client", "unplugin-auto-import", "unplugin-vue-components"]
|
|
},
|
|
|
|
"include": [
|
|
"mock/**/*.ts",
|
|
"src/**/*.ts",
|
|
"src/**/*.d.ts",
|
|
"src/**/*.vue",
|
|
"vite.config.ts",
|
|
"node_modules/unplugin-auto-import/auto-imports.d.ts",
|
|
"node_modules/unplugin-auto-import/auto-imports.d.ts",
|
|
"node_modules/unplugin-auto-import/auto-imports.d.ts",
|
|
"node_modules/unplugin-auto-import/auto-imports.d.ts",
|
|
"node_modules/unplugin-auto-import/auto-imports.d.ts",
|
|
"node_modules/unplugin-auto-import/auto-imports.d.ts"
|
|
],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|