tsconfig.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "compilerOptions": {
  3. /* Visit https://aka.ms/tsconfig.json to read more about this file */
  4. // Recommended Node options have been incorporated from https://github.com/tsconfig/bases/blob/master/bases/node14.json
  5. // Node LTS Fermium (14.x) has mostly complete support for ES2019 (as reported by https://node.green/)
  6. "target": "ES2019",
  7. "module": "commonjs",
  8. // "esModuleInterop": true,
  9. // Overrides default in order to remove "dom" because this package shouldn't assume the presence of browser APIs
  10. "lib": ["ES2019"],
  11. // Emit location
  12. "outDir": "build",
  13. // Emit sourcemaps
  14. "declarationMap": true,
  15. "sourceMap": true,
  16. "inlineSources": true,
  17. // Emit type definitions
  18. "declaration": true,
  19. // Strict mode
  20. "strict": true,
  21. // Allow import package.json
  22. "resolveJsonModule": true,
  23. // Linter style rules
  24. "noUnusedLocals": false, // Disabled because we use eslint for this.
  25. "noUnusedParameters": true,
  26. "noImplicitReturns": true,
  27. "noFallthroughCasesInSwitch": true,
  28. "noUncheckedIndexedAccess": true,
  29. "noPropertyAccessFromIndexSignature": true,
  30. "forceConsistentCasingInFileNames": true
  31. },
  32. "include": ["src/**/*", "test/**/*"]
  33. }