Bug 767640, part 2 - Update eslint rules to take into account the definitions of Ci, Cr, Cc and Cu. r=florian
MozReview-Commit-ID: 4PyMh0WeA4r
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
@@ -7,21 +7,25 @@ module.exports = {
},
"globals": {
"AddonManagerPermissions": false,
"BroadcastChannel": false,
"BrowserFeedWriter": false,
"CSSPrimitiveValue": false,
"CSSValueList": false,
+ "Cc": false,
"CheckerboardReportService": false,
// Specific to Firefox (Chrome code only).
"ChromeUtils": false,
"ChromeWorker": false,
+ "Ci": false,
"Components": false,
+ "Cr": false,
+ "Cu": false,
"DOMRequest": false,
"DedicatedWorkerGlobalScope": false,
"IDBFileRequest": false,
"IDBLocaleAwareKeyRange": false,
"IDBMutableFile": false,
"ImageDocument": false,
"InstallTrigger": false,
// Specific to Firefox
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/jsm.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/jsm.js
@@ -13,16 +13,21 @@ module.exports = {
// Intl is standard JS availability.
"Intl": false,
// These globals are hard-coded and available in .jsm scopes.
// https://searchfox.org/mozilla-central/rev/ed212c79cfe86357e9a5740082b9364e7f6e526f/js/xpconnect/loader/mozJSComponentLoader.cpp#134-140
"atob": false,
"btoa": false,
"debug": false,
"dump": false,
+ // These globals are defined in XPCWrappedNativeScope::AttachComponentsObject.
+ "Cc": false,
+ "Ci": false,
+ "Cr": false,
+ "Cu": false,
// These globals are made available via WebIDL files, see ResolveSystemBinding in:
// https://searchfox.org/mozilla-central/source/__GENERATED__/dom/bindings/ResolveSystemBinding.cpp
"AbortController": false,
"AbortSignal": false,
"AddonManagerPermissions": false,
"ChannelWrapper": false,
"ChromeUtils": false,
"ChromeWorker": false,