Skip to content

Commit

Permalink
Mark all recursive proptypes as acceptable with {}, not true
Browse files Browse the repository at this point in the history
  • Loading branch information
jetpacmonkey committed Jan 23, 2018
1 parent 614d3bd commit e4f7e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ module.exports = {
}
if (seen.has(annotation)) {
// This must be a recursive type annotation, so just accept anything.
return true;
return {};
}
seen.add(annotation);

Expand Down

0 comments on commit e4f7e30

Please sign in to comment.