import js from '@eslint/js' import globals from 'globals' import reactHooks from 'eslint-plugin-react-hooks' import tseslint from 'typescript-eslint' export default tseslint.config( { ignores: [ '.next/**', 'node_modules/**', 'next-env.d.ts', 'next.config.mjs', 'postcss.config.js', 'tailwind.config.ts', ], }, js.configs.recommended, ...tseslint.configs.recommended, { files: ['src/**/*.{ts,tsx}'], languageOptions: { globals: { ...globals.browser, ...globals.node, }, }, plugins: { 'react-hooks': reactHooks, }, rules: { ...reactHooks.configs.recommended.rules, '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', }, ], 'no-undef': 'off', }, } )