1# Please DO NOT add more third party files to this file. 2# They should be added to tools/rewriting/ThirdPartyPaths.txt instead. 3 4# This file should only be used for exclusions where we have: 5# - preprocessed files 6# - generated files that are for some reason checked into source 7# - intentionally invalid files 8# - build directories and other items that we need to ignore 9 10!.eslintrc.js 11 12# Always ignore node_modules. 13**/node_modules/ 14 15# Always ignore crashtests - specially crafted files that originally caused a 16# crash. 17**/crashtests/ 18# Also ignore reftest - specially crafted to produce expected output. 19**/reftest/ 20**/reftests/ 21 22# Exclude expected objdirs. 23obj*/ 24 25# build/ third-party code 26build/pgo/js-input/ 27 28# browser/ exclusions 29browser/app/ 30browser/branding/**/firefox-branding.js 31# Gzipped test file. 32browser/base/content/test/general/gZipOfflineChild.html 33browser/base/content/test/urlbar/file_blank_but_not_blank.html 34# Test files that are really json not js, and don't need to be linted. 35browser/components/sessionstore/test/unit/data/sessionstore_valid.js 36browser/components/sessionstore/test/unit/data/sessionstore_invalid.js 37# This file is split into two in order to keep it as a valid json file 38# for documentation purposes (policies.json) but to be accessed by the 39# code as a .jsm (schema.jsm) 40browser/components/enterprisepolicies/schemas/schema.jsm 41# generated & special files in cld2 42browser/components/translation/cld2/ 43# Screenshots is imported as a system add-on and has 44# their own lint rules currently. 45browser/extensions/screenshots/ 46browser/extensions/pdfjs/content/build 47browser/extensions/pdfjs/content/web 48# generated or library files in pocket 49browser/components/pocket/content/panels/js/tmpl.js 50 51# Ignore newtab files 52browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js 53browser/components/newtab/data/ 54browser/components/newtab/logs/ 55 56# The only file in browser/locales/ is pre-processed. 57browser/locales/ 58# Generated data files 59browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm 60 61# Ignore devtools debugger files which aren't intended for linting, and also 62# aren't included in any .eslintignore or .prettierignore file. 63# See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24 64devtools/client/debugger/configs/ 65devtools/client/debugger/dist/ 66devtools/client/debugger/flow-typed/ 67devtools/client/debugger/images/ 68devtools/client/debugger/test/ 69devtools/client/debugger/index.html 70 71# Ignore devtools imported repositories 72devtools/client/shared/components/reps/ 73 74# Ignore devtools preferences files 75devtools/client/preferences/ 76 77# Ignore devtools generated code 78devtools/shared/css/generated/properties-db.js 79devtools/client/webconsole/test/node/fixtures/stubs/*.js 80!devtools/client/webconsole/test/node/fixtures/stubs/index.js 81 82# Ignore devtools files testing sourcemaps / code style 83devtools/client/framework/test/code_* 84devtools/client/inspector/markup/test/events_bundle.js 85devtools/client/netmonitor/test/xhr_bundle.js 86devtools/client/webconsole/test/browser/code_bundle_nosource.js 87devtools/client/webconsole/test/browser/code_bundle_invalidmap.js 88devtools/server/tests/xpcshell/setBreakpoint* 89devtools/server/tests/xpcshell/sourcemapped.js 90 91# Testing syntax error 92devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js 93 94# devtools specific format test file 95devtools/server/tests/xpcshell/xpcshell_debugging_script.js 96 97# Generated 98dom/canvas/test/webgl-conf/generated/ 99 100# Intentionally invalid/not parsable 101dom/html/test/test_bug677658.html 102dom/svg/test/test_nonAnimStrings.xhtml 103dom/svg/test/test_SVG_namespace_ids.html 104 105# Strange encodings 106dom/base/test/file_bug687859-16.js 107dom/encoding/test/test_utf16_files.html 108dom/encoding/test/file_utf16_be_bom.js 109dom/encoding/test/file_utf16_le_bom.js 110 111# Service workers fixtures which require specific resource caching. 112dom/base/test/file_js_cache.js 113dom/serviceworkers/test/file_js_cache.js 114 115# Intentional broken files 116dom/base/test/file_js_cache_syntax_error.js 117dom/base/test/jsmodules/test_syntaxError.html 118dom/base/test/jsmodules/test_syntaxErrorAsync.html 119dom/base/test/jsmodules/module_badSyntax.js 120dom/base/test/jsmodules/test_syntaxErrorInline.html 121dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html 122dom/base/test/test_bug687859.html 123dom/media/tests/mochitest/identity/idp-bad.js 124dom/serviceworkers/test/file_js_cache_syntax_error.js 125dom/serviceworkers/test/parse_error_worker.js 126dom/tests/mochitest/bugs/test_bug531176.html 127dom/webauthn/tests/cbor.js 128dom/workers/test/importScripts_worker_imported3.js 129dom/workers/test/invalid.js 130dom/workers/test/threadErrors_worker1.js 131 132# Bug 1527075: This directory is linted in github repository 133intl/l10n/ 134 135# Exclude everything but self-hosted JS 136js/ductwork/ 137js/examples/ 138js/public/ 139js/xpconnect/ 140js/src/devtools/ 141js/src/jit-test/ 142js/src/jsapi-tests/binast/ 143js/src/tests/ 144js/src/Y.js 145 146# Uses `#filter substitution` 147mobile/android/app/mobile.js 148mobile/android/app/geckoview-prefs.js 149 150# Not much JS to lint and non-standard at that 151mobile/android/installer/ 152mobile/android/locales/ 153 154# Pre-processed/pref files 155modules/libpref/greprefs.js 156modules/libpref/init/all.js 157modules/libpref/test/unit/*data/ 158 159# Only contains non-standard test files. 160python/ 161 162# These are (mainly) imported code that we don't want to lint to make imports easier. 163remote/Protocol.jsm 164remote/test/browser/chrome-remote-interface.js 165 166# services/ exclusions 167 168# Third party services 169services/common/kinto-http-client.js 170services/common/kinto-offline-client.js 171 172# Webpack-bundled library 173services/fxaccounts/FxAccountsPairingChannel.js 174 175# Servo is imported. 176servo/ 177 178# Test files that we don't want to lint (preprocessed, minified etc) 179testing/condprofile/condprof/tests/profile 180testing/marionette/atom.js 181testing/mozbase/mozprofile/tests/files/prefs_with_comments.js 182testing/talos/talos/scripts/jszip.min.js 183testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js 184testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js 185testing/talos/talos/tests/devtools/addon/content/pages/ 186# Runing Talos may extract data here, see bug 1435677. 187testing/talos/talos/tests/tp5n/ 188testing/talos/talos/fis/tp5n/ 189 190# Mainly third-party related code, that shouldn't be linted. 191testing/web-platform/ 192 193# toolkit/ exclusions 194 195# Ignore generated code from wasm-bindgen 196toolkit/components/extensions/profiler_get_symbols.js 197 198# Intentionally invalid JS 199toolkit/components/workerloader/tests/moduleF-syntax-error.js 200 201# External code: 202toolkit/components/reader/Readability.js 203toolkit/components/reader/Readability-readerable.js 204toolkit/components/reader/JSDOMParser.js 205 206# Uses preprocessing 207toolkit/components/reader/Readerable.jsm 208 209# Uses preprocessing 210toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js 211toolkit/modules/AppConstants.jsm 212 213# Tests old non-star function generators 214toolkit/modules/tests/xpcshell/test_task.js 215 216# Uses special template formatting. 217tools/tryselect/selectors/chooser/templates/chooser.html 218 219# Ignore preprocessed *(P)refs.js files in update-packaging. 220tools/update-packaging/**/*refs.js 221