Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/mobile/shared/components/extensions/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  .eslintrc.mjs   Sprache: unbekannt

 
Spracherkennung für: .mjs vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

/* 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/. */

import toolkitConfig from "../../../../toolkit/components/extensions/.eslintrc.mjs";
import parentConfig from "../../../../toolkit/components/extensions/parent/.eslintrc.mjs";
import childConfig from "../../../../toolkit/components/extensions/child/.eslintrc.mjs";

export default [
  ...toolkitConfig,
  // Ideally mobile should also follow the convention of
  // parent/ext-*.js for parent scripts and
  // child/ext-*.js for child scripts,
  // but the current file structure predates the parent/ vs child/ separation.
  {
    files: ["ext-*.js"],
    ignores: ["ext-c-*.js"],
    languageOptions: {
      globals: {
        ...parentConfig[0].languageOptions.globals,
        // These globals are defined in ext-android.js and can only be used in
        // the extension files that run in the parent process.
        EventDispatcher: true,
        ExtensionError: true,
        makeGlobalEvent: true,
        TabContext: true,
        tabTracker: true,
        windowTracker: true,
      },
    },
  },
  {
    files: ["ext-c-*.js"],
    // If there were ever globals exported in ext-c-android.js for common
    // use, then they would appear here.
    ...childConfig[0],
  },
];

[Dauer der Verarbeitung: 0.55 Sekunden]