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

New Rule Proposal: Disallow Undefined Methods #337

Open
elicwhite opened this issue Nov 29, 2015 · 1 comment
Open

New Rule Proposal: Disallow Undefined Methods #337

elicwhite opened this issue Nov 29, 2015 · 1 comment
Labels

Comments

@elicwhite
Copy link

elicwhite commented Nov 29, 2015

A component like this:

var React = require('react');

var MyComponent = React.createClass({
  render: function() {
    return <span onClick={this.handleClick}>Span</span>;
  }
});

module.exports = MyComponent;

Should complain because the component doesn't have a handleClick function.

@lencioni
Copy link
Collaborator

I wonder if a more general rule for this could be written.

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

3 participants