From 5665b1e1bf7a0c3a4ba75bb94af2f9388a8932bb Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Thu, 14 Jun 2018 21:36:26 +0100 Subject: [PATCH] Bug 1230193 - Finish enabling ESLint rule no-undef for devtools/. r=jdescottes MozReview-Commit-ID: EVFivqFNy8a --HG-- extra : rebase_source : b9591567dfdbe8f9d7d959c4ee2d0e5c7f43ea09 --- devtools/.eslintrc.js | 9 --------- devtools/server/tests/mochitest/.eslintrc.js | 2 +- .../tests/mochitest/Debugger.Source.prototype.element.js | 1 + devtools/server/tests/mochitest/test_connectToFrame.html | 3 +++ .../tests/mochitest/test_css-logic-media-queries.html | 1 + devtools/server/tests/mochitest/test_getProcess.html | 3 +++ .../tests/mochitest/test_inspector-pseudoclass-lock.html | 2 ++ .../test_webextension-addon-debugging-connect.html | 2 ++ 8 files changed, 13 insertions(+), 10 deletions(-) diff --git a/devtools/.eslintrc.js b/devtools/.eslintrc.js index 75ad6c0e7319..b8d64487164b 100644 --- a/devtools/.eslintrc.js +++ b/devtools/.eslintrc.js @@ -13,15 +13,6 @@ module.exports = { "require": true, }, "overrides": [{ - // XXX Bug 1230193. We're still working on enabling no-undef for these test - // directories. - "files": [ - "server/tests/mochitest/**", - ], - "rules": { - "no-undef": "off", - } - }, { "files": [ "client/framework/**", ], diff --git a/devtools/server/tests/mochitest/.eslintrc.js b/devtools/server/tests/mochitest/.eslintrc.js index c5b919ce337f..c5009f62edd1 100644 --- a/devtools/server/tests/mochitest/.eslintrc.js +++ b/devtools/server/tests/mochitest/.eslintrc.js @@ -2,5 +2,5 @@ module.exports = { // Extend from the common devtools mochitest eslintrc config. - "extends": "../../../.eslintrc.xpcshell.js" + "extends": "../../../.eslintrc.mochitests.js" }; diff --git a/devtools/server/tests/mochitest/Debugger.Source.prototype.element.js b/devtools/server/tests/mochitest/Debugger.Source.prototype.element.js index 0fe4157a4401..095398ddadfd 100644 --- a/devtools/server/tests/mochitest/Debugger.Source.prototype.element.js +++ b/devtools/server/tests/mochitest/Debugger.Source.prototype.element.js @@ -1,4 +1,5 @@ /* exported heinrichFun */ +/* global franz */ "use strict"; function heinrichFun() { diff --git a/devtools/server/tests/mochitest/test_connectToFrame.html b/devtools/server/tests/mochitest/test_connectToFrame.html index 6fa1159ae7da..33cde598acc7 100644 --- a/devtools/server/tests/mochitest/test_connectToFrame.html +++ b/devtools/server/tests/mochitest/test_connectToFrame.html @@ -14,6 +14,9 @@ Bug 966991 - Test DebuggerServer.connectToFrame