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