trisquel-icecat/icecat/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/chrome-test.js
2025-10-06 02:35:48 -06: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",
},
};