We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm beautifying the following javascript:
var arr = [ function () {}, function () {} ];
Which results in:
var arr = [function () {}, function () {}];
I expect the indentation to be:
If I beautify the following:
var arr = [ 'a', 'b' ];
It indents correctly:
I don't think functions in an array should be indented differently to other types.
Thanks!
The text was updated successfully, but these errors were encountered:
Agreed, this is a bug. Right about at https://github.com/einars/js-beautify/blob/master/js/lib/beautify.js#L1128 . Need to exempt array literals and add tests.
Sorry, something went wrong.
e8352cd
Thank you! This works great.
No branches or pull requests
I'm beautifying the following javascript:
Which results in:
I expect the indentation to be:
If I beautify the following:
It indents correctly:
I don't think functions in an array should be indented differently to other types.
Thanks!
The text was updated successfully, but these errors were encountered: