esformatter
esformatter copied to clipboard
whiteSpace.after.PropertyValue = -1
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.
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.
see also #407