Cleanup "no-console" eslint rules
Removes unexpected exceptions and clarifies where we want to avoid console calls.
This commit is contained in:
parent
8d1b665808
commit
10ee10ce56
|
@ -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/*"],
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable no-console */
|
||||
const expect = chai.expect;
|
||||
|
||||
import { isMac, isWindows, isIOS, isAndroid, isChromeOS,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable no-console */
|
||||
const expect = chai.expect;
|
||||
|
||||
import { inflateInit, inflate } from "../vendor/pako/lib/zlib/inflate.js";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable no-console */
|
||||
const expect = chai.expect;
|
||||
|
||||
import { toUnsigned32bit, toSigned32bit } from '../core/util/int.js';
|
||||
|
|
Loading…
Reference in New Issue