I’m liking a lot rescript. It’s a wonderful effort to make reasonml simpler, and I’m really satisfied with the ecosystem and the seamless introduction of the language into a js / ts codebase.
However, the thing that makes my code really hard to read is the current formatting situation that we have. I find this really hard to read and edit:
getCategory(id)
->thenResolve(category => {
category["path_from_root"]->Array.get(0)->Option.map(category => category["name"])
})
->catch(_ => resolve(None))
Compared to this:
getCategory(id)
->thenResolve(category => {
category["path_from_root"]
->Array.get(0)
->Option.map(category => category["name"])
})
Note that I’m a vim user, so moving and editing parts of the pipelines is easier when they are split in lines. There are more examples with jsx that the same applies.
It’s been months since there’s no improvements in this area, and I get it, the current team is busy with other things. Therefore, is it worth it to build a rescript formatting tool, or is the rescript format api coming with more customizations?