Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upRule about new lines after curly-less arrow function bodies #889
Comments
This comment has been minimized.
This comment has been minimized.
|
Maybe a maximum density of 120 [actual] characters per 80*4 character space? |
Flet
added
the
enhancement
label
Nov 7, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tunnckoCore commentedMay 18, 2017
•
edited
Recently seen an article that has this snippet
I thought that it isn't very readable for my eyes. Not seeing such thing for the first time. So i'm thinking, is there rule for this? And if yes, could we include it in standard? A lot better would be to have a new line after the arrow function bodies. Probably, it would be good for beginners to understand that it is a function body and where it ends.
Sorry if issue is duplicate or discussed, just don't have the time to scroll over the issues right now.
Cheers :)
edit: Side note, probably it would be against Prettier's formatting, sadly?