Skip to content
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

Disable no-lone-blocks rule #121

Closed
julien-f opened this issue Apr 21, 2015 · 2 comments

Comments

@julien-f
Copy link

commented Apr 21, 2015

Standalone blocks are useful in ES6 with block bindings, unfortunately ESLint does not detect this case at the moment.

Because they do not cause any issues, I think it would be pertinent to disable this rule while the ESLint issue (eslint/eslint#2119) is resolved.

@feross feross closed this in 4852983 Apr 23, 2015

@feross

This comment has been minimized.

Copy link
Member

commented Apr 23, 2015

Released as 3.7.1.

@julien-f

This comment has been minimized.

Copy link
Author

commented Apr 23, 2015

Thanks :)

Flet added a commit to Flet/standard that referenced this issue Oct 23, 2015

relax rule: no-lone-blocks
Lone blocks are useful in ES6 because const/let/function have block
scope. This rule currently prevents this.

Once eslint/eslint#2119 is fixed, we can
re-enable this rule.

Fixes standard#121

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.