-
Notifications
You must be signed in to change notification settings - Fork 980
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
Add curly rule for blocks #1836
Conversation
Oops. That was a bigger change than I anticipated. Mostly in the structure package. @peterp What do you think? |
Thanks, @Krisztiaan! Looked through about half and agree this improves readability. I defer to PP for final say. |
It also makes it a lot easier and safer to add more code to a branch of the if/else-statement. |
Love it 👍 |
Hi @Krisztiaan I'd like to get this into the next release. There's a merge conflict from Peter's PR here #1827 Didn't want to assume I could just move your change to |
9398f8d
to
0c92497
Compare
@thedavidprice Yeah you could. Rebased, should be g2g now. |
ESlint rule against one-liners, see thread below.
💯 I was actually surprised it wasn't already a rule
Originally posted by @Tobbe in #1824 (comment)