Anyone know of an ESLint rule that enforces naming React state properly


Anyone know of an ESLint rule that enforces naming React state properly?

I'd like it to catch this:
const [count, updateTheCount] = useState(0)

And this:
const [count, setCounter] = useState(0)

To assure we use the standard pattern:
const [count, setCount] = useState(0)

View original on X