esformatter icon indicating copy to clipboard operation
esformatter copied to clipboard

whiteSpace.after.PropertyValue = -1

Open Nate-Wilkins opened this issue 9 years ago • 2 comments

Ran into another issue setting the white space after property values to -1.

Input:

var obj = {
  a: 'something'     ,
  b: 'other'
};

Output:

var obj = {
  a: 'something',
  b: 'other'
};

What I expected was the input to be the output without any changes. Looked through the other esformatter options to see if I was missing another option somewhere but couldn't find anything.

Side note whiteSpace.before.PropertyValue = -1 works as expected.

Nate-Wilkins avatar Apr 21 '15 17:04 Nate-Wilkins

Probably because of our logic to convert comma-first into comma-last.. We should probably change the behavior and implement the comma-last behavior as a plugin.

millermedeiros avatar Apr 21 '15 18:04 millermedeiros

see also #407

millermedeiros avatar May 25 '16 09:05 millermedeiros