Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
amerryma committed Feb 8, 2018
1 parent fb2fefd commit e77c97f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rules/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,10 @@ module.exports = {
markPropTypesAsUsed(node);
}

if (node.key.name === 'shouldComponentUpdate' && destructuring) {
markPropTypesAsUsed(node);
}

if (!node.static || node.kind !== 'get' || !propsUtil.isPropTypesDeclaration(node)) {
return;
}
Expand Down

0 comments on commit e77c97f

Please sign in to comment.