Skip to content

Commit e77c97f

Browse files
committed
Test
1 parent fb2fefd commit e77c97f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rules/prop-types.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,10 @@ module.exports = {
10431043
markPropTypesAsUsed(node);
10441044
}
10451045

1046+
if (node.key.name === 'shouldComponentUpdate' && destructuring) {
1047+
markPropTypesAsUsed(node);
1048+
}
1049+
10461050
if (!node.static || node.kind !== 'get' || !propsUtil.isPropTypesDeclaration(node)) {
10471051
return;
10481052
}

0 commit comments

Comments
 (0)