max-mapper / standard-format

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

ES6 object literal shorthand formatted badly #122

Closed Janpot closed 8 years ago

Janpot commented 9 years ago

Objects defined as follows:

var x = {
  y,
  z
}

get formatted like:

var x = {
  y,
z}
feross commented 9 years ago

PR welcome! The issue might be as simple as updating the version of esformatter used to improve ES6 support. Or, perhaps changing one of the rules in the esformatter config file.

Flet commented 8 years ago

This looks to be a duplicate of https://github.com/maxogden/standard-format/issues/88