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

enforce braces in conditionals/loops/scopes... #186

Closed
pgilad opened this issue Jul 1, 2014 · 3 comments
Closed

enforce braces in conditionals/loops/scopes... #186

pgilad opened this issue Jul 1, 2014 · 3 comments

Comments

@pgilad
Copy link
Contributor

pgilad commented Jul 1, 2014

Would love it if there will be support for enforcing braces (ala jshint braces option) for blocks.

Turn this:

if (theSkyIsBlue)
    stareAtItForAWhile();

into:

if (theSkyIsBlue) {
    stareAtItForAWhile();
}

This obviously steps out of the bounds for white-space / linebreaks but I think it's a necessary move...

@millermedeiros
Copy link
Owner

this should be implemented as a plugin!! we are trying to move as much complexity as possible away from this project in the hope that more people will be able to contribute to it.

see the plugin wishlist and the current plugins for a reference implementation: https://github.com/millermedeiros/esformatter/wiki/Plugins

thanks a lot for the suggestion, I would love to see this implemented :D

@pgilad
Copy link
Contributor Author

pgilad commented Jul 1, 2014

Cool, hope to see this live one day 😄

@millermedeiros
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants