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 # build/ third-party code
19 browser/branding/**/firefox-branding.js
21 browser/base/content/test/general/gZipOfflineChild.html
22 browser/base/content/test/urlbar/file_blank_but_not_blank.html
24 browser/components/payments/res/vendor/
25 # Test files that are really json not js, and don't need to be linted.
26 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
27 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
28 # This file is split into two in order to keep it as a valid json file
29 # for documentation purposes (policies.json) but to be accessed by the
30 # code as a .jsm (schema.jsm)
31 browser/components/enterprisepolicies/schemas/schema.jsm
32 # generated & special files in cld2
33 browser/components/translation/cld2/
34 # Screenshots is imported as a system add-on and has
35 # their own lint rules currently.
36 browser/extensions/screenshots/
37 browser/extensions/pdfjs/content/build
38 browser/extensions/pdfjs/content/web
39 # generated or library files in pocket
40 browser/components/pocket/content/panels/js/tmpl.js
41 browser/components/pocket/content/panels/js/vendor/
44 # Kept in sync with browser/components/newtab/.eslintignore
45 browser/components/newtab/data/
46 browser/components/newtab/logs/
47 browser/components/newtab/vendor/
49 # The only file in browser/locales/ is pre-processed.
51 # imported from chromium
52 browser/extensions/mortar/
53 # Generated data files
54 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
56 # devtools/ exclusions
57 devtools/client/inspector/markup/test/doc_markup_events_*.html
58 devtools/client/performance/components/test/test_jit_optimizations_01.html
59 devtools/server/tests/browser/storage-*.html
60 !devtools/server/tests/browser/storage-unsecured-iframe.html
61 devtools/server/tests/browser/stylesheets-nested-iframes.html
62 devtools/client/webreplay/mochitest/examples/*.html
64 # Ignore devtools debugger files
65 # Keep in sync with devtools/client/debugger/.eslintignore
66 devtools/client/debugger/assets/*
67 devtools/client/debugger/src/test/examples/
68 devtools/client/debugger/src/test/integration/
69 devtools/client/debugger/src/test/unit-sources/
70 devtools/client/debugger/src/**/fixtures/
71 devtools/client/debugger/src/test/mochitest/
72 devtools/client/debugger/bin/
73 devtools/client/debugger/packages/**/fixtures/
74 devtools/client/debugger/node_modules
75 devtools/client/debugger/out
76 devtools/client/webreplay/mochitest/examples/
78 # Ignore devtools debugger files which aren't intended for linting, and also
79 # aren't included in any .eslintignore or .prettierignore file.
80 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
81 devtools/client/debugger/configs/
82 devtools/client/debugger/dist/
83 devtools/client/debugger/flow-typed/
84 devtools/client/debugger/images/
85 devtools/client/debugger/test/
86 devtools/client/debugger/index.html
88 # Ignore devtools imported repositories
89 devtools/client/shared/components/reps/
91 # Ignore devtools preferences files
92 devtools/client/preferences/
94 # Ignore devtools generated code
95 devtools/shared/css/generated/properties-db.js
96 devtools/client/webconsole/test/node/fixtures/stubs/*.js
97 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
99 # Ignore devtools third-party libs
100 devtools/shared/jsbeautify/
101 devtools/shared/acorn/
102 devtools/shared/node-properties/
103 devtools/shared/pretty-fast/
104 devtools/shared/sourcemap/
105 devtools/shared/sprintfjs/
106 devtools/shared/storage/vendor/*
107 devtools/shared/qrcode/decoder/
108 devtools/shared/qrcode/encoder/
109 devtools/client/inspector/markup/test/lib_*
110 devtools/client/jsonview/lib/require.js
111 devtools/client/shared/demangle.js
112 devtools/client/shared/source-map/
113 devtools/client/shared/vendor/
114 devtools/client/shared/sourceeditor/codemirror/*.js
115 devtools/client/shared/sourceeditor/codemirror/**/*.js
116 devtools/client/shared/sourceeditor/test/cm_mode_ruby.js
117 devtools/client/shared/sourceeditor/test/codemirror/
118 devtools/server/actors/utils/automation-timeline.js
120 # Ignore devtools files testing sourcemaps / code style
121 devtools/client/debugger/test/mochitest/code_*.js
122 devtools/client/framework/test/code_*
123 devtools/client/inspector/markup/test/events_bundle.js
124 devtools/client/netmonitor/test/xhr_bundle.js
125 devtools/client/webconsole/test/browser/code_bundle_nosource.js
126 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
127 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
128 devtools/server/tests/unit/setBreakpoint*
129 devtools/server/tests/unit/sourcemapped.js
131 # Testing syntax error
132 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
134 # devtools specific format test file
135 devtools/server/tests/unit/xpcshell_debugging_script.js
138 dom/canvas/test/webgl-conf/
140 dom/media/webaudio/test/blink/
142 dom/svg/test/test_nonAnimStrings.xhtml
143 dom/svg/test/test_SVG_namespace_ids.html
146 dom/base/test/file_bug687859-16.js
147 dom/encoding/test/test_utf16_files.html
148 dom/encoding/test/file_utf16_be_bom.js
149 dom/encoding/test/file_utf16_le_bom.js
152 dom/tests/mochitest/general/test_focusrings.xul
153 dom/html/test/test_bug677658.html
155 # Service workers fixtures which require specific resource caching.
156 dom/base/test/file_js_cache.js
157 dom/serviceworkers/test/file_js_cache.js
159 # Intentional broken files
160 dom/base/test/file_js_cache_syntax_error.js
161 dom/base/test/jsmodules/test_syntaxError.html
162 dom/base/test/jsmodules/test_syntaxErrorAsync.html
163 dom/base/test/jsmodules/module_badSyntax.js
164 dom/base/test/jsmodules/test_syntaxErrorInline.html
165 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
166 dom/base/test/test_bug687859.html
167 dom/media/tests/mochitest/identity/idp-bad.js
168 dom/serviceworkers/test/file_js_cache_syntax_error.js
169 dom/serviceworkers/test/parse_error_worker.js
170 dom/tests/mochitest/bugs/test_bug531176.html
171 dom/webauthn/tests/cbor.js
172 dom/workers/test/importScripts_worker_imported3.js
173 dom/workers/test/invalid.js
174 dom/workers/test/threadErrors_worker1.js
177 editor/libeditor/tests/browserscope/
190 # Bug 1527075: This directory is linted in github repository
194 layout/mathml/imptests/
196 # Exclude everything but self-hosted JS
205 js/src/jsapi-tests/binast/
212 # mobile/android/ exclusions
213 mobile/android/tests/browser/chrome/tp5/
215 # Uses `#filter substitution`
216 mobile/android/app/mobile.js
217 mobile/android/app/geckoview-prefs.js
219 # Not much JS to lint and non-standard at that
220 mobile/android/installer/
221 mobile/android/locales/
223 # Pre-processed/pref files
224 modules/libpref/greprefs.js
225 modules/libpref/init/all.js
226 modules/libpref/test/unit/*data/
228 # Only contains non-standard test files.
233 remote/server/HTTPD.jsm
234 remote/server/Packet.jsm
235 remote/server/Socket.jsm
236 remote/server/Stream.jsm
237 remote/test/browser/chrome-remote-interface.js
239 remote/test/puppeteer/
241 # NSS / taskcluster only.
244 # services/ exclusions
246 # Third party services
247 services/common/kinto-http-client.js
248 services/common/kinto-offline-client.js
250 # Webpack-bundled library
251 services/fxaccounts/FxAccountsPairingChannel.js
253 # Uses `#filter substitution`
254 services/sync/modules/constants.js
259 # Remote protocol exclusions
260 testing/marionette/atom.js
261 testing/marionette/legacyaction.js
262 testing/marionette/client
263 testing/marionette/doc
264 testing/marionette/harness
266 # other testing/ exclusions
267 # third party modules
268 testing/mochitest/tests/Harness_sanity/
269 testing/mochitest/MochiKit/
270 testing/mochitest/tests/MochiKit-1.4.2/
271 testing/mochitest/tests/SimpleTest/
272 testing/modules/ajv-4.1.1.js
273 testing/modules/sinon-7.2.7.js
274 # octothorpe used for pref file comment causes parsing error
275 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
277 # Mozproxy third party
278 testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/catapult/
280 testing/talos/talos/scripts/jszip.min.js
281 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
282 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
283 testing/talos/talos/tests/devtools/addon/content/pages/
284 testing/talos/talos/tests/dromaeo/
285 testing/talos/talos/tests/v8_7/
286 testing/talos/talos/tests/kraken/
287 # Runing Talos may extract data here, see bug 1435677.
288 testing/talos/talos/tests/tp5n/
289 testing/talos/talos/fis/tp5n/
291 testing/web-platform/
292 testing/xpcshell/moz-http2/
293 testing/xpcshell/node-http2/
294 testing/xpcshell/dns-packet/
295 testing/xpcshell/node-ip/
301 # toolkit/ exclusions
303 # Ignore generated code from wasm-bindgen
304 toolkit/components/extensions/profiler_get_symbols.js
306 # Intentionally invalid JS
307 toolkit/components/workerloader/tests/moduleF-syntax-error.js
310 toolkit/components/reader/Readability.js
311 toolkit/components/reader/JSDOMParser.js
314 toolkit/components/reader/Readerable.jsm
317 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
318 toolkit/modules/AppConstants.jsm
320 # Tests old non-star function generators
321 toolkit/modules/tests/xpcshell/test_task.js
324 toolkit/modules/third_party/
326 tools/tryselect/selectors/chooser/templates/chooser.html
328 # Ignore preprocessed *(P)refs.js files in update-packaging.
329 tools/update-packaging/**/*refs.js