import js from '@eslint/js'; import tseslint from '@typescript-eslint/eslint-plugin'; import tseslintParser from '@typescript-eslint/parser'; import prettier from 'eslint-config-prettier'; export default [ js.configs.recommended, { ignores: ['dist/**/*', '*.d.ts', '*.js.map', '*.d.ts.map'], files: ['**/*.ts'], languageOptions: { parser: tseslintParser, parserOptions: { project: ['./tsconfig.json'], tsconfigRootDir: '.', }, }, plugins: { '@typescript-eslint': tseslint, }, rules: { ...tseslint.configs.recommended.rules, ...prettier.rules, '@typescript-eslint/no-explicit-any': 'warn', 'no-undef': 'off', }, }, ];