/* 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";
/** * Files to exclude from ESLint. * * Please DO NOT add more third party files to this file. * They should be added to tools/rewriting/ThirdPartyPaths.txt instead. * * Please also DO NOT add generated files that are for some reason checked * into source - add them to tools/rewriting/Generated.txt instead. * * This file should only be used for exclusions where we have: * - preprocessed files * - intentionally invalid files * - build directories and other items that we need to ignore * * @type {string[]}
*/
module.exports = [ // Include all js dot files. "!.*.js",
// Always ignore crashtests - specially crafted files that originally caused a // crash. "**/crashtest/", "**/crashtests/", // Also ignore reftest - specially crafted to produce expected output. "**/reftest/", "**/reftests/", // Don't ignore the reftest harness files. "!/layout/tools/reftest/",
// Exclude expected objdirs. "obj*/",
// build/ third-party code "build/pgo/js-input/",
// browser/ exclusions "browser/app/", "browser/branding/**/firefox-branding.js", // Gzipped test file. "browser/base/content/test/general/gZipOfflineChild.html", "browser/base/content/test/urlbar/file_blank_but_not_blank.html", // Pre-processed template file "browser/components/backup/content/archive.template.html", // Test files that are really json not js, and don't need to be linted. "browser/components/sessionstore/test/unit/data/sessionstore_valid.js", "browser/components/sessionstore/test/unit/data/sessionstore_invalid.js", // This file is split into two in order to keep it as a valid json file // for documentation purposes (policies.json) but to be accessed by the // code as a .sys.mjs (schema.sys.mjs) "browser/components/enterprisepolicies/schemas/schema.sys.mjs", // generated or library files in pocket "browser/components/pocket/content/panels/js/tmpl.js", "browser/components/pocket/content/panels/js/vendor.bundle.js", "browser/components/pocket/content/panels/js/main.bundle.js", // Include the Storybook config files. "!browser/components/storybook/.storybook/", "!browser/components/storybook/.storybook/*.js",
// The only file in browser/locales/ is pre-processed. "browser/locales/", // Generated data files "browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.sys.mjs",
// JS files using the #include pre-processor macro, leading to syntax errors. "browser/extensions/webcompat/run.js",
// Ignore devtools debugger files which aren't intended for linting. "devtools/client/debugger/bin/", "devtools/client/debugger/configs/", "devtools/client/debugger/dist/", "devtools/client/debugger/images/", "devtools/client/debugger/packages/", "devtools/client/debugger/test/mochitest/examples/", "devtools/client/debugger/index.html", "devtools/client/debugger/webpack.config.js",
// devtools specific format test file "devtools/server/tests/xpcshell/xpcshell_debugging_script.js", "devtools/shared/webconsole/test/browser/data.json",
// Not much JS to lint and non-standard at that "mobile/android/installer/", "mobile/android/locales/",
// Android - Web extensions: manifest.json files may be generated by the build system. "mobile/android/android-components/components/feature/readerview/src/main/assets/extensions/readerview/manifest.json", "mobile/android/android-components/samples/browser/src/main/assets/extensions/test/manifest.json",
// Bug 1903138: remaining issues from the firefox-android migration "mobile/android/android-components/docs/assets/js/icon-js.js", "mobile/android/fenix/app/src/androidTest/assets/", "mobile/android/focus-android/app/src/androidTest/assets/",
// Only contains non-standard test files. "python/",
// These are (mainly) imported code that we don't want to lint to make imports easier. "remote/cdp/Protocol.sys.mjs", "remote/cdp/test/browser/chrome-remote-interface.js", "remote/marionette/atom.sys.mjs",
// This file explicitly has a syntax error and cannot be parsed by eslint. "remote/shared/messagehandler/test/browser/resources/modules/root/invalid.sys.mjs",
// Test files that we don't want to lint (preprocessed, minified etc) "testing/condprofile/condprof/tests/profile", "testing/mozbase/mozprofile/tests/files/prefs_with_comments.js", "testing/mozharness/configs/test/test_malformed.json", "testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js", "testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js", // Python json. "testing/talos/talos/unittests/test_talosconfig_browser_config.json", "testing/talos/talos/unittests/test_talosconfig_test_config.json", // Runing Talos may extract data here, see bug 1435677. "testing/talos/talos/tests/tp5n/", "testing/talos/talos/fis/tp5n/",
// Mainly third-party related code, that shouldn't be linted. "testing/web-platform/",
// Tests of ESLint command. "tools/lint/test/files",
// Uses special template formatting. "tools/tryselect/selectors/chooser/templates/chooser.html",
// Ignore preprocessed *(P)refs.js files in update-packaging. "tools/update-packaging/**/*refs.js",
// Ignore pre-generated webpack and typescript transpiled files for translations "browser/extensions/translations/extension/",
// "scaffolding" used by uniffi which isn't valid JS in its original form. "toolkit/components/uniffi-bindgen-gecko-js/src/templates/js/", "toolkit/components/uniffi-bindgen-gecko-js/components/generated/*",
// Test files for circular import in modules. "dom/base/test/jsmodules/import_circular.mjs", "dom/base/test/jsmodules/import_circular_1.mjs",
];
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-07)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.