We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce use of const [*, set*] = when using useState hook.
const [*, set*] =
Valid
const [value, setValue] = useState();
Invalid
const [value, updateValue] = useState();
The text was updated successfully, but these errors were encountered:
We might also add a rule for ref
// Pattern const *Ref = useRef(); // Valid const inputRef = useRef(); // Invalid const node = useRef();
Sorry, something went wrong.
That would be nice, are good patterns to "enforce".
bryceosterhaus
Successfully merging a pull request may close this issue.
Enforce use of
const [*, set*] =
when using useState hook.Valid
Invalid
The text was updated successfully, but these errors were encountered: