Cleanup "no-console" eslint rules

Removes unexpected exceptions and clarifies where we want to avoid
console calls.
This commit is contained in:
Samuel Mannehed 2024-04-30 15:25:03 +02:00
parent 8d1b665808
commit 10ee10ce56
5 changed files with 4 additions and 4 deletions

View File

@ -58,6 +58,7 @@ export default [
"asyncArrow": "always" }],
"switch-colon-spacing": ["error"],
"camelcase": ["error", { "allow": ["^XK_", "^XF86XK_"] }],
"no-console": ["error"],
}
},
{
@ -67,6 +68,9 @@ export default [
...globals.node,
}
},
rules: {
"no-console": 0,
},
},
{
files: ["tests/*"],

View File

@ -1,4 +1,3 @@
/* eslint-disable no-console */
const expect = chai.expect;
import { isMac, isWindows, isIOS, isAndroid, isChromeOS,

View File

@ -1,4 +1,3 @@
/* eslint-disable no-console */
const expect = chai.expect;
import { inflateInit, inflate } from "../vendor/pako/lib/zlib/inflate.js";

View File

@ -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";

View File

@ -1,4 +1,3 @@
/* eslint-disable no-console */
const expect = chai.expect;
import { toUnsigned32bit, toSigned32bit } from '../core/util/int.js';