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

removeInnerWhenEmpty for brackets #592

Open
vonagam opened this issue May 13, 2020 · 1 comment
Open

removeInnerWhenEmpty for brackets #592

vonagam opened this issue May 13, 2020 · 1 comment
Labels
enhancement New feature or request whitespace missing or incorrect space around token

Comments

@vonagam
Copy link

vonagam commented May 13, 2020

So right now it is impossible to do this style for brackets:

var x = [];
var y = [ 1 ];

Ideally it can be done by combining openingBracketPolicy and closingBracketPolicy into bracketsPolicy: OpenClosePolicy (but that would be a breaking change...).

Is there a reason why it isn't supported?

@AlexHaxe AlexHaxe added enhancement New feature or request whitespace missing or incorrect space around token labels May 13, 2020
@AlexHaxe
Copy link
Member

I guess it just never came up when reworking () and {} options.
Also since nobody complained about it, there was no reason to touch it - until now... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request whitespace missing or incorrect space around token
Projects
None yet
Development

No branches or pull requests

2 participants