-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refmt - use less stric behaviour towards empty-lines #89
Comments
This was fixed in Reason's master branch a little while ago with the merge of reasonml/reason#1873. |
Neat! Thanks for the info! Any ideas for a workaround until the next version gets released? |
I guess this can be closed 🤔 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
The text was updated successfully, but these errors were encountered: