Skip to content

Commit e956319

Browse files
committed
fix: remove destructuring to make it work with node4
1 parent a20cc8f commit e956319

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
@@ -123,7 +123,7 @@ module.exports = {
123123

124124
function getPropOptions(prop) {
125125
// Get config options having regex
126-
const propNameRegexArray = [...forbid.entries()].filter(([, options]) => options.isRegex);
126+
const propNameRegexArray = [...forbid.entries()].filter((propRegexEntry) => propRegexEntry[1].isRegex);
127127
// Match current prop with regex options, return if matched
128128
const propNameRegex = propNameRegexArray.find(([propRegex]) => new RegExp(propRegex).test(prop));
129129
// Get options for matched propNameRegex

0 commit comments

Comments
 (0)