Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Jun 4, 2024
1 parent 291f88a commit c36d34e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rules/no-runloop.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ module.exports = {
if (node.callee.type === 'Identifier') {
const name = node.callee.name;
const runloopFn = localToImportedNameMap[name];
const isNotAllowed = runloopFn && !allowList.includes(runloopFn) && !Object.prototype.hasOwnProperty.call(Object.prototype, name);
const isNotAllowed =
runloopFn &&

Check failure on line 123 in lib/rules/no-runloop.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 18.x)

Replace `⏎············!allowList.includes(runloopFn)·&&⏎···········` with `·!allowList.includes(runloopFn)·&&`

Check failure on line 123 in lib/rules/no-runloop.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 20.x)

Replace `⏎············!allowList.includes(runloopFn)·&&⏎···········` with `·!allowList.includes(runloopFn)·&&`

Check failure on line 123 in lib/rules/no-runloop.js

View workflow job for this annotation

GitHub Actions / build (ubuntu, 21.x)

Replace `⏎············!allowList.includes(runloopFn)·&&⏎···········` with `·!allowList.includes(runloopFn)·&&`
!allowList.includes(runloopFn) &&
!Object.prototype.hasOwnProperty(name);
if (isNotAllowed) {
report(node, runloopFn, name);
}
Expand Down

0 comments on commit c36d34e

Please sign in to comment.