tsconfig.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "compilerOptions": {
  3. "target": "ESNext",
  4. "useDefineForClassFields": true,
  5. "module": "ESNext",
  6. "lib": ["ESNext", "DOM", "DOM.Iterable", "WebWorker"],
  7. "skipLibCheck": true,
  8. /* Bundler mode */
  9. "allowJs": true,
  10. "moduleResolution": "Node",
  11. "allowImportingTsExtensions": true,
  12. "allowSyntheticDefaultImports": true,
  13. "esModuleInterop": true,
  14. "resolveJsonModule": true,
  15. "isolatedModules": true,
  16. "noEmit": true,
  17. "jsx": "preserve",
  18. "sourceMap": true,
  19. /* Linting */
  20. "strict": true,
  21. "paths": {
  22. "~/*": ["./*"],
  23. "/@/*": ["./src/*"],
  24. "/@vab/*": ["./library/*"]
  25. },
  26. "types": ["element-plus/global", "vite/client", "vite-plugin-pwa/vue", "vite-plugin-svg-icons/client"]
  27. },
  28. "include": [
  29. "library/**/*.ts",
  30. "library/**/*.vue",
  31. "src/**/*.ts",
  32. "src/**/*.d.ts",
  33. "src/**/*.tsx",
  34. "src/**/*.vue",
  35. "types/**/*.d.ts",
  36. "types/**/*.ts",
  37. "mock/**/*.ts",
  38. "vite.config.ts",
  39. "vite.config.dev.ts",
  40. "vite.config.website.ts"
  41. ],
  42. "exclude": ["node_modules", "dist", "**/*.js"]
  43. }