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
{{ message }}
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
I am porting project from ESLint to Rome and when I add dependency to the useMemo I got this from ESLint
React Hook useMemo has an unnecessary dependency: 'dayToYyyymmdd'. Either exclude it or remove the dependency array. Outer scope values like 'dayToYyyymmdd' aren't valid dependencies because mutating them doesn't re-render the component react-hooks/exhaustive-deps
However if I remove it I got error from the Rome.
Expected result
I think the dependency OUTSIDE of the function body is not necessary to specify as dependency and Rome should not require it.
Code of Conduct
I agree to follow Rome's Code of Conduct
The text was updated successfully, but these errors were encountered:
peter-goodfill
changed the title
Unnecessary dependency:
"This hook do not specify all of its dependencies." but for function defined OUTSIDE of the component function body
Jan 5, 2023
Environment information
When I run this command I got insanely long output full of code.
I have this version of rome:
What happened?
I have a function that is outside of the component function body:
I am porting project from ESLint to Rome and when I add dependency to the
useMemo
I got this from ESLintHowever if I remove it I got error from the Rome.
Expected result
I think the dependency OUTSIDE of the function body is not necessary to specify as dependency and Rome should not require it.
Code of Conduct
The text was updated successfully, but these errors were encountered: