Bug 1684905 - Fully enable globalThis for ESLint. r=Gijs,necko-reviewers,kershaw

Differential Revision: https://phabricator.services.mozilla.com/D100697
This commit is contained in:
Mark Banner 2021-01-04 20:32:57 +00:00
parent 1f9f3d3e8c
commit 14da69d10f
7 changed files with 4 additions and 9 deletions

View File

@ -75,8 +75,6 @@ async function startupAddonsManager() {
const profileDir = do_get_profile().clone();
profileDir.append("extensions");
/* global globalThis */
/* See Bug 1595810 to add globalThis to eslint */
AddonTestUtils.init(globalThis);
AddonTestUtils.overrideCertDB();
AddonTestUtils.appInfo = getAppInfo();

View File

@ -3,7 +3,6 @@
"use strict";
/* global globalThis */
console.log("[WORKER] started", globalThis.location.toString(), globalThis);
globalThis.onmessage = function(e) {

View File

@ -5,7 +5,6 @@
////////////////////////////////////////////////////////////////////////////////
// Test infrastructure
/* global globalThis */
"use strict";

View File

@ -14,7 +14,6 @@
//
// For tests that need duplicate copies of headers to be sent, see
// test_duplicate_headers.js
/* global globalThis */
"use strict";

View File

@ -14,7 +14,7 @@
module.exports = {
env: {
browser: true,
es6: true,
es2021: true,
"mozilla/privileged": true,
},
@ -77,7 +77,7 @@ module.exports = {
],
parserOptions: {
ecmaVersion: 11,
ecmaVersion: 12,
},
// When adding items to this file please check for effects on sub-directories.

View File

@ -1,6 +1,6 @@
{
"name": "eslint-plugin-mozilla",
"version": "2.9.1",
"version": "2.9.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "eslint-plugin-mozilla",
"version": "2.9.1",
"version": "2.9.2",
"description": "A collection of rules that help enforce JavaScript coding standard in the Mozilla project.",
"keywords": [
"eslint",