We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1badce commit ec923fbCopy full SHA for ec923fb
lib/rules/require-prop-types.js
@@ -75,7 +75,7 @@ module.exports = {
75
return
76
}
77
const hasType =
78
- prop.type === 'array' ? false : optionHasType(prop.value) ?? true
+ prop.type === 'array' ? false : (optionHasType(prop.value) ?? true)
79
80
if (!hasType) {
81
const { node, propName } = prop
0 commit comments