tsconfig.json 884 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "compilerOptions": {
  3. "target": "esnext",
  4. "module": "esnext",
  5. // "useDefineForClassFields": true,
  6. "moduleResolution": "bundler",
  7. "strict": true,
  8. "jsx": "preserve",
  9. "strictNullChecks": false,
  10. "sourceMap": true,
  11. "resolveJsonModule": true,
  12. "esModuleInterop": true,
  13. "strictFunctionTypes": false,
  14. "lib": ["esnext", "dom"],
  15. "noImplicitAny": false,
  16. "baseUrl": ".",
  17. "allowJs": true,
  18. "experimentalDecorators": true,
  19. "paths": {
  20. "@/*": ["src/*"]
  21. },
  22. "types": ["vite/client"],
  23. "skipLibCheck": true,
  24. "removeComments": true,
  25. // 允许默认导入
  26. "allowSyntheticDefaultImports": true,
  27. "forceConsistentCasingInFileNames": true
  28. },
  29. "include": ["src/**/*.ts", "src/**/*.vue", "src/types/**/*.d.ts", "vite.config.ts"],
  30. "exclude": ["node_modules", "dist", "**/*.js", "**/*.md", "src/**/*.md"]
  31. }