Skip to content

Commit eba36a0

Browse files
akulsr0ljharb
andauthored
Update lib/util/usedPropTypes.js
Co-authored-by: Jordan Harband <[email protected]>
1 parent bc34683 commit eba36a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/usedPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ module.exports = function usedPropTypesInstructions(context, components, utils)
534534
JSXSpreadAttribute(node) {
535535
const component = components.get(utils.getParentComponent());
536536
components.set(component ? component.node : node, {
537-
ignoreUnusedPropTypesValidation: !(node.argument.type === 'ObjectExpression'),
537+
ignoreUnusedPropTypesValidation: node.argument.type !== 'ObjectExpression',
538538
});
539539
},
540540

0 commit comments

Comments
 (0)