diff --git a/lib/rules/forbid-component-props.js b/lib/rules/forbid-component-props.js index 67daadf9eb..20b11d9218 100644 --- a/lib/rules/forbid-component-props.js +++ b/lib/rules/forbid-component-props.js @@ -126,7 +126,7 @@ module.exports = { // Get config options having pattern const propNamePatternArray = Array.from(forbid.entries()).filter((propEntry) => propEntry[1].isPattern); // Match current prop with pattern options, return if matched - const propNamePattern = propNamePatternArray.find((propPatternVal) => minimatch(prop, propPatternVal[1])); + const propNamePattern = propNamePatternArray.find((propPatternVal) => minimatch(prop, propPatternVal[0])); // Get options for matched propNamePattern const propNamePatternOptions = propNamePattern && propNamePattern[1];