Atom-beautify: Support for ES6 destructuring

Created on 31 Aug 2016  路  4Comments  路  Source: Glavin001/atom-beautify

It seems atom-beautify doesn't support ES6 destructuring:
Before applying atom-beautify:

var {anAttribute} = anObject

After applying atom-beautify:

var {
    anAttribute
} = anObject

Any idea?

question

All 4 comments

What beautifier are you using? It appears to work correctly with Pretty Diff but not JSBeautify.

@bitwiseman alerted for his awareness.

@mkermani144
If you try brace-style=collapse-preserve-inline you should get better behavior.
Just to make sure I understand, the beautified output you show still works, right? It just isn't what you expect.

@bitwiseman Yeah, it works but it isn't what I want.

@prettydiff Yes, Pretty Diff works for me.
@bitwiseman Using brace-style=collapse-preserve-inline works too.
So the issue is resolved.

Was this page helpful?
0 / 5 - 0 ratings