# HG changeset patch # User Brian Grinstead # Date 1519759775 28800 # Node ID 3c562a1430861a1f06cde3e312e1867e97384a0c # Parent 5e8f202b04d82eca111fd4ee5a96228b149c35ec 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 diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js --- a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js +++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js @@ -46,16 +46,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 },