Bug 1440094 - Allow `console` as a global for eslint;r=Mossop
As of
Bug 1425463 it's available in all contexts (including JSM). The following
patche is going to remove imports to Console.jsm, so prepare for this by allowing
it to be used as a global in eslint.
MozReview-Commit-ID: 3gCIspnlVgB
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
@@ -45,16 +45,17 @@ module.exports = {
"StopIteration": false,
"StructuredCloneHolder": false,
"WebAssembly": false,
"WebExtensionContentScript": false,
"WebExtensionPolicy": false,
"WebrtcGlobalInformation": false,
// Non-standard, specific to Firefox.
"XULElement": false,
+ "console": true,
"dump": true,
"openDialog": false,
"sizeToContent": false,
// Specific to Firefox
// eslint-disable-next-line max-len
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/uneval
"uneval": false
},