// @ts-check import pluginReact from '@eslint-react/eslint-plugin' // @ts-expect-error import pluginReactCompiler from 'eslint-plugin-react-compiler' // @ts-expect-error import pluginReactHooks from 'eslint-plugin-react-hooks' import rootConfig from '../../eslint.config.js' export default [ ...rootConfig, { files: ['**/*.{ts,tsx}'], ...pluginReact.configs.recommended, }, { plugins: { 'react-hooks': pluginReactHooks, 'react-compiler': pluginReactCompiler, }, rules: { '@eslint-react/dom/no-missing-button-type': 'off', 'react-compiler/react-compiler': 'error', 'react-hooks/exhaustive-deps': 'error', 'react-hooks/rules-of-hooks': 'error', }, }, { files: ['**/__tests__/**'], rules: { '@typescript-eslint/no-unnecessary-condition': 'off', 'react-compiler/react-compiler': 'off', }, }, ]