tsconfig.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* 具体查看 https://aka.ms/tsconfig.json 网址配置 */
  2. /* 中文网址 https://www.staging-typescript.org/zh/tsconfig 网址配置 */
  3. {
  4. "compilerOptions": {
  5. "target": "esnext",
  6. "module": "esnext",
  7. "moduleResolution": "node",
  8. "strict": true,
  9. "forceConsistentCasingInFileNames": true,
  10. "allowSyntheticDefaultImports": true,
  11. "jsx": "preserve",
  12. "baseUrl": ".",
  13. "sourceMap": true,
  14. "resolveJsonModule": true,
  15. "esModuleInterop": true,
  16. "noUnusedLocals": true,
  17. "noUnusedParameters": true,
  18. "experimentalDecorators": true,
  19. "lib": ["esnext", "dom"],
  20. "types": ["vite/client","node"],
  21. "typeRoots": ["./node_modules/@types/", "./types"],
  22. "skipLibCheck": true,
  23. "paths": {
  24. "/@/*": ["src/*"]
  25. }
  26. },
  27. "include": [
  28. "src/**/*.ts",
  29. "src/**/*.tsx",
  30. "src/**/*.vue",
  31. "tests/**/*.ts",
  32. "src/utils/path.js",
  33. "types/**/*.d.ts",
  34. "types/**/*.ts",
  35. "types/global.d.ts",
  36. "types/shims-tsx.d.ts",
  37. "types/shims-vue.d.ts",
  38. "mock/asyncRoutes.ts"
  39. ],
  40. "exclude": ["node_modules", "dist", "**/*.js"]
  41. }