jsx-eslint/eslint-plugin-react
View on GitHubNew rule: identify missing PropType definition
Open
#1,887 opened on Jul 18, 2018
help wantednew rule
Repository metrics
- Stars
- (8,630 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
I accidentally forgot to add the PropTypes assignment to a prop and this was not picked up by eslint:
const propTypes = {
actions: {
something: PropTypes.func.isRequired,
}.isRequired,
};
should have been
const propTypes = {
actions: PropTypes.shape({
something: PropTypes.func.isRequired,
}).isRequired,
};