Skip to content

Commit

Permalink
Merge pull request #119 from endojs/ikenna-eslint-9-compat
Browse files Browse the repository at this point in the history
Make Jessie ESLint Plugin ESLint v9 compatible
  • Loading branch information
iomekam authored Jan 15, 2025
2 parents 7d4bc77 + ebcfe14 commit eaf3e94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/eslint-plugin/lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const makeAwaitAllowedVisitor = (
addToCache = undefined,
) => {
const already = addToCache ? new WeakSet() : undefined;
return harden({
// Do not harden() because ESLint 9 relies on mutating the visitor.
return {
/**
* An `await` expression is treated as non-nested if it is:
* - a non-nested expression statement,
Expand Down Expand Up @@ -124,7 +125,7 @@ const makeAwaitAllowedVisitor = (
makeReport(node);
}
},
});
};
};
harden(makeAwaitAllowedVisitor);

Expand Down

0 comments on commit eaf3e94

Please sign in to comment.