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 a20cc8f commit e956319Copy full SHA for e956319
lib/rules/forbid-component-props.js
@@ -123,7 +123,7 @@ module.exports = {
123
124
function getPropOptions(prop) {
125
// Get config options having regex
126
- const propNameRegexArray = [...forbid.entries()].filter(([, options]) => options.isRegex);
+ const propNameRegexArray = [...forbid.entries()].filter((propRegexEntry) => propRegexEntry[1].isRegex);
127
// Match current prop with regex options, return if matched
128
const propNameRegex = propNameRegexArray.find(([propRegex]) => new RegExp(propRegex).test(prop));
129
// Get options for matched propNameRegex
0 commit comments