eslint-to-esformatter
eslint-to-esformatter copied to clipboard
Setting esformatter 'defaults'
I'm having a few issues with the defaults.
For comma-spacing if the rule is off what should the following code look like?
var obj = {
a: 'something' ,
b: 'other'
};
If we just go with the esformatter defaults it'd look like this
var obj = {
a: 'something',
b: 'other'
}
Which I guess is fine... Or we could set everything to -1 before we do any of the transformations to keep user's original formatting. Is that desired or do we just go with the esformatter defaults whenever possible?
I'm leaning toward using the esformatter defaults whenever possible - if we do that we could remove the active argument from the rule transformers because any defaults that they set are going to override the esformatter defaults.
I've opened a related issue related to whiteSpace.after.PropertyValue = -1 https://github.com/millermedeiros/esformatter/issues/314 to keep default user white space