tsconfig.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "compilerOptions": {
  3. "target": "esnext",
  4. "useDefineForClassFields": true,
  5. "module": "esnext",
  6. "moduleResolution": "node",
  7. "strict": true,
  8. "jsx": "preserve",
  9. "sourceMap": true,
  10. "resolveJsonModule": true,
  11. "esModuleInterop": true,
  12. "lib": ["esnext", "dom"],
  13. "baseUrl": "./",
  14. "allowJs": true,
  15. "forceConsistentCasingInFileNames": true,
  16. "allowSyntheticDefaultImports": true,
  17. "strictFunctionTypes": false,
  18. "noUnusedLocals": true,
  19. "noUnusedParameters": true,
  20. "experimentalDecorators": true,
  21. "noImplicitAny": false,
  22. "skipLibCheck": true,
  23. "paths": {
  24. "@/*": ["src/*"]
  25. },
  26. "types": [
  27. "@intlify/unplugin-vue-i18n/types",
  28. "vite/client",
  29. "element-plus/global",
  30. "@types/qrcode",
  31. "vite-plugin-svg-icons/client"
  32. ],
  33. "outDir": "target", // 请保留这个属性,防止tsconfig.json文件报错
  34. "typeRoots": ["./node_modules/@types/", "./types"]
  35. },
  36. "include": [
  37. "src",
  38. "types/**/*.d.ts",
  39. "src/types/auto-imports.d.ts",
  40. "src/types/auto-components.d.ts"
  41. ],
  42. "exclude": ["dist", "target", "node_modules"]
  43. }