tsconfig.json 955 B

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "compilerOptions": {
  3. "target": "esnext",
  4. "useDefineForClassFields": true,
  5. "module": "ESNext",
  6. "moduleResolution": "Bundler",
  7. "strictFunctionTypes": false,
  8. "strict": true,
  9. "noImplicitAny": false,
  10. "noLib": false,
  11. "sourceMap": true,
  12. "resolveJsonModule": true,
  13. "esModuleInterop": true,
  14. "lib": ["esnext", "dom"],
  15. "baseUrl": "./",
  16. "allowJs": true,
  17. "skipLibCheck": true,
  18. "allowSyntheticDefaultImports": true,
  19. "forceConsistentCasingInFileNames": true,
  20. "jsx": "preserve",
  21. "jsxFactory": "h",
  22. "jsxFragmentFactory": "Fragment",
  23. "paths": {
  24. "@/*": ["src/*"],
  25. "#/*": ["types/*"]
  26. },
  27. "typeRoots": ["./node_modules/@types/", "./types"],
  28. "types": ["vite/client"]
  29. },
  30. "include": ["mock/**/*.ts", "src/types/*.d.ts", "types/*.d.ts", "src/**/*.ts", "src/**/*.vue", "vite.config.ts"],
  31. // 需要忽略的文件
  32. "exclude": ["node_modules", "dist", "**/*.js"]
  33. }