38 lines
980 B
JSON
38 lines
980 B
JSON
|
|
{
|
||
|
|
"compilerOptions": {
|
||
|
|
"target": "esnext",
|
||
|
|
"module": "esnext",
|
||
|
|
"moduleResolution": "bundler",
|
||
|
|
"lib": ["esnext", "dom"],
|
||
|
|
"baseUrl": "./",
|
||
|
|
"paths": {
|
||
|
|
"@/*": ["src/*"]
|
||
|
|
},
|
||
|
|
|
||
|
|
// 严格性和类型检查相关配置
|
||
|
|
"strict": true,
|
||
|
|
"skipLibCheck": true,
|
||
|
|
"forceConsistentCasingInFileNames": true,
|
||
|
|
"noImplicitAny": false,
|
||
|
|
// 模块和兼容性相关配置
|
||
|
|
"allowSyntheticDefaultImports": true,
|
||
|
|
"esModuleInterop": true,
|
||
|
|
"resolveJsonModule": true,
|
||
|
|
|
||
|
|
// 调试和兼容性相关配置
|
||
|
|
"sourceMap": true,
|
||
|
|
"useDefineForClassFields": true,
|
||
|
|
"allowJs": true,
|
||
|
|
"noEmit": true,
|
||
|
|
|
||
|
|
// 类型声明相关配置
|
||
|
|
"types": ["vue", "node", "vite/client", "element-plus/global"],
|
||
|
|
"skipDefaultLibCheck": true
|
||
|
|
},
|
||
|
|
"include": [
|
||
|
|
"src/**/*","src/**/*.ts", "src/**/*.vue","src/**/**/*.vue", "src/**/*.tsx", "src/**/*.d.ts", "auto-imports.d.ts"
|
||
|
|
],
|
||
|
|
"exclude": ["node_modules", "dist", "src/**/*.js"]
|
||
|
|
}
|
||
|
|
|