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
Hybrid space_in_paren option, e.g. "});" rather than "} );" #373
Comments
Any news on this?
but don't want
|
Absolutely no news. You are welcome to submit a pull request or to fork. There are a number of higher priority features to be done before anyone on the project gets down to this one. I will point out that the beautifier project has generally made "tricky" a non-goal, partly because the design make it very difficult (see #200). There are other projects that aim to handle any and all formatting settings you might like. |
... My comment was not meant as an attack ... |
👍 Sorry, didn't mean to come of defensive. 😄 |
Thanks 😍 |
Some JavaScript style guides, including idiomatic.js and the jQuery style guide, recommend a hybrid form of the spaces in brackets style. To summarize:
Function with a callback, object, or array as the sole argument. No space on either side of the argument:
Function with a callback, object, or array as the first argument. No space before the first argument:
Function with a callback, object, or array as the last argument. No space after the last argument:
Is there any way we could get a "hybrid" mode for the
space_in_paren
option that implements these rules?Also, the
space_in_paren
name is a bit misleading, as spaces are added to all brackets.space_in_brackets
would be a more accurate name, but that's not a big deal.The text was updated successfully, but these errors were encountered: