Skip to content

Commit 10ee10c

Browse files
committed
Cleanup "no-console" eslint rules
Removes unexpected exceptions and clarifies where we want to avoid console calls.
1 parent 8d1b665 commit 10ee10c

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

eslint.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default [
5858
"asyncArrow": "always" }],
5959
"switch-colon-spacing": ["error"],
6060
"camelcase": ["error", { "allow": ["^XK_", "^XF86XK_"] }],
61+
"no-console": ["error"],
6162
}
6263
},
6364
{
@@ -67,6 +68,9 @@ export default [
6768
...globals.node,
6869
}
6970
},
71+
rules: {
72+
"no-console": 0,
73+
},
7074
},
7175
{
7276
files: ["tests/*"],

tests/test.browser.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-console */
21
const expect = chai.expect;
32

43
import { isMac, isWindows, isIOS, isAndroid, isChromeOS,

tests/test.deflator.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-console */
21
const expect = chai.expect;
32

43
import { inflateInit, inflate } from "../vendor/pako/lib/zlib/inflate.js";

tests/test.inflator.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-console */
21
const expect = chai.expect;
32

43
import { deflateInit, deflate, Z_FULL_FLUSH } from "../vendor/pako/lib/zlib/deflate.js";

tests/test.int.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-console */
21
const expect = chai.expect;
32

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

0 commit comments

Comments
 (0)