Skip to content

Commit

Permalink
Bug 1782008 - Remove now unnecessary ESLint test definitions from oth…
Browse files Browse the repository at this point in the history
…er .eslintrc.js files. r=mossop,media-playback-reviewers,alwu

Differential Revision: https://phabricator.services.mozilla.com/D153216
  • Loading branch information
Standard8 committed Aug 3, 2022
1 parent 7428be4 commit 1c23a90
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 30 deletions.
2 changes: 0 additions & 2 deletions browser/base/content/test/webextensions/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use strict";

module.exports = {
extends: ["plugin:mozilla/browser-test"],

env: {
webextensions: true,
},
Expand Down
3 changes: 0 additions & 3 deletions devtools/client/netmonitor/test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"use strict";

// General rule from /.eslintrc.js only accept folders matching **/test*/browser*/
// where is this folder doesn't match, so manually apply browser test config
module.exports = {
extends: ["plugin:mozilla/browser-test"],
env: {
jest: true,
},
Expand Down
5 changes: 0 additions & 5 deletions dom/base/test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
"use strict";

module.exports = {
extends: [
"plugin:mozilla/browser-test",
"plugin:mozilla/chrome-test",
"plugin:mozilla/mochitest-test",
],
overrides: [
{
files: ["file_module_js_cache.js", "file_script_module_*.js"],
Expand Down
6 changes: 0 additions & 6 deletions dom/indexedDB/test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
"use strict";

module.exports = {
extends: [
"plugin:mozilla/browser-test",
"plugin:mozilla/chrome-test",
"plugin:mozilla/mochitest-test",
],
plugins: ["mozilla"],
rules: {
"no-shadow": "off",
},
Expand Down
2 changes: 0 additions & 2 deletions dom/media/mediasource/test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use strict";

module.exports = {
// Extend mochitest rules
extends: "plugin:mozilla/mochitest-test",
// Globals from mediasource.js. We use false to indicate they should not
// be overwritten in scripts.
globals: {
Expand Down
2 changes: 0 additions & 2 deletions dom/quota/test/modules/content/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"use strict";

module.exports = {
extends: ["plugin:mozilla/mochitest-test"],

overrides: [
{
files: [
Expand Down
1 change: 0 additions & 1 deletion dom/tests/browser/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ module.exports = {
},
},
],
extends: ["plugin:mozilla/browser-test"],
};
2 changes: 0 additions & 2 deletions editor/libeditor/tests/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use strict";

module.exports = {
extends: ["plugin:mozilla/browser-test", "plugin:mozilla/mochitest-test"],

plugins: ["no-unsanitized"],

rules: {
Expand Down
2 changes: 0 additions & 2 deletions services/sync/tests/tps/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use strict";

module.exports = {
extends: ["plugin:mozilla/mochitest-test"],

globals: {
// Injected into tests via tps.jsm
Addons: false,
Expand Down
1 change: 0 additions & 1 deletion toolkit/components/passwordmgr/test/mochitest/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use strict";

module.exports = {
extends: ["plugin:mozilla/mochitest-test"],
globals: {
promptDone: true,
startTest: true,
Expand Down
4 changes: 0 additions & 4 deletions toolkit/components/prompts/test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"use strict";

module.exports = {
extends: ["plugin:mozilla/mochitest-test"],
globals: {
Assert: true,
},
rules: {
// ownerGlobal doesn't exist in content privileged windows.
"mozilla/use-ownerGlobal": "off",
Expand Down

0 comments on commit 1c23a90

Please sign in to comment.