-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Removing global ml exhaustive-deps rule #139907
[ML] Removing global ml exhaustive-deps rule #139907
Conversation
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Pinging @elastic/ml-ui (:ml) |
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.
LGTM
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.
LGTM, makes sense to enable this rule and address existing issues with some additional test coverage
* [ML] Removing global ml exhaustive-deps rule * changes after main merge
Removes the global eslint exhaustive-deps rule suppression and adds inline comments to suppress every violation.
This will stop any future code from breaking this rule by accident.
We can then divide the work between us to remove these comments and fix the dependencies.
It's worth noting that I purposely didn't auto fix these rule breakages as previous attempts at doing that caused a lot of problems. Mainly due to incorrect hook usage.
We could auto fix them in a more focused approach, perhaps a page at a time, to ensure no functional problems.
Fixes #49565