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

React es6 class extends instead of es5 createClass #247

Closed
hamiltondanielb opened this issue Oct 13, 2015 · 2 comments
Closed

React es6 class extends instead of es5 createClass #247

hamiltondanielb opened this issue Oct 13, 2015 · 2 comments
Labels

Comments

@hamiltondanielb
Copy link
Contributor

Is there a way to enforce

class PageManager extends Component {...}

instead of

module.exports = React.createClass({...})

I apologize if I missed something, but I can't seem to find anything about this

@yannickcr
Copy link
Member

Sorry, there is no rule for this right now, but it could be added.

@hamiltondanielb
Copy link
Contributor Author

OK thanks, I'm going to fork and give it a shot.

yannickcr added a commit that referenced this issue Oct 18, 2015
Add prefer-es6-class rule (fixes #247)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants