Flat Config (eslint.config.js) importreactHooksfrom'eslint-plugin-react-hooks';exportdefault[{files:['**/*.{js,jsx}'],plugins:{'react-hooks':reactHooks},// ...rules:{'react-hooks/rules-of-hooks':'error','react-hooks/exhaustive-deps':'warn',}},]; ...
The new host config shape is flat and doesn't use nested objects. (@gaearon in #12792) 16.3.3 (August 1, 2018)React DOM ServerFix a potential XSS vulnerability when the attacker controls an attribute name (CVE-2018-6341). This fix is available in the latest `react-dom@16.4.2, as ...
👋 Coming over from eslint/eslint#18093: ESLint is migrating to a new "flat config" format that will be the default in ESLint v9. It doesn't look like eslint-plugin-react-hooks has documented support yet. But, based on searching around (e.g. vercel/next.js#49337), ESLint v9 ...
According to the docs foreslint-plugin-react-hooks, there should be a flat config compatible config available atreactHooks.configs['recommended-latest']. The only config that exists in the version published on npm isrecommended, which does not work with ESLint 9 and flat config. By exploring ...
Bug [eslint-plugin-react-hooks]:Config (unnamed): Key "plugins": This appears to be in eslintrc format (array of strings) rather than flat config format (object).#32494 Closed #32498 React version: 19.0.0 eslint-plugin-react-hooks: 5.2.0 ...
@@ -17,11 +17,9 @@ export default tseslint.config( 17 17 tseslint.configs.recommended, 18 18 react.configs.flat.recommended, 19 19 react.configs.flat['jsx-runtime'], 20 + reactHooks.configs['recommended-latest'], 21 + reactCompiler.configs.recommended, 20 22 { 21 - plugi...
@@ -242,12 +242,14 @@ export function getStormConfig( const reactConfigs: Linter.FlatConfig<Linter.RulesRecord>[] = [ { ...reactPlugin.configs?.recommended, plugins: { "react": reactPlugin }, files: ["**/*.tsx"], ignores: [...ignores, ...(options.ignores || [])], ...react...
React version: React 19.0.0 (latest stable) eslint-plugin-react-hooks 5.1.0 (latest stable) Steps To Reproduce Create a functional component withuseStatehook. Add aforloop inside the component (but outside the hook). Run the ESLint with theeslint-react-hooksplugin enabled. ...