From ec923fb2346a2f34bf8702c1d061b7583c60c94e Mon Sep 17 00:00:00 2001 From: waynzh Date: Fri, 19 Jul 2024 16:33:20 +0800 Subject: [PATCH] chore: lint fix --- lib/rules/require-prop-types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/require-prop-types.js b/lib/rules/require-prop-types.js index 4102ad039..af2a956a4 100644 --- a/lib/rules/require-prop-types.js +++ b/lib/rules/require-prop-types.js @@ -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