| 123456789101112131415161718192021222324252627 |
- import eslint from '@eslint/js';
- import tseslint from 'typescript-eslint';
- export default tseslint.config(
- eslint.configs.recommended,
- ...tseslint.configs.recommended,
- {
- files: ['src/**/*.ts', 'test/**/*.ts'],
- languageOptions: {
- parserOptions: {
- project: './tsconfig.json',
- tsconfigRootDir: import.meta.dirname,
- },
- },
- rules: {
- '@typescript-eslint/no-explicit-any': 'off',
- '@typescript-eslint/no-unused-vars': [
- 'error',
- {
- argsIgnorePattern: '^_',
- varsIgnorePattern: '^_',
- caughtErrorsIgnorePattern: '^_',
- },
- ],
- },
- },
- );
|