tsconfig.json 1.1 KB

12345678910111213141516171819202122232425262728
  1. {
  2. "display": "Configuration for Exercism TypeScript Exercises",
  3. "compilerOptions": {
  4. // Allows you to use the newest syntax, and have access to console.log
  5. // https://www.typescriptlang.org/tsconfig#lib
  6. "lib": ["ESNext.Array","ESNEXT", "dom"],
  7. // Make sure typescript is configured to output ESM
  8. // https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm
  9. "module": "ES2020",
  10. // Since this project is using babel, TypeScript may target something very
  11. // high, and babel will make sure it runs on your local Node version.
  12. // https://babeljs.io/docs/en/
  13. "target": "ESNext", // ESLint doesn't support this yet: "es2022",
  14. "strict": true,
  15. "esModuleInterop": true,
  16. "skipLibCheck": true,
  17. "forceConsistentCasingInFileNames": true,
  18. // Because we'll be using babel: ensure that Babel can safely transpile
  19. // files in the TypeScript project.
  20. //
  21. // https://babeljs.io/docs/en/babel-plugin-transform-typescript/#caveats
  22. "isolatedModules": true
  23. },
  24. "include": ["*.ts", "*.tsx", ".meta/*.ts", ".meta/*.tsx"],
  25. "exclude": ["node_modules"]
  26. }