dprint-plugin-typescript
dprint-plugin-typescript copied to clipboard
Support adding space before parenthesis in function call expressions
Currently we have config options for "functionDeclaration.spaceBeforeParentheses", "functionExpression.spaceBeforeParentheses", etc. It would be good to have a similar "functionApplication.spaceBeforeParentheses".
This is useful for sanctuary style curried functions.
S.reduce (S.add) (0) (xs)
👍
It would also be nice to allow:
S.reduce
(S.add)
(0)
(xs)
equivalent the following for non curried functions:
S.reduce(
S.add,
0,
xs,
)