We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 599fbea commit ce43921Copy full SHA for ce43921
lib/rules/forbid-component-props.js
@@ -126,7 +126,7 @@ module.exports = {
126
// Get config options having pattern
127
const propNamePatternArray = Array.from(forbid.entries()).filter((propEntry) => propEntry[1].isPattern);
128
// Match current prop with pattern options, return if matched
129
- const propNamePattern = propNamePatternArray.find((propPatternVal) => minimatch(prop, propPatternVal[1]));
+ const propNamePattern = propNamePatternArray.find((propPatternVal) => minimatch(prop, propPatternVal[0]));
130
// Get options for matched propNamePattern
131
const propNamePatternOptions = propNamePattern && propNamePattern[1];
132
0 commit comments