tsconfig.app.json 912 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "extends": "./tsconfig.json",
  3. "compilerOptions": {
  4. "composite": true,
  5. "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
  6. /* 语言与模块:moduleResolution: bundler 要求 module 为 ESNext,import.meta 也依赖此配置 */
  7. "target": "ES2020",
  8. "module": "ESNext",
  9. "lib": ["ES2020", "DOM", "DOM.Iterable"],
  10. "skipLibCheck": true,
  11. /* 类型声明 */
  12. "baseUrl": ".",
  13. "paths": {
  14. "@/*": ["src/*"]
  15. },
  16. /* 其他推荐选项 */
  17. "noEmit": true,
  18. "moduleResolution": "bundler",
  19. "allowImportingTsExtensions": true,
  20. /* Linting */
  21. "strict": true,
  22. "noUnusedLocals": true,
  23. "noUnusedParameters": true,
  24. "erasableSyntaxOnly": true,
  25. "noFallthroughCasesInSwitch": true,
  26. "noUncheckedSideEffectImports": true
  27. },
  28. "include": [
  29. "src/**/*.ts",
  30. "src/**/*.d.ts",
  31. "src/**/*.tsx",
  32. "src/**/*.vue"
  33. ]
  34. }