Skip to content

Commit 3a5b41b

Browse files
committed
Fix error with ancient node versions
1 parent 028b6eb commit 3a5b41b

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
@@ -64,7 +64,7 @@ module.exports = {
6464
function isForbidden(prop, tagName) {
6565
const whitelist = forbid.get(prop);
6666
// if the tagName is undefined (`<this.something>`), we assume it's a forbidden element
67-
return typeof whitelist !== 'undefined' && (typeof tagName === 'undefined' || !whitelist.includes(tagName));
67+
return typeof whitelist !== 'undefined' && (typeof tagName === 'undefined' || whitelist.indexOf(tagName) === -1);
6868
}
6969

7070
return {

0 commit comments

Comments
 (0)