Bug 1425052 - Enable ESLint rule no-undef for as much of mobile/android as possible. r?nechen
MozReview-Commit-ID: IKqMxBgsKqt
--- a/mobile/android/.eslintrc.js
+++ b/mobile/android/.eslintrc.js
@@ -12,13 +12,28 @@ module.exports = {
"no-empty": "off",
"no-native-reassign": "off",
"no-nested-ternary": "off",
"no-new-object": "off",
"no-octal": "off",
"no-redeclare": "off",
"no-useless-call": "off",
"no-useless-concat": "off",
- "no-undef": "off",
"no-unused-vars": "off",
"object-shorthand": "off",
- }
+ },
+
+ "overrides": [{
+ files: [
+ // Bug 1425047.
+ "chrome/**",
+ // Bug 1425048.
+ "components/extensions/**",
+ // Bug 1425034.
+ "modules/WebsiteMetadata.jsm",
+ // Bug 1425051.
+ "tests/browser/robocop/**",
+ ],
+ rules: {
+ "no-undef": "off",
+ }
+ }],
};
--- a/mobile/android/modules/dbg-browser-actors.js
+++ b/mobile/android/modules/dbg-browser-actors.js
@@ -1,13 +1,15 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
+/* eslint-env commonjs */
+
"use strict";
/**
* Fennec-specific actors.
*/
const { RootActor } = require("devtools/server/actors/root");
const { DebuggerServer } = require("devtools/server/main");
const { BrowserTabList, BrowserAddonList, sendShutdownEvent } =