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
12 # Always ignore node_modules.
15 # Always ignore crashtests - specially crafted files that originally caused a
18 # Also ignore reftest - specially crafted to produce expected output.
22 # Exclude expected objdirs.
25 # build/ third-party code
30 browser/branding/**/firefox-branding.js
32 browser/base/content/test/general/gZipOfflineChild.html
33 browser/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.
35 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
36 browser/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)
40 browser/components/enterprisepolicies/schemas/schema.jsm
41 # generated & special files in cld2
42 browser/components/translation/cld2/
43 # generated or library files in pocket
44 browser/components/pocket/content/panels/js/tmpl.js
47 browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
48 browser/components/newtab/data/
49 browser/components/newtab/logs/
51 # The only file in browser/locales/ is pre-processed.
53 # Generated data files
54 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
56 # Ignore devtools debugger files which aren't intended for linting, and also
57 # aren't included in any .eslintignore or .prettierignore file.
58 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
59 devtools/client/debugger/configs/
60 devtools/client/debugger/dist/
61 devtools/client/debugger/images/
62 devtools/client/debugger/test/
63 devtools/client/debugger/index.html
65 # Ignore devtools preferences files
66 devtools/client/preferences/
68 # Ignore devtools generated code
69 devtools/shared/css/generated/properties-db.js
70 devtools/client/webconsole/test/node/fixtures/stubs/*.js
71 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
73 # Ignore devtools files testing sourcemaps / code style
74 devtools/client/framework/test/code_*
75 devtools/client/inspector/markup/test/events_bundle.js
76 devtools/client/netmonitor/test/xhr_bundle.js
77 devtools/client/webconsole/test/browser/code_bundle_nosource.js
78 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
79 devtools/server/tests/xpcshell/setBreakpoint*
80 devtools/server/tests/xpcshell/sourcemapped.js
82 # Testing syntax error
83 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
85 # devtools specific format test file
86 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
89 dom/canvas/test/webgl-conf/generated/
91 # Intentionally invalid/not parsable
92 dom/html/test/test_bug677658.html
93 dom/svg/test/test_nonAnimStrings.xhtml
94 dom/svg/test/test_SVG_namespace_ids.html
97 dom/base/test/file_bug687859-16.js
98 dom/encoding/test/test_utf16_files.html
99 dom/encoding/test/file_utf16_be_bom.js
100 dom/encoding/test/file_utf16_le_bom.js
102 # Service workers fixtures which require specific resource caching.
103 dom/base/test/file_js_cache.js
104 dom/serviceworkers/test/file_js_cache.js
106 # Intentional broken files
107 dom/base/test/file_js_cache_syntax_error.js
108 dom/base/test/jsmodules/test_syntaxError.html
109 dom/base/test/jsmodules/test_syntaxErrorAsync.html
110 dom/base/test/jsmodules/module_badSyntax.js
111 dom/base/test/jsmodules/test_syntaxErrorInline.html
112 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
113 dom/base/test/test_bug687859.html
114 dom/media/webrtc/tests/mochitests/identity/idp-bad.js
115 dom/serviceworkers/test/file_js_cache_syntax_error.js
116 dom/serviceworkers/test/parse_error_worker.js
117 dom/tests/mochitest/bugs/test_bug531176.html
118 dom/webauthn/tests/cbor.js
119 dom/workers/test/importScripts_worker_imported3.js
120 dom/workers/test/invalid.js
121 dom/workers/test/threadErrors_worker1.js
123 # Bug 1527075: This directory is linted in github repository
126 # Exclude everything but self-hosted JS
136 # Fuzzing code for testing only, targeting the JS shell
139 # Uses `#filter substitution`
140 mobile/android/app/mobile.js
141 mobile/android/app/geckoview-prefs.js
143 # Not much JS to lint and non-standard at that
144 mobile/android/installer/
145 mobile/android/locales/
147 # Pre-processed/pref files
148 modules/libpref/greprefs.js
149 modules/libpref/init/all.js
150 modules/libpref/test/unit/*data/
152 # Only contains non-standard test files.
155 # These are (mainly) imported code that we don't want to lint to make imports easier.
156 remote/cdp/Protocol.jsm
157 remote/cdp/test/browser/chrome-remote-interface.js
159 # services/ exclusions
161 # Third party services
162 services/common/kinto-http-client.js
163 services/common/kinto-offline-client.js
165 # Webpack-bundled library
166 services/fxaccounts/FxAccountsPairingChannel.js
171 # Test files that we don't want to lint (preprocessed, minified etc)
172 testing/condprofile/condprof/tests/profile
173 testing/marionette/atom.js
174 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
175 testing/talos/talos/scripts/jszip.min.js
176 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
177 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
178 testing/talos/talos/tests/devtools/addon/content/pages/
179 # Runing Talos may extract data here, see bug 1435677.
180 testing/talos/talos/tests/tp5n/
181 testing/talos/talos/fis/tp5n/
183 # Mainly third-party related code, that shouldn't be linted.
184 testing/web-platform/
186 # toolkit/ exclusions
188 # Ignore generated code from wasm-bindgen
189 toolkit/components/extensions/profiler_get_symbols.js
191 # Intentionally invalid JS
192 toolkit/components/workerloader/tests/moduleF-syntax-error.js
195 toolkit/components/pdfjs/content/build
196 toolkit/components/pdfjs/content/web
199 toolkit/components/reader/Readability.js
200 toolkit/components/reader/Readability-readerable.js
201 toolkit/components/reader/JSDOMParser.js
204 toolkit/components/reader/Readerable.jsm
207 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
208 toolkit/modules/AppConstants.jsm
210 # Tests old non-star function generators
211 toolkit/modules/tests/xpcshell/test_task.js
213 # Uses special template formatting.
214 tools/tryselect/selectors/chooser/templates/chooser.html
216 # Ignore preprocessed *(P)refs.js files in update-packaging.
217 tools/update-packaging/**/*refs.js
219 # Ignore backgroundtasks preferences files.
220 toolkit/components/backgroundtasks/defaults