Skip to content

Conversation

simono
Copy link
Contributor

@simono simono commented Jan 14, 2016

arrow-body-style (8.2) and prefer-template (6.4) are described in
the Style Guide.

@@ -22,6 +22,8 @@ module.exports = {
'jsx': true
},
'rules': {
// enforces no braces where they can be omitted
'arrow-body-style': [2, 'as-needed'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we link to http://eslint.org/docs/rules/arrow-body-style in a comment?

@ljharb
Copy link
Collaborator

ljharb commented Jan 14, 2016

Thanks, this looks great pending 2 comments :-)

`arrow-body-style` (8.2) and `prefer-template` (6.4) are described in
the Style Guide.
@simono
Copy link
Contributor Author

simono commented Jan 15, 2016

I've added the links.

Right now the linting for eslint-config-airbnb shows 148 errors. Would you accept a PR which fixes those?

@ljharb
Copy link
Collaborator

ljharb commented Jan 15, 2016

Thanks! i'm not sure what linting you're talking about though.

@ljharb ljharb merged commit c2fd8fb into airbnb:master Jan 15, 2016
@ljharb ljharb self-assigned this Jan 15, 2016
@simono simono deleted the add-missing-es6-rules branch January 15, 2016 17:02
@simono
Copy link
Contributor Author

simono commented Jan 15, 2016

Running npm run lint in packages/eslint-config-airbnb results in 148 errors.

@ljharb
Copy link
Collaborator

ljharb commented Jan 15, 2016

good lord, why isn't that being run as part of tests?? thanks, i'll fix that right now

ljharb added a commit that referenced this pull request Jan 16, 2016
@ljharb
Copy link
Collaborator

ljharb commented Jan 16, 2016

Thanks, fixed in ab58d3b

gilbox pushed a commit to gilbox/javascript that referenced this pull request Mar 21, 2016
jaylaw81 pushed a commit to appirio-digital/ads-best-practices that referenced this pull request Sep 19, 2017
sensiblegame added a commit to sensiblegame/React-BNB that referenced this pull request Oct 23, 2017
MK825 added a commit to MK825/javascript that referenced this pull request Jan 27, 2023
Binary-Ninja-007 added a commit to Binary-Ninja-007/JavaScript_Style_Guide that referenced this pull request Aug 13, 2023
harry908nilson pushed a commit to marcolane/Javascriipt that referenced this pull request Sep 1, 2023
talentdev219 pushed a commit to talentdev219/javascript that referenced this pull request Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants