tsconfig.json 840 B

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "compilerOptions": {
  3. "target": "esnext",
  4. "module": "esnext",
  5. "moduleResolution": "bundler",
  6. "lib": ["esnext", "dom"],
  7. "baseUrl": ".",
  8. "paths": {
  9. "@/*": ["src/*"]
  10. },
  11. // 严格性和类型检查相关配置
  12. "strict": true,
  13. "skipLibCheck": true,
  14. "forceConsistentCasingInFileNames": true,
  15. // 模块和兼容性相关配置
  16. "allowSyntheticDefaultImports": true,
  17. "esModuleInterop": true,
  18. "resolveJsonModule": true,
  19. // 调试和兼容性相关配置
  20. "sourceMap": true,
  21. "useDefineForClassFields": true,
  22. "allowJs": true,
  23. // 类型声明相关配置
  24. "types": ["node", "vite/client", "element-plus/global"]
  25. },
  26. "include": ["mock/**/*.ts", "src/**/*.ts", "src/**/*.vue", "vite.config.ts", "eslint.config.ts"],
  27. "exclude": ["node_modules", "dist"]
  28. }