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
// ESLint: Move arrow function to the outer scope.(unicorn/consistent-function-scoping)//// here// ⬇exportconstsomeAction=()=>(dispatch)=>dispatch({type: SOME_TYPE,});
I'd really like this rule to actually report as many functions as possible. Currently it feels like it's ignoring a lot of cases, with more exceptions mentioned in #1074
Arrow function (throws error):
Function declaration (no error):
The arrow function in the second one should be reported.
Original posted by @Arttse #596 (comment)
IssueHunt Summary
Backers (Total: $46.61)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
The text was updated successfully, but these errors were encountered: