import { baseConfig } from '../../eslint.config.mjs'; import nextPlugin from '@next/eslint-plugin-next'; import reactHooksPlugin from 'eslint-plugin-react-hooks'; export default [ ...baseConfig, { files: ['**/*.{js,jsx,ts,tsx}'], plugins: { '@next/next': nextPlugin, 'react-hooks': reactHooksPlugin, }, rules: { ...nextPlugin.configs.recommended.rules, ...nextPlugin.configs['core-web-vitals'].rules, ...reactHooksPlugin.configs.recommended.rules, 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'error', }, }, ];