Skip to content

Conversation

@tomek-he-him
Copy link

Fixes #438.

I’ve upgraded the note about argument parens to a new rule – it reads better this way.

@tomek-he-him tomek-he-him changed the title Implicit return + a single expression Implicit return + single expression Aug 12, 2015
README.md Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Let's make this 8.3 and have the good bad examples nestled up underneath.

@hshoff
Copy link
Member

hshoff commented Aug 12, 2015

Couple of comments, love the added clarity. Thanks @tomekwi!

@tomek-he-him
Copy link
Author

Thanks for the comments @hshoff 👍 .

I can come back to this tomorrow morning, European time. Until then!

@tomek-he-him
Copy link
Author

🏁

Sorry for scattering the changes over so many commits. I can rebase if you don’t mind losing your line comments @hshoff.

@hshoff
Copy link
Member

hshoff commented Aug 13, 2015

🏆

hshoff added a commit that referenced this pull request Aug 13, 2015
Implicit return + single expression
@hshoff hshoff merged commit fff3d6d into airbnb:master Aug 13, 2015
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change doesn't hold the original intent of the text where parens are ok to omit only when you're using implicit return, otherwise they're required. cc @ljharb

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's please revert this text then, and also ensure the eslint plugin enforces it.

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.

4 participants