Rules
use-state
Full Name in eslint-plugin-react-naming-convention
Full Name in @eslint-react/eslint-plugin
Description
Enforces destructuring and symmetric naming of useState
hook value and setter.
This rule ensures two things:
- The
useState
hook is destructured into a value and setter pair. - The value and setter are named symmetrically (e.g.
count
andsetCount
).