dprint-plugin-typescript
dprint-plugin-typescript copied to clipboard
Add `arrowFunction.noNewLineBeforeFnCall` option
Resolves #107.
If set to true dprint will not format this:
[].map(() => test({
foo: 1,
bar: 2,
}));
to this:
[].map(() =>
test({
foo: 1,
bar: 2,
})
);
and this:
const getStyles = () => css`
display: flex;
`;
to this:
const getStyles = () =>
css`
display: flex;
`;
Also, please help with naming, I'm not quite sure that noNewLineBeforeFnCall is ok 🙂
@dsherret, may I ask you to check this PR? 🙂