Files
tubestation/toolkit/components/extensions/child/.eslintrc.js
Rob Wu 93a46af209 Bug 1929002 - Correct extension-specific globals in eslintrc r=geckoview-reviewers,frontend-codestyle-reviewers,Standard8
- Add all current globals from _createExtGlobal in .eslintrc.js.

- Remove non-existing globals.

- State the sources of the extension-specific globals in .eslintrc.js.

- Move extension-specific globals from common mobile/shared/ to a deeper
  level at mobile/shared/components/extensions/.

- Remove obsolete globals/exported/import-globals-from comments from
  various ext-*.js files.

- Fix linting errors in some tests due to use of non-global globals,
  that have become apparent due to the corrected linter definitions.

Differential Revision: https://phabricator.services.mozilla.com/D228308
2024-11-07 18:34:00 +00:00

41 lines
1.0 KiB
JavaScript

/* 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";
module.exports = {
globals: {
// These are defined in the WebExtension script scopes by
// ExtensionCommon.sys.mjs in the _createExtGlobal method.
AppConstants: true,
Cc: true,
ChromeWorker: true,
Ci: true,
Cr: true,
Cu: true,
ExtensionAPI: true,
ExtensionAPIPersistent: true,
ExtensionCommon: true,
FileReader: true,
Glean: true,
GleanPings: true,
IOUtils: true,
MatchGlob: true,
MatchPattern: true,
MatchPatternSet: true,
OffscreenCanvas: true,
PathUtils: true,
Services: true,
StructuredCloneHolder: true,
WebExtensionPolicy: true,
XPCOMUtils: true,
extensions: true,
global: true,
ExtensionUtils: true,
// This is defined in toolkit/components/extensions/child/ext-toolkit.js
EventManager: true,
},
};