I've noticed multi-lining currently is only done when the configured lineWidth is reached.
However, we'd like to always multiline imports/objects that have more then 1 parameter, e.g.:
Currently:
import { a, b } from 'foo'
const obj = { a, b };
Ideal formatting:
import {
a,
b,
} from 'foo';
const obj = {
a,
b,
};
The reasoning behind it being that when multi-lining conflicts become easier to resolve, as they are a single line per import/property rather then a conflict on the entire line.
I've noticed multi-lining currently is only done when the configured
lineWidthis reached.However, we'd like to always multiline imports/objects that have more then 1 parameter, e.g.:
Currently:
Ideal formatting:
The reasoning behind it being that when multi-lining conflicts become easier to resolve, as they are a single line per import/property rather then a conflict on the entire line.