// @ts-check import pluginReact from '@eslint-react/eslint-plugin' // @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, }, rules: { 'react-hooks/exhaustive-deps': 'error', 'react-hooks/rules-of-hooks': 'error', }, }, ]