Skip to content

Commit 2e4f91a

Browse files
committed
Make require-default-props use isRequired detection
1 parent 70155b4 commit 2e4f91a

File tree

4 files changed

+27
-466
lines changed

4 files changed

+27
-466
lines changed

lib/rules/no-unused-prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module.exports = {
103103

104104
if (prop.node && !isPropUsed(component, prop)) {
105105
context.report(
106-
prop.node,
106+
prop.node.value || prop.node,
107107
UNUSED_MESSAGE, {
108108
name: prop.fullName
109109
}

0 commit comments

Comments
 (0)