tsconfig.json 901 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. "noEmit": true,
  24. // 类型声明相关配置
  25. "types": ["node", "vite/client", "element-plus/global"]
  26. },
  27. "include": [
  28. "src/**/*.ts",
  29. "src/**/*.vue",
  30. "vite/**/*.ts",
  31. "auto-imports.d.ts",
  32. "vite.config.ts"
  33. ],
  34. "exclude": ["node_modules", "dist", "src/**/*.js"]
  35. }