1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 const xpcshellTestConfig = require("eslint-plugin-mozilla/lib/configs/xpcshell-test.js");
8 const browserTestConfig = require("eslint-plugin-mozilla/lib/configs/browser-test.js");
9 const mochitestTestConfig = require("eslint-plugin-mozilla/lib/configs/mochitest-test.js");
10 const chromeTestConfig = require("eslint-plugin-mozilla/lib/configs/chrome-test.js");
11 const fs = require("fs");
12 const path = require("path");
15 * Some configurations have overrides, which can't be specified within overrides,
16 * so we need to remove them.
18 function removeOverrides(config) {
19 config = { ...config };
20 delete config.overrides;
24 const xpcshellTestPaths = ["**/test*/unit*/", "**/test*/xpcshell/"];
26 const browserTestPaths = ["**/test*/**/browser*/"];
28 const mochitestTestPaths = [
29 // Note: we do not want to match testing/mochitest as that would apply
30 // too many globals for that directory.
32 "**/tests/mochitest/",
33 "**/test/mochitests/",
34 "testing/mochitest/tests/SimpleTest/",
35 "testing/mochitest/tests/Harness_sanity/",
38 const chromeTestPaths = ["**/test*/chrome/"];
40 const ignorePatterns = [
43 path.join(__dirname, "tools", "rewriting", "ThirdPartyPaths.txt")
49 path.join(__dirname, "devtools", "client", "debugger", ".eslintignore")
53 .filter(p => p && !p.startsWith("#"))
54 .map(p => `devtools/client/debugger/${p}`),
58 parser: "babel-eslint",
62 configFile: path.join(__dirname, ".babel-eslint.rc.js"),
66 // Ignore eslint configurations in parent directories.
68 // New rules and configurations should generally be added in
69 // tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js to
70 // allow external repositories that use the plugin to pick them up as well.
71 extends: ["plugin:mozilla/recommended"],
75 // All .eslintrc.js files are in the node environment, so turn that
77 // https://github.com/eslint/eslint/issues/13008
78 files: [".eslintrc.js"],
90 "js/src/builtin/**/*.js",
91 "js/src/shell/**/*.js",
94 // Curly brackets are required for all the tree via recommended.js,
95 // however these files aren't auto-fixable at the moment.
100 // TODO: Bug 1515949. Enable no-undef for gfx/
101 files: "gfx/layers/apz/test/mochitest/**",
107 ...removeOverrides(xpcshellTestConfig),
108 files: xpcshellTestPaths.map(path => `${path}**`),
109 excludedFiles: "devtools/**",
112 // If it is an xpcshell head file, we turn off global unused variable checks, as it
113 // would require searching the other test files to know if they are used or not.
114 // This would be expensive and slow, and it isn't worth it for head files.
115 // We could get developers to declare as exported, but that doesn't seem worth it.
116 files: xpcshellTestPaths.map(path => `${path}head*.js`),
128 ...browserTestConfig,
129 files: browserTestPaths.map(path => `${path}**`),
130 excludedFiles: "devtools/**",
133 ...removeOverrides(mochitestTestConfig),
134 files: mochitestTestPaths.map(path => `${path}**`),
137 "security/manager/ssl/tests/mochitest/browser/**",
141 ...removeOverrides(chromeTestConfig),
142 files: chromeTestPaths.map(path => `${path}**`),
143 excludedFiles: ["devtools/**"],
147 // Ideally we wouldn't be using the simpletest env here, but our uses of
148 // js files mean we pick up everything from the global scope, which could
149 // be any one of a number of html files. So we just allow the basics...
150 "mozilla/simpletest": true,
153 ...mochitestTestPaths.map(path => `${path}/**/*.js`),
154 ...chromeTestPaths.map(path => `${path}/**/*.js`),
159 "netwerk/cookie/test/browser/**",
160 "netwerk/test/browser/**",
161 "netwerk/test/mochitests/**",
162 "netwerk/test/unit*/**",
165 "mozilla/no-arbitrary-setTimeout": "off",
166 "mozilla/no-define-cc-etc": "off",
167 "mozilla/use-services": "off",
168 "consistent-return": "off",
170 "no-global-assign": "off",
171 "no-nested-ternary": "off",
172 "no-redeclare": "off",
174 "no-throw-literal": "off",
175 "no-unused-vars": "off",
179 files: ["layout/**"],
181 "object-shorthand": "off",
182 "mozilla/avoid-removeChild": "off",
183 "mozilla/consistent-if-bracing": "off",
184 "mozilla/reject-importGlobalProperties": "off",
185 "mozilla/no-arbitrary-setTimeout": "off",
186 "mozilla/no-define-cc-etc": "off",
187 "mozilla/use-chromeutils-generateqi": "off",
188 "mozilla/use-default-preference-values": "off",
189 "mozilla/use-includes-instead-of-indexOf": "off",
190 "mozilla/use-services": "off",
191 "mozilla/use-ownerGlobal": "off",
193 "consistent-return": "off",
194 "no-array-constructor": "off",
196 "no-cond-assign": "off",
197 "no-extra-boolean-cast": "off",
199 "no-func-assign": "off",
200 "no-global-assign": "off",
201 "no-implied-eval": "off",
202 "no-lonely-if": "off",
203 "no-nested-ternary": "off",
204 "no-new-wrappers": "off",
205 "no-redeclare": "off",
206 "no-restricted-globals": "off",
207 "no-return-await": "off",
208 "no-sequences": "off",
209 "no-throw-literal": "off",
210 "no-useless-concat": "off",
212 "no-unreachable": "off",
213 "no-unsanitized/method": "off",
214 "no-unsanitized/property": "off",
215 "no-unsafe-negation": "off",
216 "no-unused-vars": "off",
217 "no-useless-return": "off",
224 "dom/base/test/unit/test_serializers_entities*.js",
225 "dom/base/test/unit_ipc/**",
226 "dom/base/test/jsmodules/**",
235 "dom/media/tests/**",
236 "dom/media/webaudio/**",
237 "dom/media/webrtc/tests/**",
238 "dom/media/webspeech/**",
239 "dom/messagechannel/**",
243 "dom/performance/**",
246 "dom/security/test/cors/**",
247 "dom/security/test/csp/**",
248 "dom/security/test/general/**",
249 "dom/security/test/https-only/**",
250 "dom/security/test/mixedcontentblocker/**",
251 "dom/security/test/sri/**",
252 "dom/security/test/referrer-policy/**",
253 "dom/serviceworkers/**",
255 "dom/tests/mochitest/**",
266 "dom/ipc/test.xhtml",
269 "consistent-return": "off",
270 "mozilla/avoid-removeChild": "off",
271 "mozilla/consistent-if-bracing": "off",
272 "mozilla/no-arbitrary-setTimeout": "off",
273 "mozilla/no-compare-against-boolean-literals": "off",
274 "mozilla/no-define-cc-etc": "off",
275 "mozilla/reject-importGlobalProperties": "off",
276 "mozilla/use-cc-etc": "off",
277 "mozilla/use-chromeutils-generateqi": "off",
278 "mozilla/use-chromeutils-import": "off",
279 "mozilla/use-includes-instead-of-indexOf": "off",
280 "mozilla/use-ownerGlobal": "off",
281 "mozilla/use-services": "off",
282 "no-array-constructor": "off",
284 "no-cond-assign": "off",
285 "no-control-regex": "off",
286 "no-debugger": "off",
287 "no-else-return": "off",
290 "no-func-assign": "off",
291 "no-global-assign": "off",
292 "no-implied-eval": "off",
293 "no-lone-blocks": "off",
294 "no-lonely-if": "off",
295 "no-nested-ternary": "off",
296 "no-new-object": "off",
297 "no-new-wrappers": "off",
299 "no-redeclare": "off",
300 "no-return-await": "off",
301 "no-restricted-globals": "off",
302 "no-self-assign": "off",
303 "no-self-compare": "off",
304 "no-sequences": "off",
306 "no-shadow-restricted-names": "off",
307 "no-sparse-arrays": "off",
308 "no-throw-literal": "off",
309 "no-unreachable": "off",
310 "no-unsanitized/method": "off",
311 "no-unsanitized/property": "off",
313 "no-unused-vars": "off",
314 "no-useless-call": "off",
315 "no-useless-concat": "off",
316 "no-useless-return": "off",
322 "dom/l10n/tests/mochitest/document_l10n/non-system-principal/test.html",
323 "dom/payments/test/test_basiccard.html",
324 "dom/payments/test/test_bug1478740.html",
325 "dom/payments/test/test_canMakePayment.html",
326 "dom/payments/test/test_closePayment.html",
327 "dom/payments/test/test_showPayment.html",
328 "dom/tests/browser/browser_persist_cookies.js",
329 "dom/tests/browser/browser_persist_mixed_content_image.js",
330 "netwerk/test/unit/test_http2-proxy.js",
333 "no-async-promise-executor": "off",
338 "testing/mochitest/browser-harness.xhtml",
339 "testing/mochitest/chrome/test_chromeGetTestFile.xhtml",
340 "testing/mochitest/chrome/test_sanityEventUtils.xhtml",
341 "testing/mochitest/chrome/test_sanityException.xhtml",
342 "testing/mochitest/chrome/test_sanityException2.xhtml",
343 "testing/mochitest/harness.xhtml",
346 "dot-notation": "off",
347 "object-shorthand": "off",
348 "mozilla/use-services": "off",
349 "mozilla/no-compare-against-boolean-literals": "off",
350 "mozilla/no-useless-parameters": "off",
351 "mozilla/no-useless-removeEventListener": "off",
352 "mozilla/use-cc-etc": "off",
353 "consistent-return": "off",
354 "no-fallthrough": "off",
355 "no-nested-ternary": "off",
356 "no-redeclare": "off",
357 "no-sequences": "off",
359 "no-throw-literal": "off",
361 "no-unsanitized/property": "off",
362 "no-unused-vars": "off",
363 "no-useless-call": "off",
368 "docshell/test/chrome/bug113934_window.xhtml",
369 "docshell/test/chrome/bug215405_window.xhtml",
370 "docshell/test/chrome/bug293235_window.xhtml",
371 "docshell/test/chrome/bug294258_window.xhtml",
372 "docshell/test/chrome/bug298622_window.xhtml",
373 "docshell/test/chrome/bug301397_window.xhtml",
374 "docshell/test/chrome/bug303267_window.xhtml",
375 "docshell/test/chrome/bug311007_window.xhtml",
376 "docshell/test/chrome/bug321671_window.xhtml",
377 "docshell/test/chrome/bug360511_window.xhtml",
378 "docshell/test/chrome/bug396519_window.xhtml",
379 "docshell/test/chrome/bug396649_window.xhtml",
380 "docshell/test/chrome/bug449778_window.xhtml",
381 "docshell/test/chrome/bug449780_window.xhtml",
382 "docshell/test/chrome/bug582176_window.xhtml",
383 "docshell/test/chrome/bug662200_window.xhtml",
384 "docshell/test/chrome/bug690056_window.xhtml",
385 "docshell/test/chrome/bug89419_window.xhtml",
386 "docshell/test/chrome/mozFrameType_window.xhtml",
387 "docshell/test/chrome/test_bug453650.xhtml",
388 "docshell/test/chrome/test_bug454235.xhtml",
389 "docshell/test/chrome/test_bug565388.xhtml",
390 "docshell/test/chrome/test_bug608669.xhtml",
391 "docshell/test/chrome/test_bug789773.xhtml",
392 "docshell/test/chrome/test_bug846906.xhtml",
393 "docshell/test/chrome/test_docRedirect.xhtml",
394 "docshell/test/chrome/test_principalInherit.xhtml",
395 "docshell/test/chrome/test_viewsource_forbidden_in_iframe.xhtml",
398 "dot-notation": "off",
399 "no-global-assign": "off",
401 "object-shorthand": "off",
402 "mozilla/consistent-if-bracing": "off",
403 "mozilla/no-compare-against-boolean-literals": "off",
404 "mozilla/no-useless-parameters": "off",
405 "mozilla/no-useless-removeEventListener": "off",
406 "mozilla/use-cc-etc": "off",
407 "mozilla/use-services": "off",
408 "mozilla/use-chromeutils-generateqi": "off",
409 "consistent-return": "off",
410 "no-delete-var": "off",
411 "no-redeclare": "off",
412 "no-sequences": "off",
415 "no-unused-vars": "off",
416 "no-useless-call": "off",
421 "dom/base/test/chrome/file_bug1139964.xhtml",
422 "dom/base/test/chrome/file_bug549682.xhtml",
423 "dom/base/test/chrome/file_bug616841.xhtml",
424 "dom/base/test/chrome/file_bug990812-1.xhtml",
425 "dom/base/test/chrome/file_bug990812-2.xhtml",
426 "dom/base/test/chrome/file_bug990812-3.xhtml",
427 "dom/base/test/chrome/file_bug990812-4.xhtml",
428 "dom/base/test/chrome/file_bug990812-5.xhtml",
429 "dom/base/test/chrome/file_bug990812.xhtml",
430 "dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xhtml",
431 "dom/base/test/chrome/test_bug339494.xhtml",
432 "dom/base/test/chrome/test_bug429785.xhtml",
433 "dom/base/test/chrome/test_bug467123.xhtml",
434 "dom/base/test/chrome/test_bug683852.xhtml",
435 "dom/base/test/chrome/test_bug780529.xhtml",
436 "dom/base/test/chrome/test_bug800386.xhtml",
437 "dom/base/test/chrome/test_bug884693.xhtml",
438 "dom/base/test/chrome/test_document-element-inserted.xhtml",
439 "dom/base/test/chrome/test_domparsing.xhtml",
440 "dom/base/test/chrome/test_fileconstructor.xhtml",
441 "dom/base/test/chrome/title_window.xhtml",
442 "dom/base/test/chrome/window_nsITextInputProcessor.xhtml",
443 "dom/base/test/chrome/window_swapFrameLoaders.xhtml",
444 "dom/base/test/test_domrequesthelper.xhtml",
445 "dom/bindings/test/test_bug1123516_maplikesetlikechrome.xhtml",
446 "dom/console/tests/test_jsm.xhtml",
447 "dom/events/test/test_bug1412775.xhtml",
448 "dom/events/test/test_bug336682_2.xhtml",
449 "dom/events/test/test_bug415498.xhtml",
450 "dom/events/test/test_bug602962.xhtml",
451 "dom/events/test/test_bug617528.xhtml",
452 "dom/events/test/test_bug679494.xhtml",
453 "dom/indexedDB/test/test_globalObjects_chrome.xhtml",
454 "dom/indexedDB/test/test_wrappedArray.xhtml",
455 "dom/ipc/test.xhtml",
456 "dom/ipc/tests/test_process_error.xhtml",
457 "dom/notification/test/chrome/test_notification_system_principal.xhtml",
458 "dom/security/test/general/test_bug1277803.xhtml",
459 "dom/serviceworkers/test/test_serviceworkerinfo.xhtml",
460 "dom/serviceworkers/test/test_serviceworkermanager.xhtml",
461 "dom/system/tests/test_constants.xhtml",
462 "dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xhtml",
463 "dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xhtml",
464 "dom/tests/mochitest/chrome/sizemode_attribute.xhtml",
465 "dom/tests/mochitest/chrome/test_cyclecollector.xhtml",
466 "dom/tests/mochitest/chrome/test_docshell_swap.xhtml",
467 "dom/tests/mochitest/chrome/window_focus.xhtml",
468 "dom/url/tests/test_bug883784.xhtml",
469 "dom/workers/test/test_WorkerDebugger.xhtml",
470 "dom/workers/test/test_WorkerDebugger_console.xhtml",
471 "dom/workers/test/test_fileReadSlice.xhtml",
472 "dom/workers/test/test_fileReaderSync.xhtml",
473 "dom/workers/test/test_fileSlice.xhtml",
476 "mozilla/no-useless-parameters": "off",
477 "mozilla/no-useless-removeEventListener": "off",
478 "mozilla/use-chromeutils-generateqi": "off",
479 "mozilla/use-services": "off",
481 "no-array-constructor": "off",
485 "no-lone-blocks": "off",
487 "no-redeclare": "off",
489 "no-throw-literal": "off",
491 "no-unsanitized/method": "off",
492 "no-unused-vars": "off",
493 "no-useless-return": "off",
494 "object-shorthand": "off",
503 "editor/libeditor/tests/**",
504 "editor/spellchecker/tests/test_bug338427.html",
506 "image/test/browser/browser_image.js",
513 "security/manager/**",
515 "storage/test/unit/test_vacuum.js",
516 "taskcluster/docker/periodic-updates/scripts/**",
519 "widget/tests/test_assign_event_data.html",
522 "mozilla/prefer-boolean-length-check": "off",
526 // TODO: Bug 1609271 Fix all violations for ChromeUtils.import(..., null)
528 "browser/base/content/test/forms/head.js",
529 "browser/base/content/test/general/browser_datachoices_notification.js",
530 "browser/base/content/test/plugins/head.js",
531 "browser/base/content/test/sync/browser_fxa_web_channel.js",
532 "browser/base/content/test/webextensions/head.js",
533 "browser/components/customizableui/test/browser_1042100_default_placements_update.js",
534 "browser/components/customizableui/test/browser_1096763_seen_widgets_post_reset.js",
535 "browser/components/customizableui/test/browser_1161838_inserted_new_default_buttons.js",
536 "browser/components/customizableui/test/browser_989338_saved_placements_not_resaved.js",
537 "browser/components/customizableui/test/browser_currentset_post_reset.js",
538 "browser/components/customizableui/test/browser_panel_keyboard_navigation.js",
539 "browser/components/enterprisepolicies/tests/browser/browser_policies_setAndLockPref_API.js",
540 "browser/components/enterprisepolicies/tests/browser/head.js",
541 "browser/components/enterprisepolicies/tests/xpcshell/head.js",
542 "browser/components/enterprisepolicies/tests/xpcshell/test_proxy.js",
543 "browser/components/enterprisepolicies/tests/xpcshell/test_runOnce_helper.js",
544 "browser/components/extensions/test/browser/browser_ext_browserAction_context.js",
545 "browser/components/extensions/test/browser/browser_ext_browserAction_popup.js",
546 "browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js",
547 "browser/components/extensions/test/browser/browser_ext_currentWindow.js",
548 "browser/components/extensions/test/browser/browser_ext_getViews.js",
549 "browser/components/extensions/test/browser/browser_ext_management.js",
550 "browser/components/extensions/test/browser/browser_ext_menus_events.js",
551 "browser/components/extensions/test/browser/browser_ext_openPanel.js",
552 "browser/components/extensions/test/browser/browser_ext_pageAction_context.js",
553 "browser/components/extensions/test/browser/browser_ext_pageAction_popup.js",
554 "browser/components/extensions/test/browser/browser_ext_pageAction_show_matches.js",
555 "browser/components/extensions/test/browser/browser_ext_sessions_getRecentlyClosed_private.js",
556 "browser/components/extensions/test/browser/browser_ext_sessions_restore.js",
557 "browser/components/extensions/test/browser/browser_ext_tabs_audio.js",
558 "browser/components/extensions/test/browser/browser_ext_tabs_create_url.js",
559 "browser/components/extensions/test/browser/browser_ext_tabs_duplicate.js",
560 "browser/components/extensions/test/browser/browser_ext_tabs_newtab_private.js",
561 "browser/components/extensions/test/browser/browser_ext_tabs_removeCSS.js",
562 "browser/components/extensions/test/browser/browser_ext_tabs_zoom.js",
563 "browser/components/extensions/test/browser/browser_ext_windows.js",
564 "browser/components/extensions/test/browser/browser_ext_windows_events.js",
565 "browser/components/extensions/test/browser/head.js",
566 "browser/components/extensions/test/browser/head_webNavigation.js",
567 "browser/components/extensions/test/xpcshell/test_ext_url_overrides_newtab.js",
568 "browser/components/migration/tests/unit/test_Edge_db_migration.js",
569 "browser/components/preferences/tests/browser_contentblocking.js",
570 "browser/components/translation/test/unit/test_cld2.js",
571 "browser/components/urlbar/tests/ext/browser/update/browser_getBrowserUpdateStatus_updateDisabledByPolicy.js",
572 "browser/extensions/formautofill/test/unit/head.js",
573 "browser/extensions/formautofill/test/unit/test_creditCardRecords.js",
574 "browser/extensions/formautofill/test/unit/test_migrateRecords.js",
575 "browser/extensions/formautofill/test/unit/test_storage_remove.js",
576 "browser/extensions/formautofill/test/unit/test_storage_tombstones.js",
577 "browser/extensions/formautofill/test/unit/test_sync.js",
578 "browser/extensions/formautofill/test/unit/test_transformFields.js",
579 "browser/extensions/report-site-issue/experimentalAPIs/pageActionExtras.js",
580 "browser/extensions/report-site-issue/test/browser/head.js",
581 "devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_addons_debug_popup.js",
582 "dom/ipc/tests/browser_memory_distribution_telemetry.js",
583 "dom/push/test/xpcshell/head.js",
584 "dom/push/test/xpcshell/test_broadcast_success.js",
585 "dom/push/test/xpcshell/test_crypto.js",
586 "gfx/layers/apz/test/mochitest/browser_test_select_zoom.js",
587 "security/manager/ssl/RemoteSecuritySettings.jsm",
588 "security/manager/ssl/tests/unit/test_der.js",
589 "security/manager/ssl/X509.jsm",
590 "services/common/tests/unit/head_helpers.js",
591 "services/common/tests/unit/test_uptake_telemetry.js",
592 "services/fxaccounts/tests/xpcshell/test_accounts.js",
593 "services/fxaccounts/tests/xpcshell/test_accounts_device_registration.js",
594 "services/fxaccounts/tests/xpcshell/test_loginmgr_storage.js",
595 "services/fxaccounts/tests/xpcshell/test_oauth_token_storage.js",
596 "services/fxaccounts/tests/xpcshell/test_oauth_tokens.js",
597 "services/fxaccounts/tests/xpcshell/test_web_channel.js",
598 "services/sync/modules-testing/utils.js",
599 "services/sync/tests/unit/test_doctor.js",
600 "services/sync/tests/unit/test_postqueue.js",
601 "testing/marionette/components/marionette.js",
602 "testing/marionette/driver.js",
603 "testing/marionette/format.js",
604 "testing/marionette/server.js",
605 "testing/marionette/test/unit/test_prefs.js",
606 "testing/mochitest/browser-test.js",
607 "testing/mochitest/BrowserTestUtils/content/content-task.js",
608 "testing/xpcshell/head.js",
609 "toolkit/components/cloudstorage/tests/unit/test_cloudstorage.js",
610 "toolkit/components/crashes/tests/xpcshell/test_crash_manager.js",
611 "toolkit/components/crashes/tests/xpcshell/test_crash_service.js",
612 "toolkit/components/crashes/tests/xpcshell/test_crash_store.js",
613 "toolkit/components/enterprisepolicies/tests/browser/head.js",
614 "toolkit/components/enterprisepolicies/tests/EnterprisePolicyTesting.jsm",
615 "toolkit/components/enterprisepolicies/tests/xpcshell/head.js",
616 "toolkit/components/extensions/ExtensionPreferencesManager.jsm",
617 "toolkit/components/extensions/ExtensionXPCShellUtils.jsm",
618 "toolkit/components/extensions/ExtensionXPCShellUtils.jsm",
619 "toolkit/components/extensions/parent/ext-management.js",
620 "toolkit/components/extensions/test/mochitest/test_ext_contentscript_cache.html",
621 "toolkit/components/extensions/test/xpcshell/head_native_messaging.js",
622 "toolkit/components/extensions/test/xpcshell/test_ext_api_permissions.js",
623 "toolkit/components/extensions/test/xpcshell/test_ext_background_early_shutdown.js",
624 "toolkit/components/extensions/test/xpcshell/test_ext_background_teardown.js",
625 "toolkit/components/extensions/test/xpcshell/test_ext_contentscript_context.js",
626 "toolkit/components/extensions/test/xpcshell/test_ext_contentscript_context_isolation.js",
627 "toolkit/components/extensions/test/xpcshell/test_ext_contentscript_teardown.js",
628 "toolkit/components/extensions/test/xpcshell/test_ext_contexts_gc.js",
629 "toolkit/components/extensions/test/xpcshell/test_ext_privacy_disable.js",
630 "toolkit/components/extensions/test/xpcshell/test_ext_schemas_interactive.js",
631 "toolkit/components/extensions/test/xpcshell/test_ext_shutdown_cleanup.js",
632 "toolkit/components/extensions/test/xpcshell/test_ext_storage_sync_kinto.js",
633 "toolkit/components/extensions/test/xpcshell/test_ext_storage_sync_kinto_crypto.js",
634 "toolkit/components/extensions/test/xpcshell/test_ext_tab_teardown.js",
635 "toolkit/components/extensions/test/xpcshell/test_native_manifests.js",
636 "toolkit/components/featuregates/test/unit/test_FeatureGate.js",
637 "toolkit/components/mozintl/mozIntl.jsm",
638 "toolkit/components/normandy/test/browser/browser_actions_ShowHeartbeatAction.js",
639 "toolkit/components/osfile/modules/osfile_async_front.jsm",
640 "toolkit/components/osfile/modules/osfile_native.jsm",
641 "toolkit/components/osfile/tests/xpcshell/test_osfile_kill.js",
642 "toolkit/components/passwordmgr/test/unit/test_getFormFields.js",
643 "toolkit/components/passwordmgr/test/unit/test_getPasswordFields.js",
644 "toolkit/components/passwordmgr/test/unit/test_getUserNameAndPasswordFields.js",
645 "toolkit/components/processsingleton/MainProcessSingleton.jsm",
646 "toolkit/components/telemetry/tests/unit/head.js",
647 "toolkit/components/telemetry/tests/unit/test_EcosystemTelemetry.js",
648 "toolkit/components/telemetry/tests/unit/test_EventPing.js",
649 "toolkit/components/telemetry/tests/unit/test_HealthPing.js",
650 "toolkit/components/telemetry/tests/unit/test_PingAPI.js",
651 "toolkit/components/telemetry/tests/unit/test_PrioPing.js",
652 "toolkit/components/telemetry/tests/unit/test_TelemetryController_idle.js",
653 "toolkit/components/telemetry/tests/unit/test_TelemetryReportingPolicy.js",
654 "toolkit/components/telemetry/tests/unit/test_TelemetrySendOldPings.js",
655 "toolkit/components/telemetry/tests/unit/test_TelemetrySession.js",
656 "toolkit/modules/subprocess/test/xpcshell/test_subprocess.js",
657 "toolkit/modules/tests/xpcshell/test_GMPInstallManager.js",
658 "toolkit/mozapps/extensions/internal/AddonTestUtils.jsm",
659 "toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js",
660 "toolkit/mozapps/extensions/test/xpcshell/head_addons.js",
661 "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_clients.js",
662 "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_regexp_split.js",
663 "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_targetapp_filter.js",
664 "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_telemetry.js",
665 "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklistchange.js",
666 "toolkit/mozapps/extensions/test/xpcshell/test_gmpProvider.js",
667 "toolkit/mozapps/extensions/test/xpcshell/test_no_addons.js",
668 "toolkit/mozapps/extensions/test/xpcshell/test_permissions_prefs.js",
669 "toolkit/mozapps/extensions/test/xpcshell/test_signed_updatepref.js",
670 "toolkit/mozapps/extensions/test/xpcshell/test_signed_verify.js",
671 "toolkit/mozapps/extensions/test/xpcshell/test_webextension.js",
672 "toolkit/mozapps/extensions/test/xpcshell/test_webextension_events.js",
673 "toolkit/mozapps/extensions/test/xpcshell/test_XPIStates.js",
674 "toolkit/mozapps/installer/precompile_cache.js",
677 "mozilla/reject-chromeutils-import-null": "off",
682 "browser/base/content/browser-gestureSupport.js",
683 "browser/base/content/tabbrowser-tab.js",
684 "browser/base/content/tabbrowser-tabs.js",
685 "browser/base/content/tabbrowser.js",
686 "browser/components/downloads/DownloadsCommon.jsm",
687 "browser/components/downloads/content/allDownloadsView.js",
688 "browser/components/downloads/content/downloads.js",
689 "browser/components/downloads/content/indicator.js",
690 "browser/components/payments/res/components/csc-input.js",
691 "browser/components/payments/res/components/labelled-checkbox.js",
692 "browser/components/pocket/content/Pocket.jsm",
693 "browser/components/preferences/search.js",
694 "browser/components/search/content/search-one-offs.js",
695 "browser/components/search/content/searchbar.js",
696 "browser/components/sessionstore/ContentSessionStore.jsm",
697 "browser/components/urlbar/UrlbarInput.jsm",
698 "browser/components/urlbar/UrlbarView.jsm",
699 "browser/extensions/formautofill/content/customElements.js",
700 "browser/modules/PageActions.jsm",
701 "devtools/client/shared/async-store-helper.js",
702 "devtools/client/shared/prefs.js",
703 "devtools/shared/task.js",
704 "dom/base/SlowScriptDebug.jsm",
705 "dom/media/PeerConnection.jsm",
706 "mobile/android/chrome/geckoview/SessionStateAggregator.js",
707 "mobile/android/modules/geckoview/DelayedInit.jsm",
708 "services/sync/modules/record.js",
709 "toolkit/actors/AutoCompleteChild.jsm",
710 "toolkit/components/autocomplete/tests/unit/test_stopSearch.js",
711 "toolkit/components/enterprisepolicies/EnterprisePoliciesParent.jsm",
712 "toolkit/components/extensions/ExtensionParent.jsm",
713 "toolkit/components/osfile/modules/osfile_async_front.jsm",
714 "toolkit/components/osfile/modules/osfile_shared_allthreads.jsm",
715 "toolkit/content/aboutSupport.js",
716 "toolkit/content/customElements.js",
717 "toolkit/content/preferencesBindings.js",
718 "toolkit/content/tests/chrome/test_custom_element_base.xhtml",
719 "toolkit/content/viewZoomOverlay.js",
720 "toolkit/content/widgets/*.js",
721 "toolkit/modules/NewTabUtils.jsm",
722 "toolkit/modules/tests/modules/Task.jsm",
723 "toolkit/mozapps/extensions/AddonManager.jsm",
724 "toolkit/mozapps/extensions/internal/PluginProvider.jsm",
725 "toolkit/mozapps/extensions/internal/XPIDatabase.jsm",
726 "toolkit/mozapps/extensions/test/browser/head.js",
727 "toolkit/mozapps/extensions/test/xpcshell/head_addons.js",
728 "toolkit/mozapps/handling/content/dialog.js",
731 "no-setter-return": "off",