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