-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
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
fix(tasks/lint_rules): Integrate react and react-hooks rules #3315
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
BTW, will linter configurations be also supported? {
"rules": {
// ...
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
If we need to change like this, might there be compatibility issues...? {
"rules": {
// ...
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn"
}
} |
Do you mean in the long run? or would it cause issues with this task? I guess we can alias the old rule name for a while, Or even better we can anticipate the wrong option and produce a nice error message pointing the user toward the right option. |
It was not about this task, but about the implementation of the Linter itself. I thought that I may just be assuming this on my own though...! 😅 |
Well, I don't know if that is the goal or not, What I know is that there are a few differences in our rules even not considering the unsupported rules, But with a few compromises, we can get this effect for sure. I just think providing an automated way of upgrading could be easier; Since once we hit a stable release it is going to be a one-way trip. |
Thank you! I'll map the rules. |
Fixes #2174 , now
react-hooks
plugin and its rules are managed byreact
plugin issue.