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?
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.