-
- Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
Description
The following patterns are considered warnings: var Hello = createReactClass({ render: function() { return <div>Hello {this.props.name}</div>; } }); var Hello = createReactClass({ propTypes: { firstname: PropTypes.string.isRequired }, render: function() { return <div>Hello {this.props.firstname} {this.props.lastname}</div>; // lastname type is not defined in propTypes } }); function Hello({ name }) { return <div>Hello {name}</div>; }
This rule is not working in the latest version (7.11.1).
Missing propTypes for functions are not marked anymore. This was working fine on 7.10.0
oliviertassinari and doochik