Bug 1620537 - Fix eslint issues in devtools .eslintrc*.js files now that ESLint 7 will lint them. r=mossop

Depends on D84815

Differential Revision: https://phabricator.services.mozilla.com/D84816
This commit is contained in:
Mark Banner 2020-07-24 20:39:07 +00:00
Родитель 94e847592c
Коммит 2c56de98ff
3 изменённых файлов: 31 добавлений и 31 удалений

Просмотреть файл

@ -2,31 +2,31 @@
* 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/. */
"use strict";
// Parent config file for all devtools browser mochitest files.
module.exports = {
"extends": [
"plugin:mozilla/browser-test"
],
extends: ["plugin:mozilla/browser-test"],
// All globals made available in the test environment.
"globals": {
"DevToolsUtils": true,
"gDevTools": true,
"once": true,
"synthesizeKeyFromKeyTag": true,
"TargetFactory": true,
"waitForTick": true,
"waitUntilState": true,
globals: {
DevToolsUtils: true,
gDevTools: true,
once: true,
synthesizeKeyFromKeyTag: true,
TargetFactory: true,
waitForTick: true,
waitUntilState: true,
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
}
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
"rules": {
rules: {
// Allow non-camelcase so that run_test doesn't produce a warning.
"camelcase": "off",
camelcase: "off",
// Tests don't have to cleanup observers
"mozilla/balanced-observers": 0,
// Tests can always import anything.

Просмотреть файл

@ -2,18 +2,18 @@
* 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/. */
"use strict";
// Parent config file for all devtools xpcshell files.
module.exports = {
"extends": [
"plugin:mozilla/xpcshell-test"
],
"rules": {
extends: ["plugin:mozilla/xpcshell-test"],
rules: {
// Allow non-camelcase so that run_test doesn't produce a warning.
"camelcase": "off",
camelcase: "off",
"block-scoped-var": "off",
// Tests don't have to cleanup observers
"mozilla/balanced-observers": 0,
// Tests can always import anything.
"mozilla/reject-some-requires": "off",
}
},
};

Просмотреть файл

@ -1,14 +1,14 @@
"use strict";
module.exports = {
"env": {
"browser": false,
"mocha": true,
env: {
browser: false,
mocha: true,
},
"globals": {
globals: {
// document and window are injected via jsdom-global.
"document": false,
"window": false,
}
}
document: false,
window: false,
},
};