You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What does your .oxlint.json config file look like?
No config file.
What happened?
× eslint-plugin-react-hooks(rules-of-hooks): React Hook "useIntersectionObserver" cannot be called at the top level. React Hooks must be called in a React function component or a custom React Hook function.
This error is thrown for the <script> part of a Svelte component. It contains a call of useIntersectionObserver(), which is named like a React hook but the name is the only similarity. It's a Svelte-only library and the function doesn't work like a React hook at all.
Please turn off this rule in Svelte files.
The text was updated successfully, but these errors were encountered:
What version of Oxlint are you using?
latest
What command did you run?
oxlint -A
What does your
.oxlint.json
config file look like?No config file.
What happened?
This error is thrown for the
<script>
part of a Svelte component. It contains a call ofuseIntersectionObserver()
, which is named like a React hook but the name is the only similarity. It's a Svelte-only library and the function doesn't work like a React hook at all.Please turn off this rule in Svelte files.
The text was updated successfully, but these errors were encountered: