-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Bug: eslint-plugin-react-hooks does not support TypeScript "satisfies" operator #26004
Comments
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! |
@Egor-Koldasov Can you double check if this still reproduces with the latest version of |
This still happens with the latest versions of both @typescript-eslint/* and eslint-plugin-react-hooks. Any ideas @eps1lon ? |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! |
React version: 18.2.0
Steps To Reproduce
Link to code example:
Here I created a repo with the minimal demo to reproduce the issue, CodeSandbox does not allow to configure eslint properly:
https://github.com/Egor-Koldasov/eslint-plugin-react-hooks-satisfies-error
The current behavior
Plugin shows the error and doesn't check actual dependencies passed to the
useCallback
:The expected behavior
It should work exactly the same way as it works without "satisfies" operator used. No error "received a function whose dependencies are unknown" and dependencies passed are successfully checked.
The text was updated successfully, but these errors were encountered: