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 upBlocks should have one blank line at the beginning and the end #350
Comments
This comment has been minimized.
This comment has been minimized.
|
Well, I'll counter-propose your proposal and say it makes it less readable. |
dcousens
added
the
question
label
Dec 2, 2015
This comment has been minimized.
This comment has been minimized.
|
Haha, fair enough. I ended up using the standard extension for ESLint instead. After reading more, I understand that the point of standard is to just choose something. While I generally support that notion and the idea that consistency across projects is nice, I think usability has to come first. ESLint is the right fit for us. We'll use standard as the starting point, and adjust from there. Using ESLint directly actually opens up integrations in the JetBrains editors too. So even if I were going to use standard as-is, I would probably install it via the ESLint plugin instead. |
andyfleming
closed this
Dec 2, 2015
This comment has been minimized.
This comment has been minimized.
|
Awesome, the way you've resolved it is exactly how it should be |
This comment has been minimized.
This comment has been minimized.
Unfortunately, style is something where you do just have to choose something, as its usability/readability is absolutely in the eye of the beholder. I suspect we'd of otherwise converged on a solution back in the 60's for all this. Don't get me wrong, the style choices in |
This comment has been minimized.
This comment has been minimized.
I agree. I think it's beneficial to try to keep close.
That's fair. The block spacing was the only change that felt out of place to me. |
andyfleming commentedDec 1, 2015
I see that the padding-blocks rule was based on the padded blocks rule in ESLint.
It states:
I would propose that code is more readable with single-line-padding inside blocks. Why did we decide to enforce no padding as opposed to single-line padding?