Skip to content

Commit e4f7e30

Browse files
committed
Mark all recursive proptypes as acceptable with {}, not true
1 parent 614d3bd commit e4f7e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/prop-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ module.exports = {
474474
}
475475
if (seen.has(annotation)) {
476476
// This must be a recursive type annotation, so just accept anything.
477-
return true;
477+
return {};
478478
}
479479
seen.add(annotation);
480480

0 commit comments

Comments
 (0)