max-mapper / standard-format

converts your code into Standard JavaScript Format
264 stars 59 forks source link

ES6 Object Literals Not Formatting Correctly. #129

Closed bcomnes closed 7 years ago

bcomnes commented 8 years ago

Formats enhanced ES6 object literals to:

  fubar ({a, b}) {
    baz('test', {
      a,
    b})
  }

cc @mblakele from https://github.com/feross/standard/issues/339

fritx commented 8 years ago

+1

image

joseluisq commented 8 years ago

Also, a related issue from https://github.com/stephenkubovic/atom-standard-formatter/issues/32

joseluisq commented 8 years ago

Before: image

After: image

feross commented 7 years ago

You should use standard --fix instead of this package. standard-format isn't being actively maintained anymore.