2020-01-21 23:46:06 +03:00
|
|
|
# Please DO NOT add more third party files to this file.
|
|
|
|
# They should be added to tools/rewriting/ThirdPartyPaths.txt instead.
|
2023-05-11 19:06:38 +03:00
|
|
|
#
|
|
|
|
# Please also DO NOT add generated files that are for some reason checked
|
|
|
|
# into source - add them to tools/rewriting/Generated.txt instead.
|
2020-01-21 23:46:06 +03:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2023-06-06 19:44:07 +03:00
|
|
|
# Include all js dot files.
|
|
|
|
!.*.js
|
2020-03-07 12:30:44 +03:00
|
|
|
|
2023-09-05 15:59:31 +03:00
|
|
|
# Ignore VSCode files
|
|
|
|
.vscode/
|
2023-05-09 19:14:52 +03:00
|
|
|
|
2015-11-27 20:39:59 +03:00
|
|
|
# Always ignore node_modules.
|
2019-09-03 19:45:09 +03:00
|
|
|
**/node_modules/
|
2015-11-27 20:39:59 +03:00
|
|
|
|
2016-10-28 00:18:50 +03:00
|
|
|
# Always ignore crashtests - specially crafted files that originally caused a
|
2017-10-19 11:55:40 +03:00
|
|
|
# crash.
|
2019-08-21 22:07:31 +03:00
|
|
|
**/crashtests/
|
2017-11-29 01:57:08 +03:00
|
|
|
# Also ignore reftest - specially crafted to produce expected output.
|
2019-08-21 22:07:31 +03:00
|
|
|
**/reftest/
|
|
|
|
**/reftests/
|
2023-09-24 13:38:56 +03:00
|
|
|
# Don't ignore the reftest harness files.
|
|
|
|
!/layout/tools/reftest/
|
2017-10-19 11:55:40 +03:00
|
|
|
|
2015-11-27 20:39:59 +03:00
|
|
|
# Exclude expected objdirs.
|
2019-08-21 22:07:31 +03:00
|
|
|
obj*/
|
2015-11-27 20:39:59 +03:00
|
|
|
|
2019-05-31 11:49:17 +03:00
|
|
|
# build/ third-party code
|
2019-08-21 22:07:31 +03:00
|
|
|
build/pgo/js-input/
|
2017-10-19 11:55:40 +03:00
|
|
|
|
2015-11-27 20:39:59 +03:00
|
|
|
# browser/ exclusions
|
2019-08-21 22:07:31 +03:00
|
|
|
browser/app/
|
2016-10-25 18:35:05 +03:00
|
|
|
browser/branding/**/firefox-branding.js
|
2017-05-08 12:29:47 +03:00
|
|
|
# Gzipped test file.
|
|
|
|
browser/base/content/test/general/gZipOfflineChild.html
|
2015-12-02 22:51:26 +03:00
|
|
|
browser/base/content/test/urlbar/file_blank_but_not_blank.html
|
2016-10-28 00:18:50 +03:00
|
|
|
# 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
|
2018-01-22 22:01:48 +03:00
|
|
|
# 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
|
2023-04-27 22:23:00 +03:00
|
|
|
# code as a .sys.mjs (schema.sys.mjs)
|
|
|
|
browser/components/enterprisepolicies/schemas/schema.sys.mjs
|
2016-09-21 02:06:37 +03:00
|
|
|
# generated or library files in pocket
|
2018-10-12 22:38:10 +03:00
|
|
|
browser/components/pocket/content/panels/js/tmpl.js
|
2022-01-21 00:27:44 +03:00
|
|
|
browser/components/pocket/content/panels/js/vendor.bundle.js
|
2021-11-11 03:06:13 +03:00
|
|
|
browser/components/pocket/content/panels/js/main.bundle.js
|
2022-09-13 00:13:20 +03:00
|
|
|
# Include the Storybook config files.
|
|
|
|
!browser/components/storybook/.storybook/
|
|
|
|
!browser/components/storybook/.storybook/*.js
|
2019-05-28 23:24:23 +03:00
|
|
|
|
|
|
|
# Ignore newtab files
|
2020-02-27 21:52:46 +03:00
|
|
|
browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
|
2019-05-28 23:24:23 +03:00
|
|
|
browser/components/newtab/data/
|
|
|
|
browser/components/newtab/logs/
|
|
|
|
|
2017-07-06 17:31:07 +03:00
|
|
|
# The only file in browser/locales/ is pre-processed.
|
2019-08-21 22:07:31 +03:00
|
|
|
browser/locales/
|
2017-06-29 02:01:25 +03:00
|
|
|
# Generated data files
|
|
|
|
browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
|
2017-05-10 23:07:06 +03:00
|
|
|
|
2019-05-17 18:50:29 +03:00
|
|
|
# Ignore devtools debugger files which aren't intended for linting, and also
|
|
|
|
# aren't included in any .eslintignore or .prettierignore file.
|
|
|
|
# See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
|
2022-02-23 21:38:26 +03:00
|
|
|
devtools/client/debugger/bin/
|
2019-08-21 22:07:31 +03:00
|
|
|
devtools/client/debugger/configs/
|
|
|
|
devtools/client/debugger/dist/
|
|
|
|
devtools/client/debugger/images/
|
2022-12-08 18:54:07 +03:00
|
|
|
devtools/client/debugger/packages/
|
2022-02-23 21:38:26 +03:00
|
|
|
devtools/client/debugger/test/mochitest/examples/
|
2019-05-17 18:50:29 +03:00
|
|
|
devtools/client/debugger/index.html
|
2022-02-23 21:38:26 +03:00
|
|
|
devtools/client/debugger/webpack.config.js
|
2018-04-05 01:24:04 +03:00
|
|
|
|
2017-07-21 13:27:35 +03:00
|
|
|
# Ignore devtools preferences files
|
2019-08-21 22:07:31 +03:00
|
|
|
devtools/client/preferences/
|
2015-11-27 20:39:59 +03:00
|
|
|
|
2018-08-28 18:23:33 +03:00
|
|
|
# Ignore devtools generated code
|
2019-08-09 12:54:41 +03:00
|
|
|
devtools/client/webconsole/test/node/fixtures/stubs/*.js
|
|
|
|
!devtools/client/webconsole/test/node/fixtures/stubs/index.js
|
2022-03-03 19:16:50 +03:00
|
|
|
devtools/client/shared/components/test/node/stubs/reps/*.js
|
2022-11-08 19:01:01 +03:00
|
|
|
devtools/client/shared/source-map-loader/test/browser/fixtures/*.js
|
2018-08-28 18:23:33 +03:00
|
|
|
|
2016-05-18 01:23:07 +03:00
|
|
|
# Ignore devtools files testing sourcemaps / code style
|
|
|
|
devtools/client/framework/test/code_*
|
2017-05-12 23:34:26 +03:00
|
|
|
devtools/client/inspector/markup/test/events_bundle.js
|
2017-05-10 23:07:06 +03:00
|
|
|
devtools/client/netmonitor/test/xhr_bundle.js
|
2019-08-09 12:54:41 +03:00
|
|
|
devtools/client/webconsole/test/browser/code_bundle_nosource.js
|
|
|
|
devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
|
2021-10-19 14:40:09 +03:00
|
|
|
devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
|
|
|
|
devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
|
2023-04-03 13:23:52 +03:00
|
|
|
devtools/client/inspector/markup/test/shadowdom_open_debugger.min.js
|
|
|
|
devtools/client/webconsole/test/browser/test-click-function-to-source*.js
|
|
|
|
devtools/client/webconsole/test/browser/test-external-script-errors.js
|
2023-05-04 20:21:03 +03:00
|
|
|
devtools/client/webconsole/test/browser/test-mangled-function.*
|
2023-04-03 13:23:52 +03:00
|
|
|
devtools/client/webconsole/test/browser/test-message-categories-canvas-css.js
|
|
|
|
devtools/client/webconsole/test/browser/test-message-categories-empty-getelementbyid.js
|
|
|
|
devtools/client/webconsole/test/browser/test-sourcemap*.js
|
2020-01-20 16:56:04 +03:00
|
|
|
devtools/server/tests/xpcshell/setBreakpoint*
|
|
|
|
devtools/server/tests/xpcshell/sourcemapped.js
|
2015-11-27 20:39:59 +03:00
|
|
|
|
2021-07-29 23:28:44 +03:00
|
|
|
# Ignore generated code from wasm-bindgen
|
2023-02-13 19:46:38 +03:00
|
|
|
devtools/client/performance-new/shared/profiler_get_symbols.js
|
2021-07-29 23:28:44 +03:00
|
|
|
|
2019-09-09 03:42:03 +03:00
|
|
|
# Testing syntax error
|
2023-05-09 19:14:52 +03:00
|
|
|
devtools/client/aboutdebugging/test/browser/resources/bad-extensions/invalid-json/manifest.json
|
|
|
|
devtools/client/jsonview/test/invalid_json.json
|
2019-09-09 03:42:03 +03:00
|
|
|
devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
|
|
|
|
|
2016-05-18 01:23:07 +03:00
|
|
|
# devtools specific format test file
|
2020-01-20 16:56:04 +03:00
|
|
|
devtools/server/tests/xpcshell/xpcshell_debugging_script.js
|
2023-05-09 19:14:52 +03:00
|
|
|
devtools/shared/webconsole/test/browser/data.json
|
2018-04-11 18:10:35 +03:00
|
|
|
|
2020-01-21 23:46:28 +03:00
|
|
|
# Generated
|
|
|
|
dom/canvas/test/webgl-conf/generated/
|
|
|
|
|
|
|
|
# Intentionally invalid/not parsable
|
|
|
|
dom/html/test/test_bug677658.html
|
2019-03-25 22:22:27 +03:00
|
|
|
dom/svg/test/test_nonAnimStrings.xhtml
|
|
|
|
dom/svg/test/test_SVG_namespace_ids.html
|
2017-06-28 22:41:50 +03:00
|
|
|
|
2019-06-13 23:21:46 +03:00
|
|
|
# Strange encodings
|
2019-06-25 10:12:51 +03:00
|
|
|
dom/base/test/file_bug687859-16.js
|
2023-09-05 15:59:31 +03:00
|
|
|
dom/base/test/file_bug707142_bom.json
|
2023-05-09 19:14:52 +03:00
|
|
|
dom/base/test/file_bug707142_utf-16.json
|
2019-06-13 23:21:46 +03:00
|
|
|
dom/encoding/test/test_utf16_files.html
|
|
|
|
dom/encoding/test/file_utf16_be_bom.js
|
|
|
|
dom/encoding/test/file_utf16_le_bom.js
|
|
|
|
|
2016-05-18 01:23:07 +03:00
|
|
|
# Service workers fixtures which require specific resource caching.
|
2019-06-13 23:21:46 +03:00
|
|
|
dom/base/test/file_js_cache.js
|
|
|
|
dom/serviceworkers/test/file_js_cache.js
|
2019-07-04 20:39:31 +03:00
|
|
|
|
2019-06-13 23:21:46 +03:00
|
|
|
# Intentional broken files
|
|
|
|
dom/base/test/file_js_cache_syntax_error.js
|
2023-07-13 16:56:12 +03:00
|
|
|
dom/base/test/jsmodules/test_scriptNotParsedAsModule.html
|
2019-06-25 10:12:51 +03:00
|
|
|
dom/base/test/jsmodules/test_syntaxError.html
|
|
|
|
dom/base/test/jsmodules/test_syntaxErrorAsync.html
|
2023-07-13 16:56:12 +03:00
|
|
|
dom/base/test/jsmodules/module_badSyntax.mjs
|
2019-06-25 10:12:51 +03:00
|
|
|
dom/base/test/jsmodules/test_syntaxErrorInline.html
|
|
|
|
dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
|
|
|
|
dom/base/test/test_bug687859.html
|
2020-10-02 19:30:58 +03:00
|
|
|
dom/media/webrtc/tests/mochitests/identity/idp-bad.js
|
2023-05-09 19:14:52 +03:00
|
|
|
dom/security/test/general/file_nonscript.json
|
2019-06-13 23:21:46 +03:00
|
|
|
dom/serviceworkers/test/file_js_cache_syntax_error.js
|
|
|
|
dom/serviceworkers/test/parse_error_worker.js
|
|
|
|
dom/tests/mochitest/bugs/test_bug531176.html
|
|
|
|
dom/webauthn/tests/cbor.js
|
|
|
|
dom/workers/test/importScripts_worker_imported3.js
|
|
|
|
dom/workers/test/invalid.js
|
|
|
|
dom/workers/test/threadErrors_worker1.js
|
|
|
|
|
2019-04-15 19:43:02 +03:00
|
|
|
# Bug 1527075: This directory is linted in github repository
|
2019-08-21 22:07:31 +03:00
|
|
|
intl/l10n/
|
2018-02-21 03:02:54 +03:00
|
|
|
|
2017-02-07 23:58:21 +03:00
|
|
|
# Exclude everything but self-hosted JS
|
2019-08-21 22:07:31 +03:00
|
|
|
js/examples/
|
|
|
|
js/public/
|
|
|
|
js/src/devtools/
|
|
|
|
js/src/jit-test/
|
|
|
|
js/src/tests/
|
2017-05-10 18:56:32 +03:00
|
|
|
js/src/Y.js
|
2017-02-07 23:58:21 +03:00
|
|
|
|
2022-10-11 01:22:00 +03:00
|
|
|
# Changes to XPConnect tests must be carefully audited.
|
|
|
|
js/xpconnect/tests/mochitest/
|
|
|
|
js/xpconnect/tests/unit/
|
|
|
|
|
2020-06-02 16:50:23 +03:00
|
|
|
# Fuzzing code for testing only, targeting the JS shell
|
|
|
|
js/src/fuzz-tests/
|
|
|
|
|
2023-05-09 19:14:52 +03:00
|
|
|
# Template file
|
|
|
|
mobile/android/docs/geckoview/assets/js/search-data.json
|
|
|
|
|
2015-11-27 20:39:59 +03:00
|
|
|
# Uses `#filter substitution`
|
2018-02-12 21:31:53 +03:00
|
|
|
mobile/android/app/geckoview-prefs.js
|
2015-11-27 20:39:59 +03:00
|
|
|
|
|
|
|
# Not much JS to lint and non-standard at that
|
|
|
|
mobile/android/installer/
|
|
|
|
mobile/android/locales/
|
|
|
|
|
2018-10-24 22:12:31 +03:00
|
|
|
# Pre-processed/pref files
|
|
|
|
modules/libpref/greprefs.js
|
|
|
|
modules/libpref/init/all.js
|
2019-08-21 22:07:31 +03:00
|
|
|
modules/libpref/test/unit/*data/
|
2018-10-24 22:12:31 +03:00
|
|
|
|
2016-10-28 00:18:50 +03:00
|
|
|
# Only contains non-standard test files.
|
2019-08-21 22:07:31 +03:00
|
|
|
python/
|
2017-10-19 11:55:40 +03:00
|
|
|
|
2020-02-13 12:23:19 +03:00
|
|
|
# These are (mainly) imported code that we don't want to lint to make imports easier.
|
2022-09-30 14:08:09 +03:00
|
|
|
remote/cdp/Protocol.sys.mjs
|
2021-02-23 20:37:03 +03:00
|
|
|
remote/cdp/test/browser/chrome-remote-interface.js
|
2022-09-30 14:08:08 +03:00
|
|
|
remote/marionette/atom.sys.mjs
|
2020-01-21 22:44:03 +03:00
|
|
|
|
2021-10-12 19:48:43 +03:00
|
|
|
# This file explicitly has a syntax error and cannot be parsed by eslint.
|
2022-09-30 14:08:06 +03:00
|
|
|
remote/shared/messagehandler/test/browser/resources/modules/root/invalid.sys.mjs
|
2021-10-12 19:48:43 +03:00
|
|
|
|
2016-02-02 05:37:50 +03:00
|
|
|
# services/ exclusions
|
|
|
|
|
2019-04-08 23:06:13 +03:00
|
|
|
# Third party services
|
2023-06-26 12:03:01 +03:00
|
|
|
services/common/kinto-http-client.sys.mjs
|
2019-04-08 23:06:13 +03:00
|
|
|
services/common/kinto-offline-client.js
|
|
|
|
|
2019-02-21 23:58:04 +03:00
|
|
|
# Webpack-bundled library
|
2023-02-17 19:34:42 +03:00
|
|
|
services/fxaccounts/FxAccountsPairingChannel.sys.mjs
|
2019-02-21 23:58:04 +03:00
|
|
|
|
2017-05-31 18:40:52 +03:00
|
|
|
# Servo is imported.
|
2019-08-21 22:07:31 +03:00
|
|
|
servo/
|
2017-10-19 11:55:40 +03:00
|
|
|
|
2020-02-10 19:28:09 +03:00
|
|
|
# Test files that we don't want to lint (preprocessed, minified etc)
|
2020-04-16 17:01:55 +03:00
|
|
|
testing/condprofile/condprof/tests/profile
|
2020-02-10 19:28:09 +03:00
|
|
|
testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
|
2023-05-09 19:14:52 +03:00
|
|
|
testing/mozharness/configs/test/test_malformed.json
|
2017-06-28 15:58:03 +03:00
|
|
|
testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
|
2017-06-28 05:42:34 +03:00
|
|
|
testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
|
2019-08-21 22:07:31 +03:00
|
|
|
testing/talos/talos/tests/devtools/addon/content/pages/
|
2023-05-09 19:14:52 +03:00
|
|
|
# Python json.
|
|
|
|
testing/talos/talos/unittests/test_talosconfig_browser_config.json
|
|
|
|
testing/talos/talos/unittests/test_talosconfig_test_config.json
|
2018-02-05 12:28:17 +03:00
|
|
|
# Runing Talos may extract data here, see bug 1435677.
|
2019-08-21 22:07:31 +03:00
|
|
|
testing/talos/talos/tests/tp5n/
|
2019-11-25 21:31:36 +03:00
|
|
|
testing/talos/talos/fis/tp5n/
|
2017-06-28 15:58:01 +03:00
|
|
|
|
2020-02-13 12:23:19 +03:00
|
|
|
# Mainly third-party related code, that shouldn't be linted.
|
2019-08-21 22:07:31 +03:00
|
|
|
testing/web-platform/
|
2017-01-10 20:09:02 +03:00
|
|
|
|
2015-12-03 21:02:45 +03:00
|
|
|
# toolkit/ exclusions
|
2019-04-08 23:06:13 +03:00
|
|
|
|
2023-05-09 19:14:52 +03:00
|
|
|
# Intentionally invalid files
|
2015-12-03 21:02:45 +03:00
|
|
|
toolkit/components/workerloader/tests/moduleF-syntax-error.js
|
2023-05-09 19:14:52 +03:00
|
|
|
toolkit/components/enterprisepolicies/tests/browser/config_broken_json.json
|
|
|
|
toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_fail.json
|
2015-12-03 21:02:45 +03:00
|
|
|
|
2020-07-02 10:13:46 +03:00
|
|
|
# Built files
|
|
|
|
toolkit/components/pdfjs/content/build
|
|
|
|
toolkit/components/pdfjs/content/web
|
|
|
|
|
2016-03-08 20:00:47 +03:00
|
|
|
# External code:
|
|
|
|
toolkit/components/reader/Readability.js
|
2020-02-28 22:43:59 +03:00
|
|
|
toolkit/components/reader/Readability-readerable.js
|
2016-03-08 20:00:47 +03:00
|
|
|
toolkit/components/reader/JSDOMParser.js
|
|
|
|
|
2015-12-03 21:02:45 +03:00
|
|
|
# Uses preprocessing
|
2023-03-23 15:11:43 +03:00
|
|
|
toolkit/components/reader/Readerable.sys.mjs
|
2019-04-08 23:06:13 +03:00
|
|
|
|
2022-08-23 08:59:55 +03:00
|
|
|
# Generated & special files in cld2
|
|
|
|
toolkit/components/translation/cld2/
|
|
|
|
|
2019-04-08 23:06:13 +03:00
|
|
|
# Uses preprocessing
|
2015-12-03 21:02:45 +03:00
|
|
|
toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
|
2022-10-18 14:21:25 +03:00
|
|
|
toolkit/modules/AppConstants.sys.mjs
|
2019-04-08 23:06:13 +03:00
|
|
|
|
2022-09-09 21:46:38 +03:00
|
|
|
# Tests of ESLint command.
|
|
|
|
tools/lint/test/files
|
|
|
|
|
2020-01-21 23:46:40 +03:00
|
|
|
# Uses special template formatting.
|
2019-04-08 23:06:13 +03:00
|
|
|
tools/tryselect/selectors/chooser/templates/chooser.html
|
|
|
|
|
|
|
|
# Ignore preprocessed *(P)refs.js files in update-packaging.
|
|
|
|
tools/update-packaging/**/*refs.js
|
2021-01-28 01:54:25 +03:00
|
|
|
|
2021-05-28 21:38:59 +03:00
|
|
|
# Ignore pre-generated webpack and typescript transpiled files for translations
|
|
|
|
browser/extensions/translations/extension/
|
2022-08-03 21:59:35 +03:00
|
|
|
|
|
|
|
# "scaffolding" used by uniffi which isn't valid JS in its original form.
|
|
|
|
toolkit/components/uniffi-bindgen-gecko-js/src/templates/js/
|
2022-10-25 23:03:22 +03:00
|
|
|
toolkit/components/uniffi-bindgen-gecko-js/components/generated/*
|