tsconfig.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "extends": "@vue/tsconfig/tsconfig.web.json",
  3. "include": [
  4. "src/env.d.ts",
  5. "vite/auto-import/*.d.ts",
  6. "src/**/*",
  7. "src/**/*.vue",
  8. "src/**/*.ts",
  9. ],
  10. "compilerOptions": {
  11. "target": "es5",
  12. //"ignoreDeprecations": "5.0",
  13. "downlevelIteration": true,
  14. "module": "esnext",
  15. "strict": true,
  16. "jsx": "preserve",
  17. "importHelpers": true,
  18. "moduleResolution": "node",
  19. "skipLibCheck": true,
  20. "esModuleInterop": true,
  21. "allowSyntheticDefaultImports": true,
  22. "suppressImplicitAnyIndexErrors": true,
  23. "forceConsistentCasingInFileNames": true,
  24. "useDefineForClassFields": true,
  25. "noImplicitThis": false, // 允许this有隐式的any类型
  26. "sourceMap": true,
  27. "baseUrl": "./",
  28. "paths": {
  29. "~/*": [
  30. "./*"
  31. ],
  32. "@/*": [
  33. "./src/*"
  34. ]
  35. },
  36. "lib": [
  37. "esnext",
  38. "dom",
  39. "dom.iterable",
  40. "scripthost"
  41. ]
  42. },
  43. "exclude": [
  44. "node_modules"
  45. ],
  46. "references": [
  47. {
  48. "path": "./tsconfig.config.json"
  49. }
  50. ]
  51. }