forked from mirrors/gecko-dev
Bug 1889350 - Remove chrome-worker environment from eslint-plugin-mozilla. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D206484
This commit is contained in:
parent
754db3ddfc
commit
422ede4600
5 changed files with 4 additions and 30 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -5983,7 +5983,7 @@
|
||||||
"license": "MPL-2.0"
|
"license": "MPL-2.0"
|
||||||
},
|
},
|
||||||
"tools/lint/eslint/eslint-plugin-mozilla": {
|
"tools/lint/eslint/eslint-plugin-mozilla": {
|
||||||
"version": "3.7.3",
|
"version": "3.7.4",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
/**
|
|
||||||
* @fileoverview Defines the environment for chrome workers. This differs
|
|
||||||
* from normal workers by the fact that `ctypes` can be accessed
|
|
||||||
* as well.
|
|
||||||
*
|
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* 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";
|
|
||||||
|
|
||||||
var globals = require("globals");
|
|
||||||
var util = require("util");
|
|
||||||
|
|
||||||
var workerGlobals = util._extend(
|
|
||||||
{
|
|
||||||
ctypes: false,
|
|
||||||
},
|
|
||||||
globals.worker
|
|
||||||
);
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
globals: workerGlobals,
|
|
||||||
};
|
|
||||||
|
|
@ -25,7 +25,6 @@ module.exports = {
|
||||||
environments: {
|
environments: {
|
||||||
"browser-window": require("../lib/environments/browser-window.js"),
|
"browser-window": require("../lib/environments/browser-window.js"),
|
||||||
"chrome-script": require("../lib/environments/chrome-script.js"),
|
"chrome-script": require("../lib/environments/chrome-script.js"),
|
||||||
"chrome-worker": require("../lib/environments/chrome-worker.js"),
|
|
||||||
"frame-script": require("../lib/environments/frame-script.js"),
|
"frame-script": require("../lib/environments/frame-script.js"),
|
||||||
sysmjs: require("../lib/environments/sysmjs.js"),
|
sysmjs: require("../lib/environments/sysmjs.js"),
|
||||||
privileged: require("../lib/environments/privileged.js"),
|
privileged: require("../lib/environments/privileged.js"),
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "eslint-plugin-mozilla",
|
"name": "eslint-plugin-mozilla",
|
||||||
"version": "3.7.3",
|
"version": "3.7.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "eslint-plugin-mozilla",
|
"name": "eslint-plugin-mozilla",
|
||||||
"version": "3.7.3",
|
"version": "3.7.4",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint-scope": "^7.2.2",
|
"eslint-scope": "^7.2.2",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "eslint-plugin-mozilla",
|
"name": "eslint-plugin-mozilla",
|
||||||
"version": "3.7.3",
|
"version": "3.7.4",
|
||||||
"description": "A collection of rules that help enforce JavaScript coding standard in the Mozilla project.",
|
"description": "A collection of rules that help enforce JavaScript coding standard in the Mozilla project.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"eslint",
|
"eslint",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue