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