React 19+ · Module
eslint-plugin-react-hooks
The rules-of-hooks ESLint rule checks that React Hooks are called in valid places. Most Hooks must be called at the top level of a component or custom Hook, while use may also be used in conditions and loops.
Last updated
- Since
- eslint-plugin-react-hooks 6.1.1 for additionalEffectHooks
Syntax
"settings": { "react-hooks": { "additionalEffectHooks": "(useMyEffect|useCustomEffect)" } }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
eslint-plugin-react-hooksexhaustive-depsuseuseStateadditionalEffectHooks