[RFC] please break lines before binary operators #5304
SirzBenjie
started this conversation in
RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know if you are planning on doing this, but please break lines before binary operators. I also don't know if this is already being considered or has previously been suggested -- I did a search, but wasn't sure what people would call the issue.
I don't want to start the bikeshedding of making formatting configurable and start a whole big fuss about it, but breaking long lines after binary operators makes the logic substantially harder to follow, primarily because the binary operator is the IMPORTANT bit.
In other words,
is way worse than formatting it like this (with reasonable alignment):
Even the nearly unmoving prettier devs have recently integrated this change.
prettier/prettier#7111
Beta Was this translation helpful? Give feedback.
All reactions