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 # We ignore all these directories by default, until we get them enabled.
15 # If you are enabling a directory, please add directory specific exclusions
17 docshell/test/browser/**
18 docshell/test/iframesandbox/**
19 docshell/test/mochitest/**
21 extensions/spellcheck/**
22 extensions/universalchardet/**
26 netwerk/cookie/test/browser/**
27 netwerk/test/browser/**
28 netwerk/test/mochitests/**
30 tools/update-packaging/**
31 uriloader/exthandler/**
32 uriloader/exthandler/tests/mochitest/**
33 widget/headless/tests/**
37 # We currently have no js files in these directories, so we ignore them by
38 # default to aid ESLint's performance.
51 # These directories only contain crashtests, but we still skip the whole
52 # directory to aid performance.
57 browser/branding/**/firefox-branding.js
59 browser/base/content/test/general/gZipOfflineChild.html
60 browser/base/content/test/urlbar/file_blank_but_not_blank.html
61 # Test files that are really json not js, and don't need to be linted.
62 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
63 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
64 # This file is split into two in order to keep it as a valid json file
65 # for documentation purposes (policies.json) but to be accessed by the
66 # code as a .jsm (schema.jsm)
67 browser/components/enterprisepolicies/schemas/schema.jsm
68 # generated & special files in cld2
69 browser/components/translation/cld2/**
70 # Screenshots is imported as a system add-on and has
71 # their own lint rules currently.
72 browser/extensions/screenshots/**
73 browser/extensions/pdfjs/content/build**
74 browser/extensions/pdfjs/content/web**
75 # generated or library files in pocket
76 browser/components/pocket/content/panels/js/tmpl.js
77 browser/components/pocket/content/panels/js/vendor/**
78 # Activity Stream has incompatible eslintrc. `npm run lint` from its directory
79 browser/components/newtab/**
80 # The only file in browser/locales/ is pre-processed.
82 # imported from chromium
83 browser/extensions/mortar/**
84 # Generated data files
85 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
87 # devtools/ exclusions
88 devtools/client/inspector/markup/test/doc_markup_events_*.html
89 devtools/client/inspector/rules/test/doc_media_queries.html
90 devtools/client/performance/components/test/test_jit_optimizations_01.html
91 devtools/client/responsive.html/test/browser/touch.html
92 devtools/client/shared/test/*.html
93 devtools/client/shared/test/code_*.js
94 devtools/client/shared/components/test/mochitest/*.html
95 !devtools/client/shared/components/test/mochitest/test_stack-trace.html
96 devtools/client/storage/test/*.html
97 !devtools/client/storage/test/storage-cookies.html
98 !devtools/client/storage/test/storage-overflow.html
99 !devtools/client/storage/test/storage-search.html
100 !devtools/client/storage/test/storage-unsecured-iframe.html
101 !devtools/client/storage/test/storage-unsecured-iframe-usercontextid.html
102 devtools/server/tests/browser/storage-*.html
103 !devtools/server/tests/browser/storage-unsecured-iframe.html
104 devtools/server/tests/browser/stylesheets-nested-iframes.html
105 devtools/client/shared/webpack/shims/test/test_clipboard.html
106 devtools/shared/qrcode/tests/mochitest/test_decode.html
107 devtools/shared/tests/mochitest/*.html
108 devtools/shared/webconsole/test/test_*.html
110 # Soon to be removed, the new/ directory is explicitly excluded below due to
111 # also being an imported repository.
112 devtools/client/debugger/**
114 # Ignore devtools imported repositories
115 devtools/client/debugger/new/**
116 devtools/client/shared/components/reps/**
118 # Ignore devtools preferences files
119 devtools/client/preferences/**
120 devtools/client/webide/preferences/**
121 devtools/shared/preferences/**
122 devtools/startup/preferences/devtools-startup.js
124 # Ignore devtools generated code
125 devtools/shared/css/generated/properties-db.js
126 devtools/client/webconsole/test/fixtures/stubs/*.js
127 !devtools/client/webconsole/test/fixtures/stubs/index.js
129 # Ignore devtools third-party libs
130 devtools/shared/jsbeautify/*
131 devtools/shared/acorn/*
132 devtools/shared/node-properties/*
133 devtools/shared/pretty-fast/*
134 devtools/shared/sourcemap/*
135 devtools/shared/sprintfjs/*
136 devtools/shared/qrcode/decoder/*
137 devtools/shared/qrcode/encoder/*
138 devtools/client/inspector/markup/test/lib_*
139 devtools/client/jsonview/lib/require.js
140 devtools/client/shared/demangle.js
141 devtools/client/shared/source-map/*
142 devtools/client/shared/vendor/*
143 devtools/client/sourceeditor/codemirror/*.js
144 devtools/client/sourceeditor/codemirror/**/*.js
145 devtools/client/sourceeditor/tern/*
146 devtools/client/sourceeditor/test/cm_mode_ruby.js
147 devtools/client/sourceeditor/test/codemirror/*
148 devtools/server/actors/utils/automation-timeline.js
150 # Ignore devtools files testing sourcemaps / code style
151 devtools/client/debugger/test/mochitest/code_*.js
152 devtools/client/framework/test/code_*
153 devtools/client/inspector/markup/test/events_bundle.js
154 devtools/client/netmonitor/test/xhr_bundle.js
155 devtools/client/webconsole/test/mochitest/code_bundle_nosource.js
156 devtools/client/webconsole/test/mochitest/code_bundle_invalidmap.js
157 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
158 devtools/server/tests/unit/setBreakpoint*
159 devtools/server/tests/unit/sourcemapped.js
161 # devtools specific format test file
162 devtools/server/tests/unit/xpcshell_debugging_script.js
168 dom/base/test/unit/test_serializers_entities*.js
169 dom/base/test/unit_ipc/**
170 dom/base/test/jsmodules/**
172 dom/browser-element/**
173 dom/cache/test/mochitest/**
174 dom/cache/test/xpcshell/**
186 dom/media/webaudio/**
187 dom/media/webspeech/**
188 dom/messagechannel/**
191 dom/notification/Notification*.*
192 dom/notification/test/browser/**
193 dom/notification/test/mochitest/**
197 dom/plugins/test/mochitest/**
198 dom/plugins/test/unit/**
202 dom/security/test/cors/**
203 dom/security/test/csp/**
204 dom/security/test/general/**
205 dom/security/test/mixedcontentblocker/**
206 dom/security/test/sri/**
207 dom/serviceworkers/**
213 dom/tests/mochitest/**
230 dom/canvas/test/webgl-conf/**
232 dom/media/webaudio/test/blink/**
236 editor/libeditor/tests/browserscope/**
250 layout/mathml/imptests/**
252 # Exclude everything but self-hosted JS
261 js/src/jsapi-tests/binast/**
266 media/webrtc/trunk/**
268 # mobile/android/ exclusions
269 mobile/android/tests/browser/chrome/tp5/**
271 # Uses `#filter substitution`
272 mobile/android/app/mobile.js
273 mobile/android/app/geckoview-prefs.js
276 mobile/android/chrome/content/about.js
278 # Not much JS to lint and non-standard at that
279 mobile/android/installer/
280 mobile/android/locales/
282 # Non-standard `(catch ex if ...)`
283 mobile/android/chrome/content/browser.js
285 # Pre-processed/pref files
286 modules/libpref/greprefs.js
287 modules/libpref/init/all.js
288 modules/libpref/test/unit/*data/**
290 # Only contains non-standard test files.
293 # security/ exclusions (pref files).
294 security/manager/ssl/security-prefs.js
296 # NSS / taskcluster only.
299 # services/ exclusions
301 # Uses `#filter substitution`
302 services/sync/modules/constants.js
303 services/sync/services-sync.js
308 # Remote protocol exclusions
309 testing/marionette/atom.js
310 testing/marionette/legacyaction.js
311 testing/marionette/client
312 testing/marionette/doc
313 testing/marionette/harness
315 # other testing/ exclusions
316 # third party modules
317 testing/mochitest/tests/Harness_sanity/**
318 testing/mochitest/MochiKit/**
319 testing/mochitest/tests/MochiKit-1.4.2/**
320 testing/mochitest/tests/SimpleTest/**
321 testing/modules/ajv-4.1.1.js
322 testing/modules/sinon-2.3.2.js
323 # octothorpe used for pref file comment causes parsing error
324 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
325 testing/talos/talos/scripts/jszip.min.js
326 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
327 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
328 testing/talos/talos/tests/devtools/addon/content/pages/**
329 testing/talos/talos/tests/dromaeo/**
330 testing/talos/talos/tests/v8_7/**
331 testing/talos/talos/tests/kraken/**
332 # Runing Talos may extract data here, see bug 1435677.
333 testing/talos/talos/tests/tp5n/**
335 testing/web-platform/**
336 testing/xpcshell/moz-http2/**
337 testing/xpcshell/node-http2/**
339 # Third party services
340 services/common/kinto-http-client.js
341 services/common/kinto-offline-client.js
343 # toolkit/ exclusions
345 # Intentionally invalid JS
346 toolkit/components/workerloader/tests/moduleF-syntax-error.js
348 # Tests old non-star function generators
349 toolkit/modules/tests/xpcshell/test_task.js
352 browser/components/payments/res/vendor/*
353 toolkit/components/reader/Readability.js
354 toolkit/components/reader/JSDOMParser.js
357 toolkit/components/reader/Readerable.jsm
358 toolkit/content/widgets/wizard.xml
359 toolkit/modules/AppConstants.jsm
360 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
363 toolkit/modules/third_party/**