Closed AlexDunmow closed 7 years ago
I think this is handled by ModuleSpecifierComma
: https://github.com/millermedeiros/esformatter/blob/master/lib/preset/default-linebreak-after.js#L75
see: https://github.com/millermedeiros/esformatter/blob/master/lib/hooks/ImportSpecifier.js#L22
let me know if that doesn't solve your problem.
@AlexDunmow
see also:
you can set values to -1
to keep existing formatting, so in this case something like lineBreak.after.ModuleSpecifierComma = -1
marking as closed; feel free to reopen if issue persists.
Esformatter is turning this:
into this
import { ONE_THING, TWO_THING, THREE_THING } from 'lib'
How do I tell esformatter not to remove line breaks from the import statement? This doesn't work: