Closed
Description
forbid-prop-types
does not work when propTypes are declared using an es6 static member:
static get propTypes() {
return {
store: PropTypes.object.isRequired,
history: PropTypes.object.isRequired,
DevTools: PropTypes.func.isRequired
};
}
...however, display-name
still works correctly, when using a similar es6 notation:
static get displayName() {return 'Root';}