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/fixtures/stubs/*.js
121 !devtools/client/webconsole/test/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/mochitest/code_bundle_nosource.js
150 devtools/client/webconsole/test/mochitest/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/**
230 media/webrtc/trunk/**
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.
255 remote/pref/remote.js
257 remote/server/HTTPD.jsm
258 remote/server/Packet.jsm
259 remote/server/Socket.jsm
260 remote/server/Stream.jsm
261 remote/test/browser/chrome-remote-interface.js
264 # security/ exclusions (pref files).
265 security/manager/ssl/security-prefs.js
267 # NSS / taskcluster only.
270 # services/ exclusions
272 # Third party services
273 services/common/kinto-http-client.js
274 services/common/kinto-offline-client.js
276 # Webpack-bundled library
277 services/fxaccounts/FxAccountsPairingChannel.js
279 # Uses `#filter substitution`
280 services/sync/modules/constants.js
281 services/sync/services-sync.js
286 # Remote protocol exclusions
287 testing/marionette/atom.js
288 testing/marionette/legacyaction.js
289 testing/marionette/client
290 testing/marionette/doc
291 testing/marionette/harness
293 # other testing/ exclusions
294 # third party modules
295 testing/mochitest/tests/Harness_sanity/**
296 testing/mochitest/MochiKit/**
297 testing/mochitest/tests/MochiKit-1.4.2/**
298 testing/mochitest/tests/SimpleTest/**
299 testing/modules/ajv-4.1.1.js
300 testing/modules/sinon-7.2.7.js
301 # octothorpe used for pref file comment causes parsing error
302 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
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/raptor/raptor/playback/scripts/catapult/**
315 testing/web-platform/**
316 testing/xpcshell/moz-http2/**
317 testing/xpcshell/node-http2/**
318 testing/xpcshell/dns-packet/**
319 testing/xpcshell/node-ip/**
325 # toolkit/ exclusions
327 # Ignore generated code from wasm-bindgen
328 toolkit/components/extensions/profiler_get_symbols.js
330 # Intentionally invalid JS
331 toolkit/components/workerloader/tests/moduleF-syntax-error.js
334 toolkit/components/reader/Readability.js
335 toolkit/components/reader/JSDOMParser.js
338 toolkit/components/reader/Readerable.jsm
341 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
342 toolkit/modules/AppConstants.jsm
344 # Tests old non-star function generators
345 toolkit/modules/tests/xpcshell/test_task.js
348 toolkit/modules/third_party/**
350 tools/tryselect/selectors/chooser/templates/chooser.html
352 # Ignore preprocessed *(P)refs.js files in update-packaging.
353 tools/update-packaging/**/*refs.js