1 # Always ignore node_modules.
4 # Always ignore crashtests - specially crafted files that originally caused a
7 # Also ignore reftest - specially crafted to produce expected output.
11 # Exclude expected objdirs.
14 # dom/ exclusions which should be removed (aka ESLint enabled)
16 !dom/media/test/marionette/yttest/*.js
19 # build/ third-party code
24 browser/branding/**/firefox-branding.js
26 browser/base/content/test/general/gZipOfflineChild.html
27 browser/base/content/test/urlbar/file_blank_but_not_blank.html
29 browser/components/payments/res/vendor/
30 # Test files that are really json not js, and don't need to be linted.
31 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
32 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
33 # This file is split into two in order to keep it as a valid json file
34 # for documentation purposes (policies.json) but to be accessed by the
35 # code as a .jsm (schema.jsm)
36 browser/components/enterprisepolicies/schemas/schema.jsm
37 # generated & special files in cld2
38 browser/components/translation/cld2/
39 # Screenshots is imported as a system add-on and has
40 # their own lint rules currently.
41 browser/extensions/screenshots/
42 browser/extensions/pdfjs/content/build
43 browser/extensions/pdfjs/content/web
44 # generated or library files in pocket
45 browser/components/pocket/content/panels/js/tmpl.js
46 browser/components/pocket/content/panels/js/vendor/
49 # Kept in sync with browser/components/newtab/.eslintignore
50 browser/components/newtab/data/
51 browser/components/newtab/logs/
52 browser/components/newtab/vendor/
54 # The only file in browser/locales/ is pre-processed.
56 # imported from chromium
57 browser/extensions/mortar/
58 # Generated data files
59 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
61 # devtools/ exclusions
62 devtools/client/inspector/markup/test/doc_markup_events_*.html
63 devtools/client/inspector/rules/test/doc_media_queries.html
64 devtools/client/performance/components/test/test_jit_optimizations_01.html
65 devtools/client/responsive.html/test/browser/touch.html
66 devtools/client/shared/test/*.html
67 devtools/client/shared/test/code_*.js
68 devtools/client/shared/components/test/mochitest/*.html
69 !devtools/client/shared/components/test/mochitest/test_stack-trace.html
70 devtools/client/storage/test/*.html
71 !devtools/client/storage/test/storage-cookies.html
72 !devtools/client/storage/test/storage-overflow.html
73 !devtools/client/storage/test/storage-search.html
74 !devtools/client/storage/test/storage-unsecured-iframe.html
75 !devtools/client/storage/test/storage-unsecured-iframe-usercontextid.html
76 devtools/server/tests/browser/storage-*.html
77 !devtools/server/tests/browser/storage-unsecured-iframe.html
78 devtools/server/tests/browser/stylesheets-nested-iframes.html
79 devtools/client/shared/webpack/shims/test/test_clipboard.html
80 devtools/shared/qrcode/tests/mochitest/test_decode.html
81 devtools/shared/tests/mochitest/*.html
82 devtools/shared/webconsole/test/test_*.html
83 devtools/client/webreplay/mochitest/examples/*.html
84 devtools/server/tests/mochitest/test_inspector-inactive-property-helper.html
86 # Ignore devtools debugger files
87 # Keep in sync with devtools/client/debugger/.eslintignore
88 devtools/client/debugger/assets/*
89 devtools/client/debugger/src/test/examples/
90 devtools/client/debugger/src/test/integration/
91 devtools/client/debugger/src/test/unit-sources/
92 devtools/client/debugger/src/**/fixtures/
93 devtools/client/debugger/src/test/mochitest/
94 devtools/client/debugger/bin/
95 devtools/client/debugger/packages/**/fixtures/
96 devtools/client/debugger/node_modules
97 devtools/client/debugger/out
99 # Ignore devtools debugger files which aren't intended for linting, and also
100 # aren't included in any .eslintignore or .prettierignore file.
101 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
102 devtools/client/debugger/configs/
103 devtools/client/debugger/dist/
104 devtools/client/debugger/flow-typed/
105 devtools/client/debugger/images/
106 devtools/client/debugger/test/
107 devtools/client/debugger/index.html
109 # Ignore devtools imported repositories
110 devtools/client/shared/components/reps/
112 # Ignore devtools preferences files
113 devtools/client/preferences/
114 devtools/client/webide/preferences/
115 devtools/shared/preferences/
116 devtools/startup/preferences/devtools-startup.js
118 # Ignore devtools generated code
119 devtools/shared/css/generated/properties-db.js
120 devtools/client/webconsole/test/node/fixtures/stubs/*.js
121 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
123 # Ignore devtools third-party libs
124 devtools/shared/jsbeautify/
125 devtools/shared/acorn/
126 devtools/shared/node-properties/
127 devtools/shared/pretty-fast/
128 devtools/shared/sourcemap/
129 devtools/shared/sprintfjs/
130 devtools/shared/qrcode/decoder/
131 devtools/shared/qrcode/encoder/
132 devtools/client/inspector/markup/test/lib_*
133 devtools/client/jsonview/lib/require.js
134 devtools/client/shared/demangle.js
135 devtools/client/shared/source-map/
136 devtools/client/shared/vendor/
137 devtools/client/shared/sourceeditor/codemirror/*.js
138 devtools/client/shared/sourceeditor/codemirror/**/*.js
139 devtools/client/shared/sourceeditor/tern/
140 devtools/client/shared/sourceeditor/test/cm_mode_ruby.js
141 devtools/client/shared/sourceeditor/test/codemirror/
142 devtools/server/actors/utils/automation-timeline.js
144 # Ignore devtools files testing sourcemaps / code style
145 devtools/client/debugger/test/mochitest/code_*.js
146 devtools/client/framework/test/code_*
147 devtools/client/inspector/markup/test/events_bundle.js
148 devtools/client/netmonitor/test/xhr_bundle.js
149 devtools/client/webconsole/test/browser/code_bundle_nosource.js
150 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
151 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
152 devtools/server/tests/unit/setBreakpoint*
153 devtools/server/tests/unit/sourcemapped.js
155 # devtools specific format test file
156 devtools/server/tests/unit/xpcshell_debugging_script.js
159 dom/canvas/test/webgl-conf/
161 dom/media/webaudio/test/blink/
163 dom/svg/test/test_nonAnimStrings.xhtml
164 dom/svg/test/test_SVG_namespace_ids.html
167 dom/base/test/file_bug687859-16.js
168 dom/encoding/test/test_utf16_files.html
169 dom/encoding/test/file_utf16_be_bom.js
170 dom/encoding/test/file_utf16_le_bom.js
173 dom/tests/mochitest/general/test_focusrings.xul
174 dom/html/test/test_bug677658.html
176 # Service workers fixtures which require specific resource caching.
177 dom/base/test/file_js_cache.js
178 dom/serviceworkers/test/file_js_cache.js
180 # Intentional broken files
181 dom/base/test/file_js_cache_syntax_error.js
182 dom/base/test/jsmodules/test_syntaxError.html
183 dom/base/test/jsmodules/test_syntaxErrorAsync.html
184 dom/base/test/jsmodules/module_badSyntax.js
185 dom/base/test/jsmodules/test_syntaxErrorInline.html
186 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
187 dom/base/test/test_bug687859.html
188 dom/media/tests/mochitest/identity/idp-bad.js
189 dom/serviceworkers/test/file_js_cache_syntax_error.js
190 dom/serviceworkers/test/parse_error_worker.js
191 dom/tests/mochitest/bugs/test_bug531176.html
192 dom/webauthn/tests/cbor.js
193 dom/workers/test/importScripts_worker_imported3.js
194 dom/workers/test/invalid.js
195 dom/workers/test/threadErrors_worker1.js
198 editor/libeditor/tests/browserscope/
210 # Bug 1527075: This directory is linted in github repository
214 layout/mathml/imptests/
216 # Exclude everything but self-hosted JS
225 js/src/jsapi-tests/binast/
232 # mobile/android/ exclusions
233 mobile/android/tests/browser/chrome/tp5/
235 # Uses `#filter substitution`
236 mobile/android/app/mobile.js
237 mobile/android/app/geckoview-prefs.js
240 mobile/android/chrome/content/about.js
242 # Not much JS to lint and non-standard at that
243 mobile/android/installer/
244 mobile/android/locales/
246 # Pre-processed/pref files
247 modules/libpref/greprefs.js
248 modules/libpref/init/all.js
249 modules/libpref/test/unit/*data/
251 # Only contains non-standard test files.
256 remote/server/HTTPD.jsm
257 remote/server/Packet.jsm
258 remote/server/Socket.jsm
259 remote/server/Stream.jsm
260 remote/test/browser/chrome-remote-interface.js
262 remote/test/puppeteer/
264 # NSS / taskcluster only.
267 # services/ exclusions
269 # Third party services
270 services/common/kinto-http-client.js
271 services/common/kinto-offline-client.js
273 # Webpack-bundled library
274 services/fxaccounts/FxAccountsPairingChannel.js
276 # Uses `#filter substitution`
277 services/sync/modules/constants.js
282 # Remote protocol exclusions
283 testing/marionette/atom.js
284 testing/marionette/legacyaction.js
285 testing/marionette/client
286 testing/marionette/doc
287 testing/marionette/harness
289 # other testing/ exclusions
290 # third party modules
291 testing/mochitest/tests/Harness_sanity/
292 testing/mochitest/MochiKit/
293 testing/mochitest/tests/MochiKit-1.4.2/
294 testing/mochitest/tests/SimpleTest/
295 testing/modules/ajv-4.1.1.js
296 testing/modules/sinon-7.2.7.js
297 # octothorpe used for pref file comment causes parsing error
298 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
300 # Mozproxy third party
301 testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/catapult/
303 testing/talos/talos/scripts/jszip.min.js
304 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
305 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
306 testing/talos/talos/tests/devtools/addon/content/pages/
307 testing/talos/talos/tests/dromaeo/
308 testing/talos/talos/tests/v8_7/
309 testing/talos/talos/tests/kraken/
310 # Runing Talos may extract data here, see bug 1435677.
311 testing/talos/talos/tests/tp5n/
313 testing/web-platform/
314 testing/xpcshell/moz-http2/
315 testing/xpcshell/node-http2/
316 testing/xpcshell/dns-packet/
317 testing/xpcshell/node-ip/
323 # toolkit/ exclusions
325 # Ignore generated code from wasm-bindgen
326 toolkit/components/extensions/profiler_get_symbols.js
328 # Intentionally invalid JS
329 toolkit/components/workerloader/tests/moduleF-syntax-error.js
332 toolkit/components/reader/Readability.js
333 toolkit/components/reader/JSDOMParser.js
336 toolkit/components/reader/Readerable.jsm
339 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
340 toolkit/modules/AppConstants.jsm
342 # Tests old non-star function generators
343 toolkit/modules/tests/xpcshell/test_task.js
346 toolkit/modules/third_party/
348 tools/tryselect/selectors/chooser/templates/chooser.html
350 # Ignore preprocessed *(P)refs.js files in update-packaging.
351 tools/update-packaging/**/*refs.js