import js from '@eslint/js'; import tseslint from 'typescript-eslint'; import reactPlugin from 'eslint-plugin-react'; import reactHooksPlugin from 'eslint-plugin-react-hooks'; import globals from 'globals'; export default tseslint.config( js.configs.recommended, ...tseslint.configs.recommended, { plugins: { react: reactPlugin, 'react-hooks': reactHooksPlugin, }, languageOptions: { globals: { ...globals.browser, }, }, rules: { 'react/react-in-jsx-scope': 'off', '@typescript-eslint/no-unused-vars': 'warn', '@typescript-eslint/no-explicit-any': 'warn', 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', }, settings: { react: { version: 'detect' }, }, }, { ignores: ['dist/**', 'node_modules/**'], } );