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 291f88a commit c36d34eCopy full SHA for c36d34e
lib/rules/no-runloop.js
@@ -119,7 +119,10 @@ module.exports = {
119
if (node.callee.type === 'Identifier') {
120
const name = node.callee.name;
121
const runloopFn = localToImportedNameMap[name];
122
- const isNotAllowed = runloopFn && !allowList.includes(runloopFn) && !Object.prototype.hasOwnProperty.call(Object.prototype, name);
+ const isNotAllowed =
123
+ runloopFn &&
124
+ !allowList.includes(runloopFn) &&
125
+ !Object.prototype.hasOwnProperty(name);
126
if (isNotAllowed) {
127
report(node, runloopFn, name);
128
}
0 commit comments