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
(Man, I was sure I answered this one, sorry for the delay)
Yeah, this is kind of a hard thing to do with ESLint, as you have to "manually" track the variables, the assignations and stuff, which is possible, but just requires quite a lot more time and investment. It is also a lot more fragile if the values are re-assigneable or some new variable named like Lodash gets introduced through a variable or a parameter.
I have added the help wanted label so that if someone has experience with this and wants to tackle it, they can have a go at it (and I'd be very grateful!), but this is definitely not an issue for a beginner. I will probably not tackle this issue before quite a while either. Maybe one day I'll build a tool to help solve this kind of thing, as it is frustratingly recurrent.
Out of curiosity, is this something that you noticed, or something you have in your code and that you noticed didn't give you an error? I'm wandering this is really a problem, or just a warning. Thanks for reporting though ;)
Works (gives error)
Doesn't work (no error)
The text was updated successfully, but these errors were encountered: