-
Notifications
You must be signed in to change notification settings - Fork 47
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
turn ”react/prefer-es6-class" on as an error #36
Conversation
This should not be enforced to es5 (for obvious reasons). See: https://github.com/godaddy/javascript/blob/master/es5/fix.js#L32 |
@@ -29,7 +29,8 @@ var es5Options = { | |||
sourceType: 'script' | |||
}, | |||
rules: { | |||
'react/display-name': 2 | |||
'react/display-name': 2, | |||
"react/prefer-es6-class": 0, |
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.
@mpaulucci Does this work?
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.
it should! 👍
Merging this so that we can publish a minor before we formally deprecate after #40. |
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md