.eslintrc.cjs 950 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. module.exports = {
  2. root: true,
  3. parserOptions: {
  4. tsconfigRootDir: __dirname,
  5. project: ['./tsconfig.json'],
  6. },
  7. overrides: [
  8. // Student provided files
  9. {
  10. files: ['*.ts'],
  11. excludedFiles: ['.meta/proof.ci.ts', '.meta/exemplar.ts', '*.test.ts'],
  12. extends: '@exercism/eslint-config-typescript',
  13. },
  14. // Exercism given tests
  15. {
  16. files: ['*.test.ts'],
  17. excludedFiles: ['custom.test.ts'],
  18. env: {
  19. jest: true,
  20. },
  21. extends: '@exercism/eslint-config-typescript/maintainers',
  22. },
  23. // Student provided tests
  24. {
  25. files: ['custom.test.ts'],
  26. env: {
  27. jest: true,
  28. },
  29. extends: '@exercism/eslint-config-typescript',
  30. },
  31. // Exercism provided files
  32. {
  33. files: ['.meta/proof.ci.ts', '.meta/exemplar.ts', '*.test.ts'],
  34. excludedFiles: ['custom.test.ts'],
  35. extends: '@exercism/eslint-config-typescript/maintainers',
  36. },
  37. ],
  38. }