Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waynzh committed Jul 19, 2024
1 parent d1badce commit ec923fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/require-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = {
return
}
const hasType =
prop.type === 'array' ? false : optionHasType(prop.value) ?? true
prop.type === 'array' ? false : (optionHasType(prop.value) ?? true)

if (!hasType) {
const { node, propName } = prop
Expand Down

0 comments on commit ec923fb

Please sign in to comment.