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.
|
|
|
|
|
|
|
|
# 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 12:30:44 +03:00
|
|
|
!.eslintrc.js
|
|
|
|
|
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/
|
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
|
|
|
|
# code as a .jsm (schema.jsm)
|
|
|
|
browser/components/enterprisepolicies/schemas/schema.jsm
|
2016-09-21 02:06:37 +03:00
|
|
|
# generated & special files in cld2
|
2019-08-21 22:07:31 +03:00
|
|
|
browser/components/translation/cld2/
|
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
|
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
|
2019-08-21 22:07:31 +03:00
|
|
|
devtools/client/debugger/configs/
|
|
|
|
devtools/client/debugger/dist/
|
|
|
|
devtools/client/debugger/images/
|
|
|
|
devtools/client/debugger/test/
|
2019-05-17 18:50:29 +03:00
|
|
|
devtools/client/debugger/index.html
|
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
|
|
|
|
devtools/shared/css/generated/properties-db.js
|
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
|
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
|
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
|
|
|
|
devtools/client/performance-new/profiler_get_symbols.js
|
|
|
|
|
2019-09-09 03:42:03 +03:00
|
|
|
# Testing syntax error
|
|
|
|
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
|
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
|
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
|
2019-06-25 10:12:51 +03: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 19:30:58 +03:00
|
|
|
dom/media/webrtc/tests/mochitests/identity/idp-bad.js
|
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/ductwork/
|
|
|
|
js/examples/
|
|
|
|
js/public/
|
|
|
|
js/xpconnect/
|
|
|
|
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
|
|
|
|
2020-06-02 16:50:23 +03:00
|
|
|
# Fuzzing code for testing only, targeting the JS shell
|
|
|
|
js/src/fuzz-tests/
|
|
|
|
|
2015-11-27 20:39:59 +03:00
|
|
|
# Uses `#filter substitution`
|
|
|
|
mobile/android/app/mobile.js
|
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.
|
2021-02-14 17:24:27 +03:00
|
|
|
remote/cdp/Protocol.jsm
|
2021-02-23 20:37:03 +03:00
|
|
|
remote/cdp/test/browser/chrome-remote-interface.js
|
2021-05-31 20:36:06 +03:00
|
|
|
remote/marionette/atom.js
|
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.
|
|
|
|
remote/shared/messagehandler/test/browser/resources/modules/root/invalid.jsm
|
|
|
|
|
2016-02-02 05:37:50 +03:00
|
|
|
# services/ exclusions
|
|
|
|
|
2019-04-08 23:06:13 +03:00
|
|
|
# Third party services
|
|
|
|
services/common/kinto-http-client.js
|
|
|
|
services/common/kinto-offline-client.js
|
|
|
|
|
2019-02-21 23:58:04 +03:00
|
|
|
# Webpack-bundled library
|
|
|
|
services/fxaccounts/FxAccountsPairingChannel.js
|
|
|
|
|
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
|
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/
|
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
|
|
|
|
2015-12-03 21:02:45 +03:00
|
|
|
# Intentionally invalid JS
|
|
|
|
toolkit/components/workerloader/tests/moduleF-syntax-error.js
|
|
|
|
|
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
|
2018-08-18 09:10:59 +03:00
|
|
|
toolkit/components/reader/Readerable.jsm
|
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
|
2019-04-08 23:06:13 +03:00
|
|
|
toolkit/modules/AppConstants.jsm
|
|
|
|
|
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
|
|
|
|
|
|
|
# Ignore backgroundtasks preferences files.
|
|
|
|
toolkit/components/backgroundtasks/defaults
|
2021-05-28 21:38:59 +03:00
|
|
|
|
|
|
|
# Ignore pre-generated webpack and typescript transpiled files for translations
|
|
|
|
browser/extensions/translations/extension/
|