Skip to content

Commit

Permalink
Cleanup "no-console" eslint rules
Browse files Browse the repository at this point in the history
Removes unexpected exceptions and clarifies where we want to avoid
console calls.
  • Loading branch information
samhed committed Apr 30, 2024
1 parent 8d1b665 commit 10ee10c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default [
"asyncArrow": "always" }],
"switch-colon-spacing": ["error"],
"camelcase": ["error", { "allow": ["^XK_", "^XF86XK_"] }],
"no-console": ["error"],
}
},
{
Expand All @@ -67,6 +68,9 @@ export default [
...globals.node,
}
},
rules: {
"no-console": 0,
},
},
{
files: ["tests/*"],
Expand Down
1 change: 0 additions & 1 deletion tests/test.browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
const expect = chai.expect;

import { isMac, isWindows, isIOS, isAndroid, isChromeOS,
Expand Down
1 change: 0 additions & 1 deletion tests/test.deflator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
const expect = chai.expect;

import { inflateInit, inflate } from "../vendor/pako/lib/zlib/inflate.js";
Expand Down
1 change: 0 additions & 1 deletion tests/test.inflator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
const expect = chai.expect;

import { deflateInit, deflate, Z_FULL_FLUSH } from "../vendor/pako/lib/zlib/deflate.js";
Expand Down
1 change: 0 additions & 1 deletion tests/test.int.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
const expect = chai.expect;

import { toUnsigned32bit, toSigned32bit } from '../core/util/int.js';
Expand Down

0 comments on commit 10ee10c

Please sign in to comment.