Bug 1735098 - Implement EpochTimeStamp from HR-Time r=edgar
[gecko.git] / .eslintrc.js
blob14a5168dc480d27a845de237437b491ef4b21949
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/. */
5 "use strict";
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");
14 /**
15  * Some configurations have overrides, which can't be specified within overrides,
16  * so we need to remove them.
17  */
18 function removeOverrides(config) {
19   config = { ...config };
20   delete config.overrides;
21   return config;
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.
31   "**/test/mochitest/",
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 = [
41   ...fs
42     .readFileSync(
43       path.join(__dirname, "tools", "rewriting", "ThirdPartyPaths.txt")
44     )
45     .toString("utf-8")
46     .split("\n"),
47   ...fs
48     .readFileSync(
49       path.join(__dirname, "devtools", "client", "debugger", ".eslintignore")
50     )
51     .toString("utf-8")
52     .split("\n")
53     .filter(p => p && !p.startsWith("#"))
54     .map(p => `devtools/client/debugger/${p}`),
57 module.exports = {
58   parser: "@babel/eslint-parser",
59   parserOptions: {
60     sourceType: "script",
61     babelOptions: {
62       configFile: path.join(__dirname, ".babel-eslint.rc.js"),
63     },
64   },
65   ignorePatterns,
66   // Ignore eslint configurations in parent directories.
67   root: true,
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"],
72   plugins: ["mozilla"],
73   overrides: [
74     {
75       // All .eslintrc.js files are in the node environment, so turn that
76       // on here.
77       // https://github.com/eslint/eslint/issues/13008
78       files: [".eslintrc.js"],
79       env: {
80         node: true,
81         browser: false,
82       },
83     },
84     {
85       files: "*.sjs",
86       rules: {
87         complexity: "warn",
88         "no-undef": "warn",
89         "no-empty": "warn",
90         "no-shadow": "warn",
91         "no-redeclare": "warn",
92         "no-unused-vars": "warn",
93         "no-fallthrough": "warn",
94         "no-control-regex": "warn",
95         "no-throw-literal": "warn",
96         "no-useless-concat": "warn",
97         "consistent-return": "warn",
98         "mozilla/use-cc-etc": "warn",
99         "mozilla/use-services": "warn",
100         "mozilla/use-includes-instead-of-indexOf": "warn",
101         "mozilla/no-compare-against-boolean-literals": "warn",
102       },
103     },
104     {
105       files: [
106         "*.html",
107         "*.xhtml",
108         "*.xul",
109         "*.xml",
110         "js/src/builtin/**/*.js",
111         "js/src/shell/**/*.js",
112       ],
113       rules: {
114         // Curly brackets are required for all the tree via recommended.js,
115         // however these files aren't auto-fixable at the moment.
116         curly: "off",
117       },
118     },
119     {
120       // TODO: Bug 1515949. Enable no-undef for gfx/
121       files: "gfx/layers/apz/test/mochitest/**",
122       rules: {
123         "no-undef": "off",
124       },
125     },
126     {
127       ...removeOverrides(xpcshellTestConfig),
128       files: xpcshellTestPaths.map(path => `${path}**`),
129       excludedFiles: "devtools/**",
130     },
131     {
132       // If it is an xpcshell head file, we turn off global unused variable checks, as it
133       // would require searching the other test files to know if they are used or not.
134       // This would be expensive and slow, and it isn't worth it for head files.
135       // We could get developers to declare as exported, but that doesn't seem worth it.
136       files: xpcshellTestPaths.map(path => `${path}head*.js`),
137       rules: {
138         "no-unused-vars": [
139           "error",
140           {
141             args: "none",
142             vars: "local",
143           },
144         ],
145       },
146     },
147     {
148       // This section enables warning of no-unused-vars globally for all test*.js
149       // files in xpcshell test paths.
150       // These are turned into errors with selected exclusions in the next
151       // section.
152       // Bug 1612907: This section should go away once the exclusions are removed
153       // from the following section.
154       files: xpcshellTestPaths.map(path => `${path}test*.js`),
155       rules: {
156         // No declaring variables that are never used
157         "no-unused-vars": [
158           "warn",
159           {
160             args: "none",
161             vars: "all",
162           },
163         ],
164       },
165     },
166     {
167       // This section makes global issues with no-unused-vars be reported as
168       // errors - except for the excluded lists which are being fixed in the
169       // dependencies of bug 1612907.
170       files: xpcshellTestPaths.map(path => `${path}test*.js`),
171       excludedFiles: [
172         // These are suitable as good first bugs, take one or two related lines
173         // per bug.
174         "caps/tests/unit/test_origin.js",
175         "caps/tests/unit/test_site_origin.js",
176         "chrome/test/unit/test_no_remote_registration.js",
177         "extensions/permissions/**",
178         "image/test/unit/**",
179         "intl/uconv/tests/unit/test_bug317216.js",
180         "intl/uconv/tests/unit/test_bug340714.js",
181         "modules/libjar/test/unit/test_empty_jar_telemetry.js",
182         "modules/libjar/zipwriter/test/unit/test_alignment.js",
183         "modules/libjar/zipwriter/test/unit/test_bug419769_2.js",
184         "modules/libjar/zipwriter/test/unit/test_storedata.js",
185         "modules/libjar/zipwriter/test/unit/test_zippermissions.js",
186         "modules/libpref/test/unit/test_changeType.js",
187         "modules/libpref/test/unit/test_dirtyPrefs.js",
188         "toolkit/crashreporter/test/unit/test_crash_AsyncShutdown.js",
189         "toolkit/mozapps/update/tests/unit_aus_update/testConstants.js",
190         "xpcom/tests/unit/test_hidden_files.js",
191         "xpcom/tests/unit/test_localfile.js",
193         // These are more complicated bugs which may require some in-depth
194         // investigation or different solutions. They are also likely to be
195         // a reasonable size.
196         "browser/components/**",
197         "browser/modules/**",
198         "dom/**",
199         "netwerk/**",
200         "security/manager/ssl/tests/unit/**",
201         "services/**",
202         "testing/xpcshell/**",
203         "toolkit/components/**",
204         "toolkit/modules/**",
205       ],
206       rules: {
207         // No declaring variables that are never used
208         "no-unused-vars": [
209           "error",
210           {
211             args: "none",
212             vars: "all",
213           },
214         ],
215       },
216     },
217     {
218       ...browserTestConfig,
219       files: browserTestPaths.map(path => `${path}**`),
220     },
221     {
222       ...removeOverrides(mochitestTestConfig),
223       files: mochitestTestPaths.map(path => `${path}**`),
224       excludedFiles: ["security/manager/ssl/tests/mochitest/browser/**"],
225     },
226     {
227       ...removeOverrides(chromeTestConfig),
228       files: chromeTestPaths.map(path => `${path}**`),
229     },
230     {
231       env: {
232         // Ideally we wouldn't be using the simpletest env here, but our uses of
233         // js files mean we pick up everything from the global scope, which could
234         // be any one of a number of html files. So we just allow the basics...
235         "mozilla/simpletest": true,
236       },
237       files: [
238         ...mochitestTestPaths.map(path => `${path}/**/*.js`),
239         ...chromeTestPaths.map(path => `${path}/**/*.js`),
240       ],
241     },
242     {
243       files: [
244         "netwerk/cookie/test/browser/**",
245         "netwerk/test/browser/**",
246         "netwerk/test/mochitests/**",
247         "netwerk/test/unit*/**",
248       ],
249       rules: {
250         "mozilla/no-arbitrary-setTimeout": "off",
251         "mozilla/no-define-cc-etc": "off",
252         "mozilla/use-services": "off",
253         "consistent-return": "off",
254         "no-eval": "off",
255         "no-global-assign": "off",
256         "no-nested-ternary": "off",
257         "no-redeclare": "off",
258         "no-shadow": "off",
259         "no-throw-literal": "off",
260       },
261     },
262     {
263       files: ["layout/**"],
264       rules: {
265         "object-shorthand": "off",
266         "mozilla/avoid-removeChild": "off",
267         "mozilla/consistent-if-bracing": "off",
268         "mozilla/reject-importGlobalProperties": "off",
269         "mozilla/no-arbitrary-setTimeout": "off",
270         "mozilla/no-define-cc-etc": "off",
271         "mozilla/use-chromeutils-generateqi": "off",
272         "mozilla/use-default-preference-values": "off",
273         "mozilla/use-includes-instead-of-indexOf": "off",
274         "mozilla/use-services": "off",
275         "mozilla/use-ownerGlobal": "off",
276         complexity: "off",
277         "consistent-return": "off",
278         "no-array-constructor": "off",
279         "no-caller": "off",
280         "no-cond-assign": "off",
281         "no-extra-boolean-cast": "off",
282         "no-eval": "off",
283         "no-func-assign": "off",
284         "no-global-assign": "off",
285         "no-implied-eval": "off",
286         "no-lonely-if": "off",
287         "no-nested-ternary": "off",
288         "no-new-wrappers": "off",
289         "no-redeclare": "off",
290         "no-restricted-globals": "off",
291         "no-return-await": "off",
292         "no-sequences": "off",
293         "no-throw-literal": "off",
294         "no-useless-concat": "off",
295         "no-undef": "off",
296         "no-unreachable": "off",
297         "no-unsanitized/method": "off",
298         "no-unsanitized/property": "off",
299         "no-unsafe-negation": "off",
300         "no-unused-vars": "off",
301         "no-useless-return": "off",
302       },
303     },
304     {
305       files: [
306         "dom/animation/**",
307         "dom/base/test/*.*",
308         "dom/base/test/unit/test_serializers_entities*.js",
309         "dom/base/test/unit_ipc/**",
310         "dom/base/test/jsmodules/**",
311         "dom/base/*.*",
312         "dom/canvas/**",
313         "dom/encoding/**",
314         "dom/events/**",
315         "dom/fetch/**",
316         "dom/file/**",
317         "dom/html/**",
318         "dom/jsurl/**",
319         "dom/media/tests/**",
320         "dom/media/webaudio/**",
321         "dom/media/webrtc/tests/**",
322         "dom/media/webspeech/**",
323         "dom/messagechannel/**",
324         "dom/midi/**",
325         "dom/network/**",
326         "dom/payments/**",
327         "dom/performance/**",
328         "dom/permission/**",
329         "dom/quota/**",
330         "dom/security/test/cors/**",
331         "dom/security/test/csp/**",
332         "dom/security/test/mixedcontentblocker/**",
333         "dom/serviceworkers/**",
334         "dom/smil/**",
335         "dom/tests/mochitest/**",
336         "dom/u2f/**",
337         "dom/vr/**",
338         "dom/webauthn/**",
339         "dom/webgpu/**",
340         "dom/websocket/**",
341         "dom/workers/**",
342         "dom/worklet/**",
343         "dom/xml/**",
344         "dom/xslt/**",
345         "dom/xul/**",
346         "dom/ipc/test.xhtml",
347       ],
348       rules: {
349         "consistent-return": "off",
350         "mozilla/avoid-removeChild": "off",
351         "mozilla/consistent-if-bracing": "off",
352         "mozilla/no-arbitrary-setTimeout": "off",
353         "mozilla/no-compare-against-boolean-literals": "off",
354         "mozilla/no-define-cc-etc": "off",
355         "mozilla/reject-importGlobalProperties": "off",
356         "mozilla/use-cc-etc": "off",
357         "mozilla/use-chromeutils-generateqi": "off",
358         "mozilla/use-chromeutils-import": "off",
359         "mozilla/use-includes-instead-of-indexOf": "off",
360         "mozilla/use-ownerGlobal": "off",
361         "mozilla/use-services": "off",
362         "no-array-constructor": "off",
363         "no-caller": "off",
364         "no-cond-assign": "off",
365         "no-control-regex": "off",
366         "no-debugger": "off",
367         "no-else-return": "off",
368         "no-empty": "off",
369         "no-eval": "off",
370         "no-func-assign": "off",
371         "no-global-assign": "off",
372         "no-implied-eval": "off",
373         "no-lone-blocks": "off",
374         "no-lonely-if": "off",
375         "no-nested-ternary": "off",
376         "no-new-object": "off",
377         "no-new-wrappers": "off",
378         "no-redeclare": "off",
379         "no-return-await": "off",
380         "no-restricted-globals": "off",
381         "no-self-assign": "off",
382         "no-self-compare": "off",
383         "no-sequences": "off",
384         "no-shadow": "off",
385         "no-shadow-restricted-names": "off",
386         "no-sparse-arrays": "off",
387         "no-throw-literal": "off",
388         "no-unreachable": "off",
389         "no-unsanitized/method": "off",
390         "no-unsanitized/property": "off",
391         "no-undef": "off",
392         "no-unused-vars": "off",
393         "no-useless-call": "off",
394         "no-useless-concat": "off",
395         "no-useless-return": "off",
396         "no-with": "off",
397       },
398     },
399     {
400       files: [
401         "testing/mochitest/browser-harness.xhtml",
402         "testing/mochitest/chrome/test_chromeGetTestFile.xhtml",
403         "testing/mochitest/chrome/test_sanityEventUtils.xhtml",
404         "testing/mochitest/chrome/test_sanityException.xhtml",
405         "testing/mochitest/chrome/test_sanityException2.xhtml",
406         "testing/mochitest/harness.xhtml",
407       ],
408       rules: {
409         "dot-notation": "off",
410         "object-shorthand": "off",
411         "mozilla/use-services": "off",
412         "mozilla/no-compare-against-boolean-literals": "off",
413         "mozilla/no-useless-parameters": "off",
414         "mozilla/no-useless-removeEventListener": "off",
415         "mozilla/use-cc-etc": "off",
416         "consistent-return": "off",
417         "no-fallthrough": "off",
418         "no-nested-ternary": "off",
419         "no-redeclare": "off",
420         "no-sequences": "off",
421         "no-shadow": "off",
422         "no-throw-literal": "off",
423         "no-undef": "off",
424         "no-unsanitized/property": "off",
425         "no-unused-vars": "off",
426         "no-useless-call": "off",
427       },
428     },
429     {
430       files: [
431         "dom/base/test/chrome/file_bug1139964.xhtml",
432         "dom/base/test/chrome/file_bug549682.xhtml",
433         "dom/base/test/chrome/file_bug616841.xhtml",
434         "dom/base/test/chrome/file_bug990812-1.xhtml",
435         "dom/base/test/chrome/file_bug990812-2.xhtml",
436         "dom/base/test/chrome/file_bug990812-3.xhtml",
437         "dom/base/test/chrome/file_bug990812-4.xhtml",
438         "dom/base/test/chrome/file_bug990812-5.xhtml",
439         "dom/base/test/chrome/file_bug990812.xhtml",
440         "dom/base/test/chrome/test_bug1098074_throw_from_ReceiveMessage.xhtml",
441         "dom/base/test/chrome/test_bug339494.xhtml",
442         "dom/base/test/chrome/test_bug429785.xhtml",
443         "dom/base/test/chrome/test_bug467123.xhtml",
444         "dom/base/test/chrome/test_bug683852.xhtml",
445         "dom/base/test/chrome/test_bug780529.xhtml",
446         "dom/base/test/chrome/test_bug800386.xhtml",
447         "dom/base/test/chrome/test_bug884693.xhtml",
448         "dom/base/test/chrome/test_document-element-inserted.xhtml",
449         "dom/base/test/chrome/test_domparsing.xhtml",
450         "dom/base/test/chrome/test_fileconstructor.xhtml",
451         "dom/base/test/chrome/title_window.xhtml",
452         "dom/base/test/chrome/window_nsITextInputProcessor.xhtml",
453         "dom/base/test/chrome/window_swapFrameLoaders.xhtml",
454         "dom/base/test/test_domrequesthelper.xhtml",
455         "dom/bindings/test/test_bug1123516_maplikesetlikechrome.xhtml",
456         "dom/console/tests/test_jsm.xhtml",
457         "dom/events/test/test_bug1412775.xhtml",
458         "dom/events/test/test_bug336682_2.xhtml",
459         "dom/events/test/test_bug415498.xhtml",
460         "dom/events/test/test_bug602962.xhtml",
461         "dom/events/test/test_bug617528.xhtml",
462         "dom/events/test/test_bug679494.xhtml",
463         "dom/indexedDB/test/test_globalObjects_chrome.xhtml",
464         "dom/indexedDB/test/test_wrappedArray.xhtml",
465         "dom/ipc/test.xhtml",
466         "dom/ipc/tests/test_process_error.xhtml",
467         "dom/notification/test/chrome/test_notification_system_principal.xhtml",
468         "dom/security/test/general/test_bug1277803.xhtml",
469         "dom/serviceworkers/test/test_serviceworkerinfo.xhtml",
470         "dom/serviceworkers/test/test_serviceworkermanager.xhtml",
471         "dom/system/tests/test_constants.xhtml",
472         "dom/tests/mochitest/chrome/DOMWindowCreated_chrome.xhtml",
473         "dom/tests/mochitest/chrome/MozDomFullscreen_chrome.xhtml",
474         "dom/tests/mochitest/chrome/sizemode_attribute.xhtml",
475         "dom/tests/mochitest/chrome/test_cyclecollector.xhtml",
476         "dom/tests/mochitest/chrome/test_docshell_swap.xhtml",
477         "dom/tests/mochitest/chrome/window_focus.xhtml",
478         "dom/url/tests/test_bug883784.xhtml",
479         "dom/workers/test/test_WorkerDebugger.xhtml",
480         "dom/workers/test/test_WorkerDebugger_console.xhtml",
481         "dom/workers/test/test_fileReadSlice.xhtml",
482         "dom/workers/test/test_fileReaderSync.xhtml",
483         "dom/workers/test/test_fileSlice.xhtml",
484       ],
485       rules: {
486         "mozilla/no-useless-parameters": "off",
487         "mozilla/no-useless-removeEventListener": "off",
488         "mozilla/use-chromeutils-generateqi": "off",
489         "mozilla/use-services": "off",
490         complexity: "off",
491         "no-array-constructor": "off",
492         "no-caller": "off",
493         "no-empty": "off",
494         "no-eval": "off",
495         "no-lone-blocks": "off",
496         "no-redeclare": "off",
497         "no-shadow": "off",
498         "no-throw-literal": "off",
499         "no-undef": "off",
500         "no-unsanitized/method": "off",
501         "no-unused-vars": "off",
502         "no-useless-return": "off",
503         "object-shorthand": "off",
504       },
505     },
506     {
507       files: [
508         "accessible/**",
509         "devtools/**",
510         "dom/**",
511         "docshell/**",
512         "editor/libeditor/tests/**",
513         "editor/spellchecker/tests/test_bug338427.html",
514         "gfx/**",
515         "image/test/browser/browser_image.js",
516         "js/src/builtin/**",
517         "layout/**",
518         "mobile/android/**",
519         "modules/**",
520         "netwerk/**",
521         "remote/**",
522         "security/manager/**",
523         "services/**",
524         "storage/test/unit/test_vacuum.js",
525         "taskcluster/docker/periodic-updates/scripts/**",
526         "testing/**",
527         "tools/**",
528         "widget/tests/test_assign_event_data.html",
529       ],
530       rules: {
531         "mozilla/prefer-boolean-length-check": "off",
532       },
533     },
534     {
535       // TODO: Bug 1609271 Fix all violations for ChromeUtils.import(..., null)
536       files: [
537         "browser/base/content/test/sync/browser_fxa_web_channel.js",
538         "browser/components/customizableui/test/browser_1042100_default_placements_update.js",
539         "browser/components/customizableui/test/browser_1096763_seen_widgets_post_reset.js",
540         "browser/components/customizableui/test/browser_1161838_inserted_new_default_buttons.js",
541         "browser/components/customizableui/test/browser_989338_saved_placements_not_resaved.js",
542         "browser/components/customizableui/test/browser_currentset_post_reset.js",
543         "browser/components/customizableui/test/browser_panel_keyboard_navigation.js",
544         "browser/components/customizableui/test/browser_proton_toolbar_hide_toolbarbuttons.js",
545         "browser/components/migration/tests/unit/test_Edge_db_migration.js",
546         "browser/components/translation/test/unit/test_cld2.js",
547         "browser/extensions/formautofill/test/unit/test_sync.js",
548         "devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_addons_debug_popup.js",
549         "dom/ipc/tests/browser_memory_distribution_telemetry.js",
550         "dom/push/test/xpcshell/head.js",
551         "dom/push/test/xpcshell/test_broadcast_success.js",
552         "dom/push/test/xpcshell/test_crypto.js",
553         "services/common/tests/unit/head_helpers.js",
554         "services/common/tests/unit/test_uptake_telemetry.js",
555         "services/fxaccounts/tests/xpcshell/test_accounts.js",
556         "services/fxaccounts/tests/xpcshell/test_accounts_device_registration.js",
557         "services/fxaccounts/tests/xpcshell/test_loginmgr_storage.js",
558         "services/fxaccounts/tests/xpcshell/test_oauth_token_storage.js",
559         "services/fxaccounts/tests/xpcshell/test_oauth_tokens.js",
560         "services/fxaccounts/tests/xpcshell/test_web_channel.js",
561         "services/sync/modules-testing/utils.js",
562         "services/sync/tests/unit/test_postqueue.js",
563         "toolkit/components/cloudstorage/tests/unit/test_cloudstorage.js",
564         "toolkit/components/crashes/tests/xpcshell/test_crash_manager.js",
565         "toolkit/components/crashes/tests/xpcshell/test_crash_service.js",
566         "toolkit/components/crashes/tests/xpcshell/test_crash_store.js",
567         "toolkit/components/featuregates/test/unit/test_FeatureGate.js",
568         "toolkit/components/normandy/test/browser/browser_actions_ShowHeartbeatAction.js",
569         "toolkit/modules/subprocess/test/xpcshell/test_subprocess.js",
570         "toolkit/modules/tests/xpcshell/test_GMPInstallManager.js",
571         "toolkit/mozapps/extensions/internal/AddonTestUtils.jsm",
572         "toolkit/mozapps/extensions/test/browser/browser_gmpProvider.js",
573         "toolkit/mozapps/extensions/test/xpcshell/head_addons.js",
574         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_clients.js",
575         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_regexp_split.js",
576         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_targetapp_filter.js",
577         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklist_telemetry.js",
578         "toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/test_blocklistchange.js",
579         "toolkit/mozapps/extensions/test/xpcshell/test_gmpProvider.js",
580         "toolkit/mozapps/extensions/test/xpcshell/test_no_addons.js",
581         "toolkit/mozapps/extensions/test/xpcshell/test_permissions_prefs.js",
582         "toolkit/mozapps/extensions/test/xpcshell/test_signed_updatepref.js",
583         "toolkit/mozapps/extensions/test/xpcshell/test_signed_verify.js",
584         "toolkit/mozapps/extensions/test/xpcshell/test_webextension.js",
585         "toolkit/mozapps/extensions/test/xpcshell/test_webextension_events.js",
586         "toolkit/mozapps/extensions/test/xpcshell/test_XPIStates.js",
587       ],
588       rules: {
589         "mozilla/reject-chromeutils-import-params": "warn",
590       },
591     },
592   ],