Skip to content

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

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