tsconfig.json 967 B

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "compilerOptions": {
  3. "target": "ESNext",
  4. "useDefineForClassFields": true,
  5. "module": "ESNext",
  6. "moduleResolution": "Node",
  7. "strict": true,
  8. "jsx": "react",
  9. "sourceMap": true,
  10. "resolveJsonModule": true,
  11. "isolatedModules": true,
  12. "esModuleInterop": true,
  13. "lib": ["ESNext", "DOM"],
  14. "skipLibCheck": true,
  15. "baseUrl": "./",
  16. "paths": {
  17. "@/*": ["src/*"]
  18. },
  19. "noImplicitAny": false,
  20. "allowJs": true,
  21. "types": ["@intlify/vite-plugin-vue-i18n/client", "vite/client"],
  22. "typeRoots": [
  23. "./node_modules/@types",
  24. "./src/types" // 确保包含你的类型声明文件路径
  25. ]
  26. },
  27. "include": ["src/**/*.js", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "vite-env.d.ts"],
  28. "references": [
  29. {
  30. "path": "./tsconfig.node.json"
  31. }
  32. ]
  33. }