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

New options proposal: spaces around arguments #126

Closed
FarSeeing opened this issue Jul 12, 2012 · 1 comment
Closed

New options proposal: spaces around arguments #126

FarSeeing opened this issue Jul 12, 2012 · 1 comment

Comments

@FarSeeing
Copy link

I'd like to propose a new option: adding space between opening bracket and the first argument (in function call, array, property access), also between the last one and the closing bracket.

This is it:

[], {}                  // empty arrays and objects stay the same
[1, 2, 3]               // [ 1, 2, 3 ]
arr[0]                  // arr[ 0 ]
obj[prop]               // obj[ prop ]
function func(a, b) {}  // function func( a, b ) {}
func(arg1, arg2)        // func( arg1, arg2 )
@bitwiseman
Copy link
Member

Partially addressed by #235.

Still need to provide setting for spaces inside square brackets.

Kingwl pushed a commit to Kingwl/js-beautify that referenced this issue Sep 18, 2017
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