[feat] exhaustive-deps rule
Describe the problem
the exhaustive-deps rule from the eslint-plugin-react helps make sure effects always have an up-to-date list of dependencies to run correctly. This is something we'd love to have before considering the migration to eslint-react. Is there a reason why it's not ported over?
Describe the solution you'd like
add the react-hooks/exhaustive-deps rule! original reference here
Alternatives considered
No response
Additional context
No response
I believe the intent of this library isn't to recreate the rules that are in the react team's eslint-plugin-react-hooks, but instead to be additional rules that would be useful on top of those two. As evidenced by the examples folder where both plugins are being used: https://github.com/Rel1cx/eslint-react/blob/main/examples/vite-react-dom-app/eslint.config.js (eslint-plugin-react is a different plugin entirely.)
Based on recent feedback on the eslint-plugin-react-hooks 7.0 update, I'm reconsidering the integration of the exhaustive-deps and rules-of-hooks rules, also mentioned in #710