-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
feat(linter): react/exhaustive-deps #7151
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “0-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. |
95fa95d
to
e4715ae
Compare
a9758db
to
1cd2f0b
Compare
99854fb
to
97c5918
Compare
Rough first draft but most of the way their. would appreciate some early reviews as this was a massive amount of work and i don't want to go too far 🙂 |
This is amazing! I would run it through oxlint ecosystem ci and see what happens. |
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.
This looks pretty good overall, I didn't thoroughly review all of the code (there is a lot!) but I took a look at the diagnostics and have a few help text suggestions. I think keeping this in nursery and continuing to iterate on it would be good
Note: once merged, manually add this rule to oxlint-ecosystem-ci's CI script. We then change this to correctness after running it for 2 - 4 weeks. |
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.
it's hard to review all of this code, but I have skimmed over most of it and not too much stuck out to me. I think this is ready to start being tested in nursery
d66e466
to
8f927a2
Compare
@Boshen did it look ok in the ecosystem ci? https://github.com/oxc-project/oxlint-ecosystem-ci/actions/runs/11755920122/job/32751524336 thanks for testing for me 🙂 |
CodSpeed Performance ReportMerging #7151 will not alter performanceComparing Summary
|
Merge activity
|
Hit the merge button too quickly 😅 In
Some false positives:
It's picking up type annotation
|
Do you also need to include function calls?
|
The span is not pointing at the member expression. |
This looks pretty weird
|
kibana has the most violations, you may want to test it during developement. |
looks like they've got it disabled? for this file https://github.com/elastic/kibana//blob/2466a172af66452bdd939dddc56506faba7ffb7a/.eslintrc.js#L1623 when i run eslint on this file, it reports (same as us) |
Interesting case, how should this be handled? |
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.
Feel free to merge after a final self review.
@Boshen i guess we should be reporting the same (or at least very similar spans to react? if ok with you, i'll make an issue to track bits that aren't exactly complete for this rule |
Indeed, current span breaks already written eslint ignores. |
a4f7675
to
171e62c
Compare
171e62c
to
3dcac1a
Compare
Firstly, a massive thanks to @alisnic for starting this (incredibly complicated) lint rule in #2637 !
closes #2637
relates to #2174