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.
10 # Exclude expected objdirs.
13 # We ignore all these directories by default, until we get them enabled.
14 # If you are enabling a directory, please add directory specific exclusions
19 extensions/spellcheck/**
20 extensions/universalchardet/**
24 gfx/tests/mochitest/**
28 memory/replace/dmd/test/**
30 netwerk/base/NetUtil.jsm
31 netwerk/cookie/test/browser/**
32 netwerk/cookie/test/unit/**
35 netwerk/test/browser/**
36 netwerk/test/httpserver/**
37 netwerk/test/mochitests/**
42 tools/update-packaging/**
43 uriloader/exthandler/**
44 uriloader/exthandler/tests/mochitest/**
45 widget/headless/tests/**
48 # We currently have no js files in these directories, so we ignore them by
49 # default to aid ESLint's performance.
64 # These directories only contain crashtests, but we still skip the whole
65 # directory to aid performance.
70 browser/branding/**/firefox-branding.js
72 browser/base/content/test/general/gZipOfflineChild.html
73 browser/base/content/test/urlbar/file_blank_but_not_blank.html
74 # New tab is likely to be replaced soon.
75 browser/base/content/newtab/**
76 # Test files that are really json not js, and don't need to be linted.
77 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
78 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
79 # This file is split into two in order to keep it as a valid json file
80 # for documentation purposes (policies.json) but to be accessed by the
81 # code as a .jsm (schema.jsm)
82 browser/components/enterprisepolicies/schemas/schema.jsm
83 # generated & special files in cld2
84 browser/components/translation/cld2/**
85 # Screenshots and Follow-on search are imported as a system add-on and have
86 # their own lint rules currently.
87 browser/extensions/followonsearch/**
88 browser/extensions/screenshots/**
89 browser/extensions/pdfjs/content/build**
90 browser/extensions/pdfjs/content/web**
91 # generated or library files in pocket
92 browser/extensions/pocket/content/panels/js/tmpl.js
93 browser/extensions/pocket/content/panels/js/vendor/**
94 # generated or library files in activity-stream
95 browser/extensions/activity-stream/data/content/activity-stream.bundle.js
96 browser/extensions/activity-stream/test/**
97 browser/extensions/activity-stream/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/canvasdebugger/**
107 devtools/client/commandline/**
108 devtools/client/debugger/**
109 devtools/client/framework/**
110 !devtools/client/framework/devtools.js
111 !devtools/client/framework/devtools-browser.js
112 !devtools/client/framework/selection.js
113 !devtools/client/framework/target*
114 !devtools/client/framework/toolbox*
115 devtools/client/inspector/markup/test/doc_markup_events_*.html
116 devtools/client/inspector/rules/test/doc_media_queries.html
117 devtools/client/memory/test/chrome/*.html
118 devtools/client/performance/components/test/test_jit_optimizations_01.html
119 devtools/client/projecteditor/**
120 devtools/client/responsive.html/test/browser/touch.html
121 devtools/client/scratchpad/**
122 devtools/client/shadereditor/**
123 devtools/client/shared/*.jsm
124 devtools/client/shared/components/reps/reps.js
125 devtools/client/shared/components/reps/test/mochitest/*.html
126 !devtools/client/shared/components/reps/test/mochitest/test_reps_infinity.html
127 !devtools/client/shared/components/reps/test/mochitest/test_reps_nan.html
128 !devtools/client/shared/components/reps/test/mochitest/test_reps_promise.html
129 !devtools/client/shared/components/reps/test/mochitest/test_reps_symbol.html
130 !devtools/client/shared/components/reps/test/mochitest/test_reps_text-node.html
131 devtools/client/shared/components/test/mochitest/*.html
132 !devtools/client/shared/components/test/mochitest/test_stack-trace.html
133 devtools/client/shared/shim/test/test_*.html
134 devtools/client/shared/test/browser_toolbar_webconsole_errors_count.html
135 devtools/client/shared/webgl-utils.js
136 devtools/client/shared/widgets/*.jsm
137 devtools/client/storage/test/*.html
138 !devtools/client/storage/test/storage-cookies.html
139 !devtools/client/storage/test/storage-overflow.html
140 !devtools/client/storage/test/storage-search.html
141 !devtools/client/storage/test/storage-unsecured-iframe.html
142 !devtools/client/storage/test/storage-unsecured-iframe-usercontextid.html
143 devtools/client/webaudioeditor/**
144 devtools/client/webconsole/net/**
145 !devtools/client/webconsole/new-console-output/test/mochitest/**
146 devtools/client/webconsole/test/**
147 devtools/client/webconsole/webconsole-connection-proxy.js
148 devtools/client/webconsole/webconsole.js
149 devtools/client/webide/**
150 !devtools/client/webide/components/webideCli.js
151 devtools/server/tests/browser/storage-*.html
152 !devtools/server/tests/browser/storage-unsecured-iframe.html
153 devtools/server/tests/browser/stylesheets-nested-iframes.html
154 devtools/server/tests/unit/xpcshell_debugging_script.js
155 devtools/client/shared/webpack/shims/test/test_clipboard.html
156 devtools/shared/qrcode/tests/mochitest/test_decode.html
157 devtools/shared/tests/mochitest/*.html
158 devtools/shared/webconsole/test/test_*.html
160 # Ignore devtools preferences files
161 devtools/client/preferences/**
162 devtools/shim/devtools-startup-prefs.js
164 # Ignore devtools third-party libs
165 devtools/shared/jsbeautify/*
166 devtools/shared/acorn/*
167 devtools/shared/gcli/source/*
168 devtools/shared/node-properties/*
169 devtools/shared/pretty-fast/*
170 devtools/shared/sourcemap/*
171 devtools/shared/sprintfjs/*
172 devtools/shared/qrcode/decoder/*
173 devtools/shared/qrcode/encoder/*
174 devtools/client/shared/demangle.js
175 devtools/client/shared/source-map/*
176 devtools/client/shared/vendor/*
177 devtools/client/sourceeditor/codemirror/*.js
178 devtools/client/sourceeditor/codemirror/**/*.js
179 devtools/client/sourceeditor/tern/*
180 devtools/client/sourceeditor/test/cm_mode_ruby.js
181 devtools/client/sourceeditor/test/codemirror/*
182 devtools/client/inspector/markup/test/lib_*
183 devtools/client/jsonview/lib/require.js
184 devtools/server/actors/utils/automation-timeline.js
186 # Ignore devtools files testing sourcemaps / code style
187 devtools/client/debugger/test/mochitest/code_binary_search.js
188 devtools/client/debugger/test/mochitest/code_binary_search_absolute.js
189 devtools/client/debugger/test/mochitest/code_math.min.js
190 devtools/client/debugger/test/mochitest/code_math_bogus_map.js
191 devtools/client/debugger/test/mochitest/code_ugly*
192 devtools/client/debugger/test/mochitest/code_worker-source-map.js
193 devtools/client/framework/test/code_ugly*
194 devtools/client/inspector/markup/test/events_bundle.js
195 devtools/client/netmonitor/test/xhr_bundle.js
196 devtools/client/webconsole/new-console-output/test/mochitest/code_bundle_nosource.js
197 devtools/client/webconsole/new-console-output/test/mochitest/code_bundle_invalidmap.js
198 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
199 devtools/server/tests/unit/setBreakpoint*
200 devtools/server/tests/unit/sourcemapped.js
211 dom/broadcastchannel/**
212 dom/browser-element/**
213 dom/cache/test/mochitest/**
214 dom/cache/test/xpcshell/**
216 dom/commandhandler/**
242 dom/messagechannel/**
245 dom/notification/Notification*.*
246 dom/notification/test/browser/**
247 dom/notification/test/unit/**
248 dom/notification/test/mochitest/**
253 dom/plugins/test/mochitest/**
254 dom/plugins/test/unit/**
256 dom/presentation/Presentation*.js
257 dom/presentation/provider/**
258 dom/presentation/tests/mochitest/**
259 dom/presentation/tests/xpcshell/**
265 dom/security/test/contentverifier/**
266 dom/security/test/cors/**
267 dom/security/test/csp/**
268 dom/security/test/general/**
269 dom/security/test/hsts/**
270 dom/security/test/mixedcontentblocker/**
271 dom/security/test/sri/**
272 dom/security/test/unit/**
273 dom/serviceworkers/**
281 dom/tests/mochitest/**
288 dom/webbrowserpersist/**
312 # Exclude everything but self-hosted JS
321 js/src/jsapi-tests/binast/**
326 media/webrtc/trunk/**
328 # mobile/android/ exclusions
329 mobile/android/tests/browser/chrome/tp5/**
331 # Uses `#filter substitution`
332 mobile/android/app/mobile.js
333 mobile/android/app/geckoview-prefs.js
336 mobile/android/chrome/content/about.js
338 # Not much JS to lint and non-standard at that
339 mobile/android/installer/
340 mobile/android/locales/
342 # Non-standard `(catch ex if ...)`
343 mobile/android/chrome/content/browser.js
344 mobile/android/components/Snippets.js
346 # Only contains non-standard test files.
349 # security/ exclusions (pref files).
350 security/manager/ssl/security-prefs.js
352 # NSS / taskcluster only.
355 # services/ exclusions
357 # Uses `#filter substitution`
358 services/sync/modules/constants.js
359 services/sync/services-sync.js
364 # Remote protocol exclusions
365 testing/marionette/test_*.js
366 testing/marionette/atom.js
367 testing/marionette/legacyaction.js
368 testing/marionette/client
369 testing/marionette/doc
370 testing/marionette/harness
372 # other testing/ exclusions
374 # third party modules
375 testing/modules/ajv-4.1.1.js
376 testing/modules/sinon-2.3.2.js
377 # octothorpe used for pref file comment causes parsing error
378 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
379 testing/talos/talos/scripts/jszip.min.js
380 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
381 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
382 testing/talos/talos/tests/canvasmark/**
383 testing/talos/talos/tests/dromaeo/**
384 testing/talos/talos/tests/v8_7/**
385 testing/talos/talos/tests/kraken/**
386 # Runing Talos may extract data here, see bug 1435677.
387 testing/talos/talos/tests/tp5n/**
389 testing/web-platform/**
390 testing/xpcshell/moz-http2/**
391 testing/xpcshell/node-http2/**
393 # Third party services
394 services/common/kinto-http-client.js
395 services/common/kinto-offline-client.js
397 # toolkit/ exclusions
399 # Not part of the default build
400 toolkit/components/help/**
402 # Intentionally invalid JS
403 toolkit/components/workerloader/tests/moduleF-syntax-error.js
405 # Tests old non-star function generators
406 toolkit/modules/tests/xpcshell/test_task.js
409 toolkit/components/microformats/test/**
410 toolkit/components/microformats/microformat-shiv.js
411 toolkit/components/reader/Readability.js
412 toolkit/components/reader/JSDOMParser.js
413 toolkit/components/payments/res/vendor/*
416 toolkit/content/widgets/wizard.xml
417 toolkit/components/osfile/osfile.jsm
418 toolkit/components/urlformatter/nsURLFormatter.js
419 toolkit/modules/AppConstants.jsm
420 toolkit/mozapps/downloads/nsHelperAppDlg.js
421 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
424 toolkit/modules/third_party/**