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)
18 dom/base/test/unit/test_serializers_entities*.js
19 dom/base/test/unit_ipc/**
20 dom/base/test/jsmodules/**
29 !dom/media/test/marionette/yttest/*.js
32 dom/media/webspeech/**
41 dom/security/test/cors/**
42 dom/security/test/csp/**
43 dom/security/test/general/**
44 dom/security/test/mixedcontentblocker/**
45 dom/security/test/sri/**
48 dom/tests/mochitest/**
62 # build/ third-party code
67 browser/branding/**/firefox-branding.js
69 browser/base/content/test/general/gZipOfflineChild.html
70 browser/base/content/test/urlbar/file_blank_but_not_blank.html
72 browser/components/payments/res/vendor/*
73 # Test files that are really json not js, and don't need to be linted.
74 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
75 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
76 # This file is split into two in order to keep it as a valid json file
77 # for documentation purposes (policies.json) but to be accessed by the
78 # code as a .jsm (schema.jsm)
79 browser/components/enterprisepolicies/schemas/schema.jsm
80 # generated & special files in cld2
81 browser/components/translation/cld2/**
82 # Screenshots is imported as a system add-on and has
83 # their own lint rules currently.
84 browser/extensions/screenshots/**
85 browser/extensions/pdfjs/content/build**
86 browser/extensions/pdfjs/content/web**
87 # generated or library files in pocket
88 browser/components/pocket/content/panels/js/tmpl.js
89 browser/components/pocket/content/panels/js/vendor/**
92 # Kept in sync with browser/components/newtab/.eslintignore
93 browser/components/newtab/data/
94 browser/components/newtab/logs/
95 browser/components/newtab/prerendered/
96 browser/components/newtab/vendor/
98 # The only file in browser/locales/ is pre-processed.
100 # imported from chromium
101 browser/extensions/mortar/**
102 # Generated data files
103 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
105 # devtools/ exclusions
106 devtools/client/inspector/markup/test/doc_markup_events_*.html
107 devtools/client/inspector/rules/test/doc_media_queries.html
108 devtools/client/performance/components/test/test_jit_optimizations_01.html
109 devtools/client/responsive.html/test/browser/touch.html
110 devtools/client/shared/test/*.html
111 devtools/client/shared/test/code_*.js
112 devtools/client/shared/components/test/mochitest/*.html
113 !devtools/client/shared/components/test/mochitest/test_stack-trace.html
114 devtools/client/storage/test/*.html
115 !devtools/client/storage/test/storage-cookies.html
116 !devtools/client/storage/test/storage-overflow.html
117 !devtools/client/storage/test/storage-search.html
118 !devtools/client/storage/test/storage-unsecured-iframe.html
119 !devtools/client/storage/test/storage-unsecured-iframe-usercontextid.html
120 devtools/server/tests/browser/storage-*.html
121 !devtools/server/tests/browser/storage-unsecured-iframe.html
122 devtools/server/tests/browser/stylesheets-nested-iframes.html
123 devtools/client/shared/webpack/shims/test/test_clipboard.html
124 devtools/shared/qrcode/tests/mochitest/test_decode.html
125 devtools/shared/tests/mochitest/*.html
126 devtools/shared/webconsole/test/test_*.html
127 devtools/client/webreplay/mochitest/examples/*.html
129 # Ignore devtools debugger files
130 # Keep in sync with devtools/client/debugger/.eslintignore
131 devtools/client/debugger/assets/*
132 devtools/client/debugger/src/test/examples/**
133 devtools/client/debugger/src/test/integration/**
134 devtools/client/debugger/src/test/unit-sources/**
135 devtools/client/debugger/src/**/fixtures/**
136 devtools/client/debugger/src/test/mochitest/**
137 devtools/client/debugger/bin/
138 devtools/client/debugger/packages/**/fixtures/**
139 devtools/client/debugger/node_modules
140 devtools/client/debugger/out
142 # Ignore devtools debugger files
143 # Keep in sync with devtools/client/debugger/.prettierignore
144 devtools/client/debugger/src/workers/parser/tests/fixtures/functionNames.js
145 devtools/client/debugger/src/workers/parser/tests/fixtures/scopes/*.js
146 devtools/client/debugger/src/workers/parser/tests/fixtures/pause/*.js
147 devtools/client/debugger/src/test/mochitest/examples/babel/polyfill-bundle.js
148 devtools/client/debugger/src/test/mochitest/examples/babel/fixtures/*/input.js
149 devtools/client/debugger/src/test/mochitest/examples/babel/fixtures/*/output.js
150 devtools/client/debugger/src/test/mochitest/examples/babel/fixtures/*/output.js.map
151 devtools/client/debugger/src/test/mochitest/examples/ember/quickstart
153 # Ignore devtools debugger files which aren't intended for linting, and also
154 # aren't included in any .eslintignore or .prettierignore file.
155 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
156 devtools/client/debugger/configs/**
157 devtools/client/debugger/dist/**
158 devtools/client/debugger/flow-typed/**
159 devtools/client/debugger/images/**
160 devtools/client/debugger/test/**
161 devtools/client/debugger/index.html
163 # Ignore devtools imported repositories
164 devtools/client/shared/components/reps/**
166 # Ignore devtools preferences files
167 devtools/client/preferences/**
168 devtools/client/webide/preferences/**
169 devtools/shared/preferences/**
170 devtools/startup/preferences/devtools-startup.js
172 # Ignore devtools generated code
173 devtools/shared/css/generated/properties-db.js
174 devtools/client/webconsole/test/fixtures/stubs/*.js
175 !devtools/client/webconsole/test/fixtures/stubs/index.js
177 # Ignore devtools third-party libs
178 devtools/shared/jsbeautify/*
179 devtools/shared/acorn/*
180 devtools/shared/node-properties/*
181 devtools/shared/pretty-fast/*
182 devtools/shared/sourcemap/*
183 devtools/shared/sprintfjs/*
184 devtools/shared/qrcode/decoder/*
185 devtools/shared/qrcode/encoder/*
186 devtools/client/inspector/markup/test/lib_*
187 devtools/client/jsonview/lib/require.js
188 devtools/client/shared/demangle.js
189 devtools/client/shared/source-map/*
190 devtools/client/shared/vendor/*
191 devtools/client/shared/sourceeditor/codemirror/*.js
192 devtools/client/shared/sourceeditor/codemirror/**/*.js
193 devtools/client/shared/sourceeditor/tern/*
194 devtools/client/shared/sourceeditor/test/cm_mode_ruby.js
195 devtools/client/shared/sourceeditor/test/codemirror/*
196 devtools/server/actors/utils/automation-timeline.js
198 # Ignore devtools files testing sourcemaps / code style
199 devtools/client/debugger/test/mochitest/code_*.js
200 devtools/client/framework/test/code_*
201 devtools/client/inspector/markup/test/events_bundle.js
202 devtools/client/netmonitor/test/xhr_bundle.js
203 devtools/client/webconsole/test/mochitest/code_bundle_nosource.js
204 devtools/client/webconsole/test/mochitest/code_bundle_invalidmap.js
205 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
206 devtools/server/tests/unit/setBreakpoint*
207 devtools/server/tests/unit/sourcemapped.js
209 # devtools specific format test file
210 devtools/server/tests/unit/xpcshell_debugging_script.js
213 dom/canvas/test/webgl-conf/**
215 dom/media/webaudio/test/blink/**
217 dom/svg/test/test_nonAnimStrings.xhtml
218 dom/svg/test/test_SVG_namespace_ids.html
221 editor/libeditor/tests/browserscope/**
233 # Bug 1527075: This directory is linted in github repository
237 layout/mathml/imptests/**
239 # Exclude everything but self-hosted JS
248 js/src/jsapi-tests/binast/**
253 media/webrtc/trunk/**
255 # mobile/android/ exclusions
256 mobile/android/tests/browser/chrome/tp5/**
258 # Uses `#filter substitution`
259 mobile/android/app/mobile.js
260 mobile/android/app/geckoview-prefs.js
263 mobile/android/chrome/content/about.js
265 # Not much JS to lint and non-standard at that
266 mobile/android/installer/
267 mobile/android/locales/
269 # Pre-processed/pref files
270 modules/libpref/greprefs.js
271 modules/libpref/init/all.js
272 modules/libpref/test/unit/*data/**
274 # Only contains non-standard test files.
278 remote/pref/remote.js
280 remote/server/HTTPD.jsm
281 remote/server/Packet.jsm
282 remote/server/Socket.jsm
283 remote/server/Stream.jsm
284 remote/test/browser/chrome-remote-interface.js
287 # security/ exclusions (pref files).
288 security/manager/ssl/security-prefs.js
290 # NSS / taskcluster only.
293 # services/ exclusions
295 # Third party services
296 services/common/kinto-http-client.js
297 services/common/kinto-offline-client.js
299 # Webpack-bundled library
300 services/fxaccounts/FxAccountsPairingChannel.js
302 # Uses `#filter substitution`
303 services/sync/modules/constants.js
304 services/sync/services-sync.js
309 # Remote protocol exclusions
310 testing/marionette/atom.js
311 testing/marionette/legacyaction.js
312 testing/marionette/client
313 testing/marionette/doc
314 testing/marionette/harness
316 # other testing/ exclusions
317 # third party modules
318 testing/mochitest/tests/Harness_sanity/**
319 testing/mochitest/MochiKit/**
320 testing/mochitest/tests/MochiKit-1.4.2/**
321 testing/mochitest/tests/SimpleTest/**
322 testing/modules/ajv-4.1.1.js
323 testing/modules/sinon-7.2.7.js
324 # octothorpe used for pref file comment causes parsing error
325 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
326 testing/talos/talos/scripts/jszip.min.js
327 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
328 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
329 testing/talos/talos/tests/devtools/addon/content/pages/**
330 testing/talos/talos/tests/dromaeo/**
331 testing/talos/talos/tests/v8_7/**
332 testing/talos/talos/tests/kraken/**
333 # Runing Talos may extract data here, see bug 1435677.
334 testing/talos/talos/tests/tp5n/**
336 testing/raptor/raptor/playback/scripts/catapult/**
338 testing/web-platform/**
339 testing/xpcshell/moz-http2/**
340 testing/xpcshell/node-http2/**
341 testing/xpcshell/dns-packet/**
342 testing/xpcshell/node-ip/**
348 # toolkit/ exclusions
350 # Ignore generated code from wasm-bindgen
351 toolkit/components/extensions/profiler_get_symbols.js
353 # Intentionally invalid JS
354 toolkit/components/workerloader/tests/moduleF-syntax-error.js
357 toolkit/components/reader/Readability.js
358 toolkit/components/reader/JSDOMParser.js
361 toolkit/components/reader/Readerable.jsm
363 # Should be going away soon
364 toolkit/content/widgets/wizard.xml
367 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
368 toolkit/modules/AppConstants.jsm
370 # Tests old non-star function generators
371 toolkit/modules/tests/xpcshell/test_task.js
374 toolkit/modules/third_party/**
376 tools/tryselect/selectors/chooser/templates/chooser.html
378 # Ignore preprocessed *(P)refs.js files in update-packaging.
379 tools/update-packaging/**/*refs.js