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.
|
|
|
|
|
|
|
|
# This file should only be used for exclusions where we have:
|
|
|
|
# - preprocessed files
|
|
|
|
# - generated files that are for some reason checked into source
|
|
|
|
# - intentionally invalid files
|
|
|
|
# - build directories and other items that we need to ignore
|
|
|
|
|
2020-03-07 09:30:44 +00:00
|
|
|
!.eslintrc.js
|
|
|
|
|
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
|
|
|
|
2017-10-19 08:55:40 +00:00
|
|
|
# Always ignore crashtests - specially crafted files that originally caused a
|
|
|
|
# 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
|
2016-08-31 16:53:24 +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
|
|
|
|
# code as a .jsm (schema.jsm)
|
|
|
|
browser/components/enterprisepolicies/schemas/schema.jsm
|
2017-03-03 09:29:14 +00:00
|
|
|
# generated & special files in cld2
|
2019-08-21 19:07:31 +00:00
|
|
|
browser/components/translation/cld2/
|
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
|
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-02-23 18:38:26 +00:00
|
|
|
devtools/client/debugger/packages/
|
|
|
|
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
|
2018-08-28 15:23:33 +00:00
|
|
|
|
2016-05-17 22:23:07 +00:00
|
|
|
# Ignore devtools files testing sourcemaps / code style
|
2018-04-04 22:24:04 +00:00
|
|
|
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
|
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
|
|
|
|
devtools/client/performance-new/profiler_get_symbols.js
|
|
|
|
|
2019-09-09 00:42:03 +00:00
|
|
|
# Testing syntax error
|
|
|
|
devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
|
|
|
|
|
2018-04-11 15:10:35 +00:00
|
|
|
# devtools specific format test file
|
2020-01-20 13:56:04 +00:00
|
|
|
devtools/server/tests/xpcshell/xpcshell_debugging_script.js
|
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
|
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
|
|
|
|
|
2019-07-04 17:39:31 +00:00
|
|
|
# Service workers fixtures which require specific resource caching.
|
|
|
|
dom/base/test/file_js_cache.js
|
|
|
|
dom/serviceworkers/test/file_js_cache.js
|
|
|
|
|
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
|
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/ductwork/
|
|
|
|
js/examples/
|
|
|
|
js/public/
|
|
|
|
js/xpconnect/
|
|
|
|
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
|
|
|
|
2020-06-02 13:50:23 +00:00
|
|
|
# Fuzzing code for testing only, targeting the JS shell
|
|
|
|
js/src/fuzz-tests/
|
|
|
|
|
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
|
|
|
|
2017-10-19 08:55:40 +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.
|
2021-02-14 14:24:27 +00:00
|
|
|
remote/cdp/Protocol.jsm
|
2021-02-23 17:37:03 +00:00
|
|
|
remote/cdp/test/browser/chrome-remote-interface.js
|
2021-05-31 17:36:06 +00:00
|
|
|
remote/marionette/atom.js
|
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.
|
|
|
|
remote/shared/messagehandler/test/browser/resources/modules/root/invalid.jsm
|
|
|
|
|
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
|
|
|
|
services/fxaccounts/FxAccountsPairingChannel.js
|
|
|
|
|
2017-10-19 08:55:40 +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
|
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/
|
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
|
|
|
|
2015-12-03 18:02:45 +00:00
|
|
|
# Intentionally invalid JS
|
|
|
|
toolkit/components/workerloader/tests/moduleF-syntax-error.js
|
|
|
|
|
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
|
2018-08-18 06:10:59 +00:00
|
|
|
toolkit/components/reader/Readerable.jsm
|
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
|
2019-04-08 20:06:13 +00:00
|
|
|
toolkit/modules/AppConstants.jsm
|
|
|
|
|
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
|
|
|
|
|
|
|
# Ignore backgroundtasks preferences files.
|
|
|
|
toolkit/components/backgroundtasks/defaults
|
2021-05-28 18:38:59 +00:00
|
|
|
|
|
|
|
# Ignore pre-generated webpack and typescript transpiled files for translations
|
|
|
|
browser/extensions/translations/extension/
|