Skip to content

Commit 599fbea

Browse files
committed
fix
1 parent b8514e1 commit 599fbea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/forbid-component-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ module.exports = {
126126
// Get config options having pattern
127127
const propNamePatternArray = Array.from(forbid.entries()).filter((propEntry) => propEntry[1].isPattern);
128128
// Match current prop with pattern options, return if matched
129-
const propNamePattern = propNamePatternArray.find(([propPattern]) => minimatch(prop, propPattern));
129+
const propNamePattern = propNamePatternArray.find((propPatternVal) => minimatch(prop, propPatternVal[1]));
130130
// Get options for matched propNamePattern
131131
const propNamePatternOptions = propNamePattern && propNamePattern[1];
132132

0 commit comments

Comments
 (0)