Skip to content

Commit

Permalink
Update the settingsof the static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Apr 27, 2024
1 parent 1e5857d commit 5300988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default [
js.configs.recommended,
{
languageOptions: {
globals: {...globals.node},
globals: {...globals.nodeBuiltin},
parser: babelParser,
parserOptions: {
requireConfigFile: false,
Expand Down
2 changes: 1 addition & 1 deletion test/client_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("Client", () => {
equal(await client.checkComment(ham), CheckResult.ham));

it("should return `CheckResult.spam` for invalid comment (e.g. spam)", async () => {
const isSpam = [CheckResult.spam, CheckResult.pervasiveSpam];
/** @type {number[]} */ const isSpam = [CheckResult.spam, CheckResult.pervasiveSpam];
ok(isSpam.includes(await client.checkComment(spam)));
});
});
Expand Down

0 comments on commit 5300988

Please sign in to comment.