We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8514e1 commit 599fbeaCopy full SHA for 599fbea
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(([propPattern]) => minimatch(prop, propPattern));
+ const propNamePattern = propNamePatternArray.find((propPatternVal) => minimatch(prop, propPatternVal[1]));
130
// Get options for matched propNamePattern
131
const propNamePatternOptions = propNamePattern && propNamePattern[1];
132
0 commit comments