pmcp

eslint-plugin-react-hooks

Use eslint-plugin-react-hooks ^7.0.0 correctly, including its flat and legacy presets, rule names, custom-hook dependency configuration, and the preset-shape changes from older releases.

A skill is written against one major of its package, because a major is where the shape changes. Pick the line that matches your lockfile.

LineForVerified
7.x eslint-plugin-react-hooks@7.1.1 2026-09-08, 2 examples