no-unused-prop-types does not process intersection flow types #1323
Closed
Description
opened on Jul 27, 2017
no-unused-prop-types
does not currently flag unused PropTypes in flow intersection types.
In this case, it should be flagging age
.
type AProps = {
name: string;
age: number;
};
type BProps = {
greeting: string;
};
type Props = AProps & BProps;
class Hello extends React.Component {
props: Props;
render () {
return <div>{this.props.greeting}, {this.props.name}</div>;
}
}
Activity