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 028b6eb commit 3a5b41bCopy full SHA for 3a5b41b
lib/rules/forbid-component-props.js
@@ -64,7 +64,7 @@ module.exports = {
64
function isForbidden(prop, tagName) {
65
const whitelist = forbid.get(prop);
66
// 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));
+ return typeof whitelist !== 'undefined' && (typeof tagName === 'undefined' || whitelist.indexOf(tagName) === -1);
68
}
69
70
return {
0 commit comments