Skip to content

Conversation

@banhathome
Copy link
Contributor

In #483, @justjake says that we should amend the style guide to allow single line comments in the first line of a block. I updated 17.2 with this change.

In addition, our ESLint config file prohibits padded blocks, so I decided to make a section 18.8 to address that.

In airbnb#483, justjake said that we should update the style guide to allow
single line comments in the first line of a block.
@banhathome banhathome changed the title Padded blocks Prohibit Padded Blocks and Allow Comments in the First Line of a Block Oct 16, 2015
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to show one of these examples as an if...else

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing! I just made my change; let me know what you think!

@justjake
Copy link
Collaborator

Nice! Thanks for the PR

justjake added a commit that referenced this pull request Nov 6, 2015
Prohibit Padded Blocks and Allow Comments in the First Line of a Block
@justjake justjake merged commit f4e5967 into airbnb:master Nov 6, 2015
@banhathome banhathome deleted the padded-blocks branch December 23, 2015 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants