Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws

MozReview-Commit-ID: LH0CQOPfoe6

--HG--
extra : rebase_source : 83eaf40c5cbb5e25cfb3f3b5afadf4fbf0422c92
This commit is contained in:
Mark Banner 2017-03-20 12:36:37 +01:00
parent d4822994da
commit bd625e4e9f
193 changed files with 234 additions and 234 deletions

View File

@ -2,7 +2,7 @@
module.exports = { // eslint-disable-line no-undef
"extends": [
"../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
],
// All globals made available in the test environment.
"globals": {

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/chrome.eslintrc.js"
"plugin:mozilla/chrome-test"
]
};

View File

@ -2,7 +2,7 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js",
"../../../../../testing/mochitest/mochitest.eslintrc.js",
"plugin:mozilla/browser-test",
"plugin:mozilla/mochitest-test",
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,7 +2,7 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
],
"rules": {

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -1,7 +1,7 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
"extends": "../../../../../testing/mochitest/browser.eslintrc.js",
module.exports = {
"extends": "plugin:mozilla/browser-test",
"env": {
"webextensions": true,

View File

@ -1,7 +1,7 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
"extends": "../../../../../testing/xpcshell/xpcshell.eslintrc.js",
module.exports = {
"extends": "plugin:mozilla/xpcshell-test",
"globals": {
"browser": false,

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/mochitest.eslintrc.js"
"plugin:mozilla/mochitest-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/chrome.eslintrc.js"
"plugin:mozilla/chrome-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,8 +2,8 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js",
"../../../../../testing/mochitest/mochitest.eslintrc.js",
"plugin:mozilla/browser-test",
"plugin:mozilla/mochitest-test",
]
};

View File

@ -1,7 +1,7 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/chrome.eslintrc.js"
"plugin:mozilla/chrome-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,7 +2,7 @@
module.exports = {
"extends": [
"../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
],
"rules": {

View File

@ -1,7 +1,7 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js",
"plugin:mozilla/browser-test",
],
};

View File

@ -1,7 +1,7 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js",
"plugin:mozilla/xpcshell-test",
],
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -1,8 +1,8 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
module.exports = {
"extends": [
"../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
],
"rules": {

View File

@ -1,7 +1,7 @@
// Parent config file for all devtools browser mochitest files.
module.exports = {
"extends": [
"../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
],
// All globals made available in the test environment.
"globals": {

View File

@ -1,19 +1,19 @@
// Parent config file for all devtools xpcshell files.
module.exports = {
"extends": [
"../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
],
"rules": {
// Allow non-camelcase so that run_test doesn't produce a warning.
"camelcase": 0,
"camelcase": "off",
// Allow using undefined variables so that tests can refer to functions
// and variables defined in head.js files, without having to maintain a
// list of globals in each .eslintrc file.
// Note that bug 1168340 will eventually help auto-registering globals
// from head.js files.
"no-undef": 0,
"block-scoped-var": 0,
"no-undef": "off",
"block-scoped-var": "off",
// Tests can always import anything.
"mozilla/reject-some-requires": 0,
"mozilla/reject-some-requires": "off",
}
};

View File

@ -1,11 +1,11 @@
"use strict";
module.exports = {
"env": {
"browser": true,
},
"globals": {
"d3": true,
"dagreD3": true,
}
};
"use strict";
module.exports = {
"env": {
"browser": true,
},
"globals": {
"d3": true,
"dagreD3": true,
}
};

View File

@ -2,5 +2,5 @@
module.exports = {
// Extend from the shared list of defined globals for mochitests.
"extends": "../../../../../testing/mochitest/chrome.eslintrc.js"
"extends": "plugin:mozilla/chrome-test"
};

View File

@ -2,5 +2,5 @@
module.exports = {
// Extend from the shared list of defined globals for mochitests.
"extends": "../../../../testing/mochitest/chrome.eslintrc.js"
"extends": "plugin:mozilla/chrome-test"
};

View File

@ -1,5 +1,5 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
"extends": "../../../../../../testing/mochitest/browser.eslintrc.js"
"extends": "plugin:mozilla/browser-test"
};

View File

@ -1,7 +1,7 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
"extends": "../../../../../../testing/mochitest/mochitest.eslintrc.js",
"extends": "plugin:mozilla/mochitest-test",
"rules": {
// Boilerplate runTest and afterNavigationtest calls use opening braces on newline.
"brace-style": "off"

View File

@ -5,5 +5,5 @@ module.exports = { // eslint-disable-line no-undef
// use anything not also available to plain mochitests. Since plain mochitests
// are the majority, we take the safer option and only extend the
// mochitest-plain eslintrc file.
"extends": "../../../../../../testing/mochitest/mochitest.eslintrc.js"
"extends": "plugin:mozilla/mochitest-test"
};

View File

@ -1,5 +1,5 @@
"use strict";
module.exports = { // eslint-disable-line no-undef
"extends": "../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"extends": "plugin:mozilla/xpcshell-test"
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/chrome.eslintrc.js"
"plugin:mozilla/chrome-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/chrome.eslintrc.js"
"plugin:mozilla/chrome-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/mochitest.eslintrc.js"
"plugin:mozilla/mochitest-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,7 +2,7 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/mochitest.eslintrc.js"
"plugin:mozilla/mochitest-test"
],
globals: {

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/chrome.eslintrc.js"
"plugin:mozilla/chrome-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
"plugin:mozilla/browser-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../testing/mochitest/mochitest.eslintrc.js"
"plugin:mozilla/mochitest-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/mochitest.eslintrc.js"
"plugin:mozilla/mochitest-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/chrome.eslintrc.js"
"plugin:mozilla/chrome-test"
]
};

View File

@ -2,6 +2,6 @@
module.exports = {
"extends": [
"../../../../../testing/xpcshell/xpcshell.eslintrc.js"
"plugin:mozilla/xpcshell-test"
]
};

Some files were not shown because too many files have changed in this diff Show More