import js from '@eslint/js' import jsxA11y from 'eslint-plugin-jsx-a11y' import reactHooks from 'eslint-plugin-react-hooks' import globals from 'globals' import tseslint from 'typescript-eslint' export default tseslint.config( { ignores: ['dist', 'coverage', 'node_modules', 'src/api/generated'] }, js.configs.recommended, ...tseslint.configs.recommended, jsxA11y.flatConfigs.recommended, { files: ['**/*.{ts,tsx}'], plugins: { 'react-hooks': reactHooks, }, languageOptions: { globals: { ...globals.browser, }, }, rules: { ...reactHooks.configs.recommended.rules, '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], '@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }], }, }, { files: ['**/*.{js,mjs}'], languageOptions: { globals: { ...globals.node, }, }, }, )