tsconfig.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. // https://janessagarrow.com/blog/typescript-and-esbuild/
  3. "compilerOptions": {
  4. "lib": [
  5. "DOM",
  6. "ESNext",
  7. "DOM.Iterable"
  8. ],
  9. // "types": ["@types/node", "vite", "vite/client", "@thednp/event-listener", "@thednp/shorty"],
  10. "types": [
  11. "@thednp/event-listener",
  12. "@thednp/shorty"
  13. ],
  14. "rootDir": "./",
  15. "baseUrl": "./",
  16. "module": "ESNext",
  17. "target": "ESNext",
  18. "moduleResolution": "Bundler",
  19. "allowJs": true,
  20. "forceConsistentCasingInFileNames": true,
  21. "useDefineForClassFields": true,
  22. "strict": true,
  23. "sourceMap": true,
  24. "resolveJsonModule": true,
  25. "esModuleInterop": true,
  26. "isolatedModules": true,
  27. "noUnusedLocals": true,
  28. "noUnusedParameters": true,
  29. "noImplicitReturns": true,
  30. "removeComments": false,
  31. "allowSyntheticDefaultImports": true,
  32. "noEmit": true,
  33. "checkJs": true,
  34. "skipLibCheck": true, // allows dts-bundle-generator to import from package.json
  35. "paths": {
  36. "~/*": [
  37. "./src/*"
  38. ],
  39. }
  40. },
  41. "include": [
  42. "src/*",
  43. "src/**/*"
  44. ],
  45. "exclude": [
  46. "node_modules",
  47. "experiments",
  48. "coverage",
  49. "dist"
  50. ],
  51. }