mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
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:
parent
1f9f3d3e8c
commit
14da69d10f
@ -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();
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
/* global globalThis */
|
||||
console.log("[WORKER] started", globalThis.location.toString(), globalThis);
|
||||
|
||||
globalThis.onmessage = function(e) {
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Test infrastructure
|
||||
/* global globalThis */
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
//
|
||||
// For tests that need duplicate copies of headers to be sent, see
|
||||
// test_duplicate_headers.js
|
||||
/* global globalThis */
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -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.
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-plugin-mozilla",
|
||||
"version": "2.9.1",
|
||||
"version": "2.9.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user