Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Enable react/hook-use-state #1

Closed
mrmckeb opened this issue Mar 29, 2022 · 2 comments
Closed

Enable react/hook-use-state #1

mrmckeb opened this issue Mar 29, 2022 · 2 comments

Comments

@mrmckeb
Copy link
Contributor

mrmckeb commented Mar 29, 2022

This rule was recently added, and enforces consistent state naming in React (hooks).

Example

// Incorrect
const [color, updateClr] = React.useState();

// Correct
const [color, setColor] = React.useState();

https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/hook-use-state.md

@mrmckeb mrmckeb added the eslint label Mar 29, 2022
@mrmckeb mrmckeb added this to the April 2022 milestone Mar 31, 2022
mrmckeb added a commit that referenced this issue Sep 21, 2022
mrmckeb added a commit that referenced this issue Sep 21, 2022
mrmckeb added a commit that referenced this issue Sep 21, 2022
mrmckeb added a commit that referenced this issue Sep 21, 2022
@vercel-release-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 4.0.0-canary.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@vercel-release-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants