-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Add missing ES6 rules to ESLint config. #678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -22,6 +22,8 @@ module.exports = { | |||
'jsx': true | |||
}, | |||
'rules': { | |||
// enforces no braces where they can be omitted | |||
'arrow-body-style': [2, 'as-needed'], |
There was a problem hiding this comment.
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?
Thanks, this looks great pending 2 comments :-) |
`arrow-body-style` (8.2) and `prefer-template` (6.4) are described in the Style Guide.
I've added the links. Right now the linting for eslint-config-airbnb shows 148 errors. Would you accept a PR which fixes those? |
Thanks! i'm not sure what linting you're talking about though. |
Running |
good lord, why isn't that being run as part of tests?? thanks, i'll fix that right now |
Thanks, fixed in ab58d3b |
arrow-body-style
(8.2) andprefer-template
(6.4) are described inthe Style Guide.