dprint-plugin-typescript icon indicating copy to clipboard operation
dprint-plugin-typescript copied to clipboard

Add `arrowFunction.noNewLineBeforeFnCall` option

Open Ty3uK opened this issue 2 years ago • 2 comments

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;
`;

Ty3uK avatar May 25 '23 13:05 Ty3uK

Also, please help with naming, I'm not quite sure that noNewLineBeforeFnCall is ok 🙂

Ty3uK avatar May 25 '23 13:05 Ty3uK

@dsherret, may I ask you to check this PR? 🙂

Ty3uK avatar May 31 '23 10:05 Ty3uK