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
block-scoped-var fails on mutual recursion #2747
Comments
@RReverser |
@michaelficarra Doesn't help for classes though (which was my original case). I'd just wish the rule would be somewhat smarter and wouldn't warn when definition outside of the function/class boundary is referenced. Also - what about |
There's a proposal to fix that: #2750 What's the problem you're having with |
See title - it also fails with given example & config. |
Haha, just in time :) |
@RReverser can you provide the actual ESLint output as well as what you'd expect the output to be? |
Sure, here it is:
I expected not to see any of these errors. |
It looks like nofunc solves your problem here, and #2750 would take care of the rest of your concerns there. So let's focus this issue on
|
Thanks! |
I will try to fix bugs around |
Simplified my case to the following code:
And simplified eslintrc that allows to reproduce the issue:
Without
blockBindings
enabled, onlyno-use-before-define
fails.Turning
modules
on/off doesn't affect the result, only addsuse strict
-related check in this case.The text was updated successfully, but these errors were encountered: