Skip to content
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

Merged
merged 4 commits into from
Feb 8, 2017

Conversation

yhan64
Copy link
Contributor

@yhan64 yhan64 commented Dec 29, 2016

@yhan64 yhan64 changed the title turn ”react/prefer-es6-class" on as a warning turn ”react/prefer-es6-class" on as an error Jan 3, 2017
@mpaulucci
Copy link

mpaulucci commented Jan 3, 2017

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,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mpaulucci Does this work?

Choose a reason for hiding this comment

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

it should! 👍

@indexzero
Copy link
Contributor

Merging this so that we can publish a minor before we formally deprecate after #40.

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