1
0
Fork 0
firefox/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/chrome-test.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

33 lines
765 B
JavaScript

// Parent config file for all mochitest files.
"use strict";
module.exports = {
env: {
browser: true,
"mozilla/browser-window": true,
},
// All globals made available in the test environment.
globals: {
// SpecialPowers is injected into the window object via SimpleTest.js
SpecialPowers: false,
afterEach: false,
beforeEach: false,
describe: false,
extractJarToTmp: false,
getChromeDir: false,
getJar: false,
getResolvedURI: false,
getRootDirectory: false,
it: false,
},
name: "mozilla/chrome-test",
plugins: ["mozilla"],
rules: {
// We mis-predict globals for HTML test files in directories shared
// with browser tests.
"mozilla/no-redeclare-with-import-autofix": "off",
},
};