tsconfig.json 953 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "compilerOptions": {
  3. "target": "ES2020",
  4. "useDefineForClassFields": true,
  5. "module": "ESNext",
  6. "lib": ["ES2020", "DOM", "DOM.Iterable"],
  7. "skipLibCheck": true,
  8. /* Bundler mode */
  9. "moduleResolution": "Bundler",
  10. "allowImportingTsExtensions": true,
  11. "resolveJsonModule": true,
  12. "isolatedModules": true,
  13. "noEmit": true,
  14. "jsx": "preserve",
  15. /* Linting */
  16. "strict": true,
  17. "noUnusedLocals": true,
  18. "noUnusedParameters": true,
  19. "noFallthroughCasesInSwitch": true,
  20. "baseUrl": "./",
  21. "paths": {
  22. "@src/*": ["src/*"],
  23. "@components/*": ["src/components/*"],
  24. // "@utils/*": ["src/utils/*"],
  25. "@hooks/*": ["src/hooks/*"],
  26. "@pages/*": ["src/pages/*"],
  27. "@assets/*": ["src/assets/*"]
  28. },
  29. "typeRoots": ["/node_modules/vue/jsx.d.ts"]
  30. },
  31. "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
  32. "references": [{ "path": "./tsconfig.node.json" }]
  33. }