Open Anahkiasen opened 5 years ago
I updated refmt to 3.3.3 and it modified one my blocks in the following way
refmt
- expenditure - |. getExpenditureAccounts - |. Belt.List.fromArray - |. Belt.List.getBy(id => id == accountId) - |. Option.isSome; + expenditure->getExpenditureAccounts->Belt.List.fromArray->(Belt.List.getBy(id => id == accountId))->Option.isSome;
Now I'm aware of the change from |. to -> but does the whitespace need to be discarded around the operator for it to work? I don't particularly find the updated code easier to read, quite the opposite :/
|.
->
Could it not simply reformat it to this?
expenditure -> getExpenditureAccounts -> Belt.List.fromArray -> Belt.List.getBy(id => id == accountId) -> Option.isSome;
I updated
refmt
to 3.3.3 and it modified one my blocks in the following wayNow I'm aware of the change from
|.
to->
but does the whitespace need to be discarded around the operator for it to work? I don't particularly find the updated code easier to read, quite the opposite :/Could it not simply reformat it to this?