Bug 1587989 [wpt PR 19634] - Enable Scroll To Text by default, a=testonly
[gecko.git] / .eslintrc.js
blob6f5db017f50f910a75fb3002310c45e1fc35a29e
1 "use strict";
3 const xpcshellTestConfig = require("eslint-plugin-mozilla/lib/configs/xpcshell-test.js");
4 const browserTestConfig = require("eslint-plugin-mozilla/lib/configs/browser-test.js");
5 const mochitestTestConfig = require("eslint-plugin-mozilla/lib/configs/mochitest-test.js");
6 const chromeTestConfig = require("eslint-plugin-mozilla/lib/configs/chrome-test.js");
7 const fs = require("fs");
9 /**
10  * Some configurations have overrides, which can't be specified within overrides,
11  * so we need to remove them.
12  */
13 function removeOverrides(config) {
14   config = {...config};
15   delete config.overrides;
16   return config;
19 const xpcshellTestPaths = [
20   "**/test*/unit*/",
21   "**/test*/xpcshell/",
24 const browserTestPaths = [
25   "**/test*/**/browser/",
28 const mochitestTestPaths = [
29   "**/test*/mochitest/",
32 const chromeTestPaths = [
33   "**/test*/chrome/",
36 const ignorePatterns = [
37   ...fs.readFileSync("tools/rewriting/ThirdPartyPaths.txt")
38     .toString("utf-8")
39     .split("\n"),
40   ...fs.readFileSync("devtools/client/debugger/.eslintignore")
41     .toString("utf-8")
42     .split("\n")
43     .filter(p => p && !p.startsWith("#"))
44     .map(p => `devtools/client/debugger/${p}`),
47 module.exports = {
48   ignorePatterns,
49   // New rules and configurations should generally be added in
50   // tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js to
51   // allow external repositories that use the plugin to pick them up as well.
52   "extends": [
53     "plugin:mozilla/recommended"
54   ],
55   "plugins": [
56     "mozilla"
57   ],
58   "overrides": [{
59     "files": [
60       "*.html",
61       "*.xhtml",
62       "*.xul",
63       "*.xml",
64       "js/src/builtin/**/*.js",
65       "js/src/shell/**/*.js"
66     ],
67     "rules": {
68       // Curly brackets are required for all the tree via recommended.js,
69       // however these files aren't auto-fixable at the moment.
70       "curly": "off"
71     },
72   }, {
73     // TODO: Bug 1515949. Enable no-undef for gfx/
74     "files": "gfx/layers/apz/test/mochitest/**",
75     "rules": {
76       "no-undef": "off",
77     }
78   }, {
79     ...removeOverrides(xpcshellTestConfig),
80     "files": xpcshellTestPaths.map(path => `${path}**`),
81     "excludedFiles": "devtools/**"
82   }, {
83     // If it is an xpcshell head file, we turn off global unused variable checks, as it
84     // would require searching the other test files to know if they are used or not.
85     // This would be expensive and slow, and it isn't worth it for head files.
86     // We could get developers to declare as exported, but that doesn't seem worth it.
87     "files": xpcshellTestPaths.map(path => `${path}head*.js`),
88     "rules": {
89       "no-unused-vars": ["error", {
90         "args": "none",
91         "vars": "local",
92       }],
93     },
94   }, {
95     ...browserTestConfig,
96     "files": browserTestPaths.map(path => `${path}**`),
97     "excludedFiles": "devtools/**"
98   }, {
99     ...removeOverrides(mochitestTestConfig),
100     "files": mochitestTestPaths.map(path => `${path}**`),
101     "excludedFiles": [
102       "devtools/**",
103       "security/manager/ssl/tests/mochitest/browser/**",
104       "testing/mochitest/**",
105     ],
106   }, {
107     ...removeOverrides(chromeTestConfig),
108     "files": chromeTestPaths.map(path => `${path}**`),
109     "excludedFiles": [
110       "devtools/**",
111     ],
112   }, {
113     "env": {
114       // Ideally we wouldn't be using the simpletest env here, but our uses of
115       // js files mean we pick up everything from the global scope, which could
116       // be any one of a number of html files. So we just allow the basics...
117       "mozilla/simpletest": true,
118     },
119     "files": [
120       ...mochitestTestPaths.map(path => `${path}/**/*.js`),
121       ...chromeTestPaths.map(path => `${path}/**/*.js`),
122     ],
123   }, {
124     "files": [
125       "netwerk/cookie/test/browser/**",
126       "netwerk/test/browser/**",
127       "netwerk/test/mochitests/**",
128       "netwerk/test/unit*/**",
129     ],
130     "rules": {
131       "mozilla/consistent-if-bracing": "off",
132       "mozilla/reject-importGlobalProperties": "off",
133       "mozilla/no-arbitrary-setTimeout": "off",
134       "mozilla/no-define-cc-etc": "off",
135       "mozilla/use-default-preference-values": "off",
136       "mozilla/use-services": "off",
137       "consistent-return": "off",
138       "no-array-constructor": "off",
139       "no-eval": "off",
140       "no-global-assign": "off",
141       "no-nested-ternary": "off",
142       "no-new-wrappers": "off",
143       "no-redeclare": "off",
144       "no-return-await": "off",
145       "no-sequences": "off",
146       "no-shadow": "off",
147       "no-throw-literal": "off",
148       "no-undef": "off",
149       "no-unreachable": "off",
150       "no-unused-vars": "off",
151       "no-useless-return": "off",
152     }
153   }, {
154     "files": [
155       "layout/**",
156     ],
157     "rules": {
158       "object-shorthand": "off",
159       "mozilla/avoid-removeChild": "off",
160       "mozilla/consistent-if-bracing": "off",
161       "mozilla/reject-importGlobalProperties": "off",
162       "mozilla/no-arbitrary-setTimeout": "off",
163       "mozilla/no-define-cc-etc": "off",
164       "mozilla/no-useless-parameters": "off",
165       "mozilla/no-useless-removeEventListener": "off",
166       "mozilla/use-chromeutils-generateqi": "off",
167       "mozilla/use-default-preference-values": "off",
168       "mozilla/use-includes-instead-of-indexOf": "off",
169       "mozilla/use-services": "off",
170       "mozilla/use-ownerGlobal": "off",
171       "complexity": "off",
172       "consistent-return": "off",
173       "no-array-constructor": "off",
174       "no-caller": "off",
175       "no-cond-assign": "off",
176       "no-extra-boolean-cast": "off",
177       "no-eval": "off",
178       "no-func-assign": "off",
179       "no-global-assign": "off",
180       "no-implied-eval": "off",
181       "no-lonely-if": "off",
182       "no-nested-ternary": "off",
183       "no-new-wrappers": "off",
184       "no-redeclare": "off",
185       "no-restricted-globals": "off",
186       "no-return-await": "off",
187       "no-sequences": "off",
188       "no-shadow": "off",
189       "no-throw-literal": "off",
190       "no-useless-concat": "off",
191       "no-undef": "off",
192       "no-unreachable": "off",
193       "no-unsanitized/method": "off",
194       "no-unsanitized/property": "off",
195       "no-unsafe-negation": "off",
196       "no-unused-vars": "off",
197       "no-useless-return": "off",
198     }
199   }, {
200     "files": [
201       "dom/animation/**",
202       "dom/base/test/*.*",
203       "dom/base/test/unit/test_serializers_entities*.js",
204       "dom/base/test/unit_ipc/**",
205       "dom/base/test/jsmodules/**",
206       "dom/base/*.*",
207       "dom/canvas/**",
208       "dom/encoding/**",
209       "dom/events/**",
210       "dom/fetch/**",
211       "dom/file/**",
212       "dom/html/**",
213       "dom/jsurl/**",
214       "dom/media/tests/**",
215       "dom/media/webaudio/**",
216       "dom/media/webspeech/**",
217       "dom/messagechannel/**",
218       "dom/midi/**",
219       "dom/network/**",
220       "dom/payments/**",
221       "dom/performance/**",
222       "dom/permission/**",
223       "dom/quota/**",
224       "dom/security/test/cors/**",
225       "dom/security/test/csp/**",
226       "dom/security/test/general/**",
227       "dom/security/test/mixedcontentblocker/**",
228       "dom/security/test/sri/**",
229       "dom/serviceworkers/**",
230       "dom/smil/**",
231       "dom/tests/mochitest/**",
232       "dom/u2f/**",
233       "dom/vr/**",
234       "dom/webauthn/**",
235       "dom/webgpu/**",
236       "dom/websocket/**",
237       "dom/workers/**",
238       "dom/worklet/**",
239       "dom/xml/**",
240       "dom/xslt/**",
241       "dom/xul/**",
242       "dom/ipc/test.xhtml",
243     ],
244     "rules": {
245       "consistent-return": "off",
246       "mozilla/avoid-removeChild": "off",
247       "mozilla/consistent-if-bracing": "off",
248       "mozilla/no-arbitrary-setTimeout": "off",
249       "mozilla/no-compare-against-boolean-literals": "off",
250       "mozilla/no-define-cc-etc": "off",
251       "mozilla/reject-importGlobalProperties": "off",
252       "mozilla/use-cc-etc": "off",
253       "mozilla/use-chromeutils-generateqi": "off",
254       "mozilla/use-chromeutils-import": "off",
255       "mozilla/use-includes-instead-of-indexOf": "off",
256       "mozilla/use-ownerGlobal": "off",
257       "mozilla/use-services": "off",
258       "no-array-constructor": "off",
259       "no-caller": "off",
260       "no-cond-assign": "off",
261       "no-control-regex": "off",
262       "no-debugger": "off",
263       "no-else-return": "off",
264       "no-empty": "off",
265       "no-eval": "off",
266       "no-func-assign": "off",
267       "no-global-assign": "off",
268       "no-implied-eval": "off",
269       "no-lone-blocks": "off",
270       "no-lonely-if": "off",
271       "no-nested-ternary": "off",
272       "no-new-object": "off",
273       "no-new-wrappers": "off",
274       "no-octal": "off",
275       "no-redeclare": "off",
276       "no-return-await": "off",
277       "no-restricted-globals": "off",
278       "no-self-assign": "off",
279       "no-self-compare": "off",
280       "no-sequences": "off",
281       "no-shadow": "off",
282       "no-shadow-restricted-names": "off",
283       "no-sparse-arrays": "off",
284       "no-throw-literal": "off",
285       "no-unreachable": "off",
286       "no-unsanitized/method": "off",
287       "no-unsanitized/property": "off",
288       "no-undef": "off",
289       "no-unused-vars": "off",
290       "no-useless-call": "off",
291       "no-useless-concat": "off",
292       "no-useless-return": "off",
293       "no-with": "off",
294     }
295   }, {
296     "files": [
297       "dom/l10n/tests/mochitest/document_l10n/non-system-principal/test.html",
298       "dom/payments/test/test_basiccard.html",
299       "dom/payments/test/test_bug1478740.html",
300       "dom/payments/test/test_canMakePayment.html",
301       "dom/payments/test/test_closePayment.html",
302       "dom/payments/test/test_showPayment.html",
303       "dom/tests/browser/browser_persist_cookies.js",
304       "dom/tests/browser/browser_persist_mixed_content_image.js",
305       "netwerk/test/unit/test_http2-proxy.js",
306     ],
307     "rules": {
308       "no-async-promise-executor": "off",
309     }
310   }, {
311     "files": [
312       "browser/base/content/test/chrome/test_aboutCrashed.xhtml",
313       "browser/base/content/test/chrome/test_aboutRestartRequired.xhtml",
314       "browser/base/content/test/general/browser_tab_dragdrop2_frame1.xhtml",
315       "browser/components/places/tests/chrome/test_0_bug510634.xhtml",
316       "browser/components/places/tests/chrome/test_bug1163447_selectItems_through_shortcut.xhtml",
317       "browser/components/places/tests/chrome/test_0_bug510634.xhtml",
318       "browser/components/places/tests/chrome/test_bug1163447_selectItems_through_shortcut.xhtml",
319       "browser/components/places/tests/chrome/test_bug549192.xhtml",
320       "browser/components/places/tests/chrome/test_bug549491.xhtml",
321       "browser/components/places/tests/chrome/test_selectItems_on_nested_tree.xhtml",
322       "browser/components/places/tests/chrome/test_treeview_date.xhtml",
323     ],
324     "rules": {
325       "mozilla/no-arbitrary-setTimeout": "off",
326       "object-shorthand": "off",
327       "no-undef": "off",
328       "no-unused-vars": "off",
329     }
330   }, {
331     "files": [
332       "accessible/tests/mochitest/actions/test_keys_menu.xhtml",
333       "accessible/tests/mochitest/elm/test_listbox.xhtml",
334       "accessible/tests/mochitest/events/test_focus_autocomplete.xhtml",
335       "accessible/tests/mochitest/events/test_focus_contextmenu.xhtml",
336       "accessible/tests/mochitest/events/test_tree.xhtml",
337       "accessible/tests/mochitest/hittest/test_zoom_tree.xhtml",
338       "accessible/tests/mochitest/name/test_general.xhtml",
339       "accessible/tests/mochitest/name/test_tree.xhtml",
340       "accessible/tests/mochitest/selectable/test_listbox.xhtml",
341       "accessible/tests/mochitest/states/test_expandable.xhtml",
342       "accessible/tests/mochitest/tree/test_button.xhtml",
343       "accessible/tests/mochitest/tree/test_tree.xhtml",
344       "accessible/tests/mochitest/treeupdate/test_contextmenu.xhtml",
345       "accessible/tests/mochitest/treeupdate/test_menu.xhtml",
346     ],
347     "rules": {
348       "object-shorthand": "off",
349       "mozilla/no-compare-against-boolean-literals": "off",
350       "mozilla/use-cc-etc": "off",
351       "consistent-return": "off",
352       "no-redeclare": "off",
353       "no-sequences": "off",
354       "no-shadow": "off",
355       "no-unused-vars": "off",
356       "no-useless-call": "off",
357     }
358   }, {
359     "files": [
360       "testing/mochitest/browser-harness.xhtml",
361       "testing/mochitest/chrome/test_chromeGetTestFile.xhtml",
362       "testing/mochitest/chrome/test_sanityEventUtils.xhtml",
363       "testing/mochitest/chrome/test_sanityException.xhtml",
364       "testing/mochitest/chrome/test_sanityException2.xhtml",
365       "testing/mochitest/harness.xhtml",
366     ],
367     "rules": {
368       "dot-notation": "off",
369       "object-shorthand": "off",
370       "mozilla/use-services": "off",
371       "mozilla/no-compare-against-boolean-literals": "off",
372       "mozilla/no-useless-parameters": "off",
373       "mozilla/no-useless-removeEventListener": "off",
374       "mozilla/use-cc-etc": "off",
375       "consistent-return": "off",
376       "no-fallthrough": "off",
377       "no-nested-ternary": "off",
378       "no-redeclare": "off",
379       "no-sequences": "off",
380       "no-shadow": "off",
381       "no-throw-literal": "off",
382       "no-undef": "off",
383       "no-unsanitized/property": "off",
384       "no-unused-vars": "off",
385       "no-useless-call": "off",
386     }
387   }, {
388     "files": [
389       "docshell/test/chrome/bug113934_window.xhtml",
390       "docshell/test/chrome/bug215405_window.xhtml",
391       "docshell/test/chrome/bug293235_window.xhtml",
392       "docshell/test/chrome/bug294258_window.xhtml",
393       "docshell/test/chrome/bug298622_window.xhtml",
394       "docshell/test/chrome/bug301397_window.xhtml",
395       "docshell/test/chrome/bug303267_window.xhtml",
396       "docshell/test/chrome/bug311007_window.xhtml",
397       "docshell/test/chrome/bug321671_window.xhtml",
398       "docshell/test/chrome/bug360511_window.xhtml",
399       "docshell/test/chrome/bug396519_window.xhtml",
400       "docshell/test/chrome/bug396649_window.xhtml",
401       "docshell/test/chrome/bug449778_window.xhtml",
402       "docshell/test/chrome/bug449780_window.xhtml",
403       "docshell/test/chrome/bug582176_window.xhtml",
404       "docshell/test/chrome/bug662200_window.xhtml",
405       "docshell/test/chrome/bug690056_window.xhtml",
406       "docshell/test/chrome/bug89419_window.xhtml",
407       "docshell/test/chrome/mozFrameType_window.xhtml",
408       "docshell/test/chrome/test_bug453650.xhtml",
409       "docshell/test/chrome/test_bug454235.xhtml",
410       "docshell/test/chrome/test_bug565388.xhtml",
411       "docshell/test/chrome/test_bug608669.xhtml",
412       "docshell/test/chrome/test_bug789773.xhtml",
413       "docshell/test/chrome/test_bug846906.xhtml",
414       "docshell/test/chrome/test_docRedirect.xhtml",
415       "docshell/test/chrome/test_principalInherit.xhtml",
416       "docshell/test/chrome/test_viewsource_forbidden_in_iframe.xhtml",
417     ],
418     "rules": {
419       "dot-notation": "off",
420       "no-global-assign": "off",
421       "no-octal": "off",
422       "object-shorthand": "off",
423       "mozilla/consistent-if-bracing": "off",
424       "mozilla/no-compare-against-boolean-literals": "off",
425       "mozilla/no-useless-parameters": "off",
426       "mozilla/no-useless-removeEventListener": "off",
427       "mozilla/use-cc-etc": "off",
428       "mozilla/use-services": "off",
429       "mozilla/use-chromeutils-generateqi": "off",
430       "consistent-return": "off",
431       "no-delete-var": "off",
432       "no-redeclare": "off",
433       "no-sequences": "off",
434       "no-shadow": "off",
435       "no-undef": "off",
436       "no-unused-vars": "off",
437       "no-useless-call": "off",
438     }
439   }, {
440     "files": [
441       "editor/composer/test/test_bug434998.xhtml",
442       "editor/libeditor/tests/test_bug607584.xhtml",
443       "editor/libeditor/tests/test_bug616590.xhtml",
444       "editor/libeditor/tests/test_bug780908.xhtml",
445     ],
446     "rules": {
447       "object-shorthand": "off",
448       "no-undef": "off",
449     }
450   }, {
451     "files": [
452       "widget/tests/native_menus_window.xhtml",
453       "widget/tests/native_mouse_mac_window.xhtml",
454       "widget/tests/standalone_native_menu_window.xhtml",
455       "widget/tests/system_font_changes.xhtml",
456       "widget/tests/taskbar_previews.xhtml",
457       "widget/tests/test_bug1123480.xhtml",
458       "widget/tests/test_bug343416.xhtml",
459       "widget/tests/test_bug428405.xhtml",
460       "widget/tests/test_bug429954.xhtml",
461       "widget/tests/test_bug466599.xhtml",
462       "widget/tests/test_bug485118.xhtml",
463       "widget/tests/test_bug517396.xhtml",
464       "widget/tests/test_bug538242.xhtml",
465       "widget/tests/test_bug596600.xhtml",
466       "widget/tests/test_bug673301.xhtml",
467       "widget/tests/test_bug760802.xhtml",
468       "widget/tests/test_chrome_context_menus_win.xhtml",
469       "widget/tests/test_clipboard.xhtml",
470       "widget/tests/test_input_events_on_deactive_window.xhtml",
471       "widget/tests/test_key_event_counts.xhtml",
472       "widget/tests/test_keycodes.xhtml",
473       "widget/tests/test_panel_mouse_coords.xhtml",
474       "widget/tests/test_position_on_resize.xhtml",
475       "widget/tests/test_sizemode_events.xhtml",
476       "widget/tests/test_taskbar_progress.xhtml",
477       "widget/tests/test_transferable_overflow.xhtml",
478       "widget/tests/window_bug429954.xhtml",
479       "widget/tests/window_bug478536.xhtml",
480       "widget/tests/window_composition_text_querycontent.xhtml",
481       "widget/tests/window_state_windows.xhtml",
482       "widget/tests/window_wheeltransaction.xhtml",
483     ],
484     "rules": {
485       "complexity": "off",
486       "consistent-return": "off",
487       "dot-notation": "off",
488       "mozilla/prefer-boolean-length-check": "off",
489       "mozilla/no-useless-parameters": "off",
490       "mozilla/no-useless-removeEventListener": "off",
491       "mozilla/use-cc-etc": "off",
492       "mozilla/use-chromeutils-generateqi": "off",
493       "mozilla/use-services": "off",
494       "object-shorthand": "off",
495       "no-caller": "off",
496       "no-delete-var": "off",
497       "no-nested-ternary": "off",
498       "no-new-object": "off",
499       "no-redeclare": "off",
500       "no-sequences": "off",
501       "no-shadow": "off",
502       "no-undef": "off",
503       "no-unsafe-finally": "off",
504       "no-unsanitized/property": "off",
505       "no-unused-vars": "off",
506       "no-useless-return": "off",
507     }
508   }, {
509     "files": [
510       "dom/base/test/chrome/cpows_parent.xhtml",
511       "dom/base/test/chrome/file_bug1139964.xhtml",
512       "dom/base/test/chrome/file_bug549682.xhtml",
513       "dom/base/test/chrome/file_bug616841.xhtml",
514       "dom/base/test/chrome/file_bug990812-1.xhtml",
515       "dom/base/test/chrome/file_bug990812-2.xhtml",
516       "dom/base/test/chrome/file_bug990812-3.xhtml",
517       "dom/base/test/chrome/file_bug990812-4.xhtml",
518       "dom/base/test/chrome/file_bug990812-5.xhtml",
519       "dom/base/test/chrome/file_bug990812.xhtml",
520       "dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xhtml",
521       "dom/base/test/chrome/test_bug339494.xhtml",
522       "dom/base/test/chrome/test_bug429785.xhtml",
523       "dom/base/test/chrome/test_bug467123.xhtml",
524       "dom/base/test/chrome/test_bug683852.xhtml",
525       "dom/base/test/chrome/test_bug780529.xhtml",
526       "dom/base/test/chrome/test_bug800386.xhtml",
527       "dom/base/test/chrome/test_bug884693.xhtml",
528       "dom/base/test/chrome/test_document-element-inserted.xhtml",
529       "dom/base/test/chrome/test_domparsing.xhtml",
530       "dom/base/test/chrome/test_fileconstructor.xhtml",
531       "dom/base/test/chrome/title_window.xhtml",
532       "dom/base/test/chrome/window_nsITextInputProcessor.xhtml",
533       "dom/base/test/chrome/window_swapFrameLoaders.xhtml",
534       "dom/base/test/test_domrequesthelper.xhtml",
535       "dom/bindings/test/test_bug1123516_maplikesetlikechrome.xhtml",
536       "dom/console/tests/test_jsm.xhtml",
537       "dom/events/test/test_bug1412775.xhtml",
538       "dom/events/test/test_bug336682_2.xhtml",
539       "dom/events/test/test_bug415498.xhtml",
540       "dom/events/test/test_bug602962.xhtml",
541       "dom/events/test/test_bug617528.xhtml",
542       "dom/events/test/test_bug679494.xhtml",
543       "dom/indexedDB/test/test_globalObjects_chrome.xhtml",
544       "dom/indexedDB/test/test_wrappedArray.xhtml",
545       "dom/ipc/test.xhtml",
546       "dom/ipc/tests/test_process_error.xhtml",
547       "dom/notification/test/chrome/test_notification_system_principal.xhtml",
548       "dom/plugins/test/mochitest/test_busy_hang.xhtml",
549       "dom/plugins/test/mochitest/test_convertpoint.xhtml",
550       "dom/plugins/test/mochitest/test_crash_notify.xhtml",
551       "dom/plugins/test/mochitest/test_crash_notify_no_report.xhtml",
552       "dom/plugins/test/mochitest/test_crash_submit.xhtml",
553       "dom/plugins/test/mochitest/test_hang_submit.xhtml",
554       "dom/plugins/test/mochitest/test_hangui.xhtml",
555       "dom/plugins/test/mochitest/test_idle_hang.xhtml",
556       "dom/plugins/test/mochitest/test_xulbrowser_plugin_visibility.xhtml",
557       "dom/plugins/test/mochitest/xulbrowser_plugin_visibility.xhtml",
558       "dom/security/test/general/test_bug1277803.xhtml",
559       "dom/serviceworkers/test/test_serviceworkerinfo.xhtml",
560       "dom/serviceworkers/test/test_serviceworkermanager.xhtml",
561       "dom/system/tests/test_constants.xhtml",
562       "dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xhtml",
563       "dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xhtml",
564       "dom/tests/mochitest/chrome/sizemode_attribute.xhtml",
565       "dom/tests/mochitest/chrome/test_cyclecollector.xhtml",
566       "dom/tests/mochitest/chrome/test_docshell_swap.xhtml",
567       "dom/tests/mochitest/chrome/window_focus.xhtml",
568       "dom/url/tests/test_bug883784.xhtml",
569       "dom/workers/test/test_WorkerDebugger.xhtml",
570       "dom/workers/test/test_WorkerDebugger_console.xhtml",
571       "dom/workers/test/test_fileReadSlice.xhtml",
572       "dom/workers/test/test_fileReaderSync.xhtml",
573       "dom/workers/test/test_fileSlice.xhtml",
574     ],
575     "rules": {
576       "mozilla/no-useless-parameters": "off",
577       "mozilla/no-useless-removeEventListener": "off",
578       "mozilla/use-chromeutils-generateqi": "off",
579       "mozilla/use-services": "off",
580       "complexity": "off",
581       "no-array-constructor": "off",
582       "no-caller": "off",
583       "no-empty": "off",
584       "no-eval": "off",
585       "no-lone-blocks": "off",
586       "no-octal": "off",
587       "no-redeclare": "off",
588       "no-shadow": "off",
589       "no-throw-literal": "off",
590       "no-undef": "off",
591       "no-unsanitized/method": "off",
592       "no-unused-vars": "off",
593       "no-useless-return": "off",
594       "object-shorthand": "off",
595     }
596   }, {
597     "files": [
598       "toolkit/components/aboutmemory/tests/test_aboutmemory.xhtml",
599       "toolkit/components/aboutmemory/tests/test_aboutmemory2.xhtml",
600       "toolkit/components/aboutmemory/tests/test_aboutmemory3.xhtml",
601       "toolkit/components/aboutmemory/tests/test_aboutmemory4.xhtml",
602       "toolkit/components/aboutmemory/tests/test_aboutmemory5.xhtml",
603       "toolkit/components/aboutmemory/tests/test_aboutmemory7.xhtml",
604       "toolkit/components/aboutmemory/tests/test_dumpGCAndCCLogsToFile.xhtml",
605       "toolkit/components/aboutmemory/tests/test_memoryReporters.xhtml",
606       "toolkit/components/aboutmemory/tests/test_memoryReporters2.xhtml",
607       "toolkit/components/aboutmemory/tests/test_sqliteMultiReporter.xhtml",
608       "toolkit/components/ctypes/tests/chrome/test_ctypes.xhtml",
609       "toolkit/components/osfile/tests/mochi/test_osfile_back.xhtml",
610       "toolkit/components/osfile/tests/mochi/test_osfile_comms.xhtml",
611       "toolkit/components/osfile/tests/mochi/test_osfile_front.xhtml",
612       "toolkit/components/places/tests/chrome/browser_disableglobalhistory.xhtml",
613       "toolkit/components/places/tests/chrome/test_browser_disableglobalhistory.xhtml",
614       "toolkit/components/places/tests/chrome/test_favicon_annotations.xhtml",
615       "toolkit/components/workerloader/tests/test_loading.xhtml",
616       "toolkit/content/tests/chrome/bug263683_window.xhtml",
617       "toolkit/content/tests/chrome/bug304188_window.xhtml",
618       "toolkit/content/tests/chrome/bug331215_window.xhtml",
619       "toolkit/content/tests/chrome/bug360437_window.xhtml",
620       "toolkit/content/tests/chrome/bug366992_window.xhtml",
621       "toolkit/content/tests/chrome/bug409624_window.xhtml",
622       "toolkit/content/tests/chrome/bug429723_window.xhtml",
623       "toolkit/content/tests/chrome/bug451540_window.xhtml",
624       "toolkit/content/tests/chrome/dialog_dialogfocus.xhtml",
625       "toolkit/content/tests/chrome/findbar_entireword_window.xhtml",
626       "toolkit/content/tests/chrome/findbar_events_window.xhtml",
627       "toolkit/content/tests/chrome/findbar_window.xhtml",
628       "toolkit/content/tests/chrome/frame_popup_anchor.xhtml",
629       "toolkit/content/tests/chrome/frame_subframe_origin_subframe1.xhtml",
630       "toolkit/content/tests/chrome/frame_subframe_origin_subframe2.xhtml",
631       "toolkit/content/tests/chrome/test_arrowpanel.xhtml",
632       "toolkit/content/tests/chrome/test_autocomplete2.xhtml",
633       "toolkit/content/tests/chrome/test_autocomplete3.xhtml",
634       "toolkit/content/tests/chrome/test_autocomplete4.xhtml",
635       "toolkit/content/tests/chrome/test_autocomplete5.xhtml",
636       "toolkit/content/tests/chrome/test_autocomplete_emphasis.xhtml",
637       "toolkit/content/tests/chrome/test_autocomplete_mac_caret.xhtml",
638       "toolkit/content/tests/chrome/test_autocomplete_placehold_last_complete.xhtml",
639       "toolkit/content/tests/chrome/test_browser_drop.xhtml",
640       "toolkit/content/tests/chrome/test_bug1048178.xhtml",
641       "toolkit/content/tests/chrome/test_bug382990.xhtml",
642       "toolkit/content/tests/chrome/test_bug437844.xhtml",
643       "toolkit/content/tests/chrome/test_bug624329.xhtml",
644       "toolkit/content/tests/chrome/test_bug792324.xhtml",
645       "toolkit/content/tests/chrome/test_contextmenu_list.xhtml",
646       "toolkit/content/tests/chrome/test_cursorsnap.xhtml",
647       "toolkit/content/tests/chrome/test_dialogfocus.xhtml",
648       "toolkit/content/tests/chrome/test_hiddenitems.xhtml",
649       "toolkit/content/tests/chrome/test_hiddenpaging.xhtml",
650       "toolkit/content/tests/chrome/test_maximized_persist.xhtml",
651       "toolkit/content/tests/chrome/test_menu.xhtml",
652       "toolkit/content/tests/chrome/test_menuitem_blink.xhtml",
653       "toolkit/content/tests/chrome/test_menulist.xhtml",
654       "toolkit/content/tests/chrome/test_menulist_keynav.xhtml",
655       "toolkit/content/tests/chrome/test_mousescroll.xhtml",
656       "toolkit/content/tests/chrome/test_mozinputbox_dictionary.xhtml",
657       "toolkit/content/tests/chrome/test_notificationbox.xhtml",
658       "toolkit/content/tests/chrome/test_panel_focus.xhtml",
659       "toolkit/content/tests/chrome/test_popup_keys.xhtml",
660       "toolkit/content/tests/chrome/test_popup_scaled.xhtml",
661       "toolkit/content/tests/chrome/test_popupincontent.xhtml",
662       "toolkit/content/tests/chrome/test_popupremoving.xhtml",
663       "toolkit/content/tests/chrome/test_popupremoving_frame.xhtml",
664       "toolkit/content/tests/chrome/test_position.xhtml",
665       "toolkit/content/tests/chrome/test_preferences.xhtml",
666       "toolkit/content/tests/chrome/test_richlistbox.xhtml",
667       "toolkit/content/tests/chrome/test_righttoleft.xhtml",
668       "toolkit/content/tests/chrome/test_screenPersistence.xhtml",
669       "toolkit/content/tests/chrome/test_scrollbar.xhtml",
670       "toolkit/content/tests/chrome/test_showcaret.xhtml",
671       "toolkit/content/tests/chrome/test_tabbox.xhtml",
672       "toolkit/content/tests/chrome/test_textbox_search.xhtml",
673       "toolkit/content/tests/chrome/test_tree_view.xhtml",
674       "toolkit/content/tests/chrome/window_browser_drop.xhtml",
675       "toolkit/content/tests/chrome/window_cursorsnap_dialog.xhtml",
676       "toolkit/content/tests/chrome/window_cursorsnap_wizard.xhtml",
677       "toolkit/content/tests/chrome/window_keys.xhtml",
678       "toolkit/content/tests/chrome/window_largemenu.xhtml",
679       "toolkit/content/tests/chrome/window_panel.xhtml",
680       "toolkit/content/tests/chrome/window_panel_anchoradjust.xhtml",
681       "toolkit/content/tests/chrome/window_popup_preventdefault_chrome.xhtml",
682       "toolkit/content/tests/chrome/window_preferences.xhtml",
683       "toolkit/content/tests/chrome/window_preferences3.xhtml",
684       "toolkit/content/tests/chrome/window_preferences_beforeaccept.xhtml",
685       "toolkit/content/tests/chrome/window_preferences_commandretarget.xhtml",
686       "toolkit/content/tests/chrome/window_preferences_onsyncfrompreference.xhtml",
687       "toolkit/content/tests/chrome/window_subframe_origin.xhtml",
688       "toolkit/content/tests/chrome/window_titlebar.xhtml",
689       "toolkit/content/tests/chrome/window_tooltip.xhtml",
690       "toolkit/content/tests/widgets/test_contextmenu_menugroup.xhtml",
691       "toolkit/content/tests/widgets/test_contextmenu_nested.xhtml",
692       "toolkit/content/tests/widgets/test_editor_currentURI.xhtml",
693       "toolkit/content/tests/widgets/test_popupanchor.xhtml",
694       "toolkit/content/tests/widgets/test_popupreflows.xhtml",
695       "toolkit/content/tests/widgets/window_menubar.xhtml",
696       "toolkit/modules/tests/chrome/test_bug544442_checkCert.xhtml",
697       "toolkit/profile/test/test_create_profile.xhtml",
698     ],
699     "rules": {
700       "object-shorthand": "off",
701       "consistent-return": "off",
702       "mozilla/consistent-if-bracing": "off",
703       "mozilla/no-compare-against-boolean-literals": "off",
704       "mozilla/no-useless-parameters": "off",
705       "mozilla/no-useless-removeEventListener": "off",
706       "mozilla/prefer-boolean-length-check": "off",
707       "mozilla/use-cc-etc": "off",
708       "mozilla/use-chromeutils-generateqi": "off",
709       "mozilla/use-chromeutils-import": "off",
710       "mozilla/use-default-preference-values": "off",
711       "mozilla/use-services": "off",
712       "no-caller": "off",
713       "no-else-return": "off",
714       "no-eval": "off",
715       "no-fallthrough": "off",
716       "no-irregular-whitespace": "off",
717       "no-lonely-if": "off",
718       "no-nested-ternary": "off",
719       "no-redeclare": "off",
720       "no-sequences": "off",
721       "no-shadow": "off",
722       "no-throw-literal": "off",
723       "no-undef": "off",
724       "no-unneeded-ternary": "off",
725       "no-unused-vars": "off",
726       "no-useless-concat": "off",
727       "no-useless-return": "off",
728     }
729   }, {
730     "files": [
731       "accessible/**",
732       "devtools/**",
733       "dom/**",
734       "docshell/**",
735       "editor/libeditor/tests/**",
736       "editor/spellchecker/tests/test_bug338427.html",
737       "gfx/**",
738       "image/test/browser/browser_image.js",
739       "js/src/builtin/**",
740       "layout/**",
741       "mobile/android/**",
742       "modules/**",
743       "netwerk/**",
744       "remote/**",
745       "security/manager/**",
746       "services/**",
747       "storage/test/unit/test_vacuum.js",
748       "taskcluster/docker/periodic-updates/scripts/**",
749       "testing/**",
750       "tools/**",
751       "widget/tests/test_assign_event_data.html",
752     ],
753     "rules": {
754       "mozilla/prefer-boolean-length-check": "off",
755     }
756   }]