Skip to content

Commit

Permalink
Make require-default-props use isRequired detection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzherdev committed Sep 22, 2018
1 parent 572e332 commit 8add5de
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 466 deletions.
2 changes: 1 addition & 1 deletion lib/rules/no-unused-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = {

if (prop.node && !isPropUsed(component, prop)) {
context.report(
prop.node,
prop.node.value || prop.node,
UNUSED_MESSAGE, {
name: prop.fullName
}
Expand Down
Loading

0 comments on commit 8add5de

Please sign in to comment.