зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
94e847592c
Коммит
2c56de98ff
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче