Closed iplus26 closed 8 years ago
Something like this should do the trick for your particular line of code.
{
"options":
{
"lineBreak" : {
"after": {
"ObjectPatternComma": 1
}
}
}
You can read more about your configuration here: https://github.com/millermedeiros/esformatter/blob/master/doc/config.md
The ast parser is very helpful in situations like this.
Yes, it works! Thank you!
I also installed esformatter-var-each to make the new configuration work.
I'm working with React Native these days, so instead of
I want
I've walked through the esformatter preset files but I can't understand it well... So any help will be appreciated.