eslint.config.mjs 649 B

123456789101112131415161718192021222324252627
  1. import eslint from '@eslint/js';
  2. import tseslint from 'typescript-eslint';
  3. export default tseslint.config(
  4. eslint.configs.recommended,
  5. ...tseslint.configs.recommended,
  6. {
  7. files: ['src/**/*.ts', 'test/**/*.ts'],
  8. languageOptions: {
  9. parserOptions: {
  10. project: './tsconfig.json',
  11. tsconfigRootDir: import.meta.dirname,
  12. },
  13. },
  14. rules: {
  15. '@typescript-eslint/no-explicit-any': 'off',
  16. '@typescript-eslint/no-unused-vars': [
  17. 'error',
  18. {
  19. argsIgnorePattern: '^_',
  20. varsIgnorePattern: '^_',
  21. caughtErrorsIgnorePattern: '^_',
  22. },
  23. ],
  24. },
  25. },
  26. );