diff --git a/tsconfig.json b/tsconfig.json index cbe0a4da..7afb4fcd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,25 +1,33 @@ { "compilerOptions": { "target": "esnext", - "useDefineForClassFields": true, "module": "esnext", "moduleResolution": "node", - "strict": true, - "noLib": false, - "sourceMap": true, - "resolveJsonModule": true, - "esModuleInterop": true, "lib": ["esnext", "dom"], "baseUrl": ".", - "allowJs": true, - "skipLibCheck": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, "paths": { "@/*": ["src/*"] }, + + // 严格性和类型检查相关配置 + "strict": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + + // 模块和兼容性相关配置 + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "resolveJsonModule": true, + + // 调试和兼容性相关配置 + "sourceMap": true, + "useDefineForClassFields": true, + "allowJs": true, + + // 类型声明相关配置 "types": ["node", "vite/client", "element-plus/global"] }, + "include": ["mock/**/*.ts", "src/**/*.ts", "src/**/*.vue", "vite.config.ts"], "exclude": ["node_modules", "dist"] }