Open feluxe opened 6 years ago
This was fixed in Reason's master branch a little while ago with the merge of https://github.com/facebook/reason/pull/1873.
Neat! Thanks for the info!
Any ideas for a workaround until the next version gets released?
I guess this can be closed 🤔
Hi there!
I just started with Reason React and it's a really nice experience so far!
But one thing keeps bothering me, which is refmt's behaviour towards empty-lines.
For example, if I put a react component into a
module
, refmt force-removes all new-lines, so that I end up with a large, dense, hard to read code block:The same code with empty-lines:
In this regard I really like the default behaviour of yapf (a popular Python code formatter). In general yapf simply allows you to add a single empty-line wherever you like, but it would reduce two and more empty-lines to one. This works really well.
Any love for this?
If I'm missing something, please excuse me for bothering!