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
|
|
|
|
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
|
|
|
|
# code as a .jsm (schema.jsm)
|
|
|
|
browser/components/enterprisepolicies/schemas/schema.jsm
|
2016-09-20 23:06:37 +00:00
|
|
|
# generated & special files in cld2
|
2019-08-21 19:07:31 +00:00
|
|
|
browser/components/translation/cld2/
|
2018-08-20 11:50:27 +00:00
|
|
|
# Screenshots is imported as a system add-on and has
|
2017-05-31 15:40:52 +00:00
|
|
|
# their own lint rules currently.
|
2019-08-21 19:07:31 +00:00
|
|
|
browser/extensions/screenshots/
|
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
|
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
|
2019-08-21 19:07:31 +00:00
|
|
|
devtools/client/debugger/configs/
|
|
|
|
devtools/client/debugger/dist/
|
|
|
|
devtools/client/debugger/flow-typed/
|
|
|
|
devtools/client/debugger/images/
|
|
|
|
devtools/client/debugger/test/
|
2019-05-17 15:50:29 +00:00
|
|
|
devtools/client/debugger/index.html
|
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
|
|
|
|
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
|
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
|
|
|
|
2019-09-09 00:42:03 +00:00
|
|
|
# Testing syntax error
|
|
|
|
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
|
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
|
|
|
|
|
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
|
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/jsapi-tests/binast/
|
|
|
|
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
|
|
|
|
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.
|
2019-01-29 15:18:42 +00:00
|
|
|
remote/Protocol.jsm
|
2019-02-17 15:26:40 +00:00
|
|
|
remote/test/browser/chrome-remote-interface.js
|
2020-01-21 19:44:03 +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
|
|
|
|
services/fxaccounts/FxAccountsPairingChannel.js
|
|
|
|
|
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/marionette/atom.js
|
|
|
|
testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
|
2017-06-28 12:58:01 +00:00
|
|
|
testing/talos/talos/scripts/jszip.min.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
|
|
|
|
|
|
|
# Ignore generated code from wasm-bindgen
|
|
|
|
toolkit/components/extensions/profiler_get_symbols.js
|
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
|
|
|
|
|
|
|
|
# Tests old non-star function generators
|
|
|
|
toolkit/modules/tests/xpcshell/test_task.js
|
2016-02-24 14:40:55 +00:00
|
|
|
|
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
|