@vinicunca/eslint-config 2.4.4 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +104 -60
- package/dist/index.d.cts +926 -396
- package/dist/index.d.ts +926 -396
- package/dist/index.js +105 -64
- package/package.json +31 -31
package/dist/index.d.ts
CHANGED
|
@@ -4,12 +4,13 @@ import { Linter } from 'eslint';
|
|
|
4
4
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
5
5
|
import { Options } from 'eslint-processor-vue-blocks';
|
|
6
6
|
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
8
8
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
9
9
|
import * as eslintPluginImportX from 'eslint-plugin-import-x';
|
|
10
10
|
export { eslintPluginImportX as pluginImport };
|
|
11
11
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
12
12
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
13
|
+
export { default as pluginSonar } from 'eslint-plugin-sonarjs';
|
|
13
14
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
14
15
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
15
16
|
|
|
@@ -23,6 +24,51 @@ interface RuleOptions {
|
|
|
23
24
|
* @see https://eslint.org/docs/latest/rules/accessor-pairs
|
|
24
25
|
*/
|
|
25
26
|
'accessor-pairs'?: Linter.RuleEntry<AccessorPairs>
|
|
27
|
+
/**
|
|
28
|
+
* Having line breaks styles to object, array and named imports
|
|
29
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
30
|
+
*/
|
|
31
|
+
'antfu/consistent-list-newline'?: Linter.RuleEntry<AntfuConsistentListNewline>
|
|
32
|
+
/**
|
|
33
|
+
* Enforce Anthony's style of curly bracket
|
|
34
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.test.ts
|
|
35
|
+
*/
|
|
36
|
+
'antfu/curly'?: Linter.RuleEntry<[]>
|
|
37
|
+
/**
|
|
38
|
+
* Newline after if
|
|
39
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
|
|
40
|
+
*/
|
|
41
|
+
'antfu/if-newline'?: Linter.RuleEntry<[]>
|
|
42
|
+
/**
|
|
43
|
+
* Fix duplication in imports
|
|
44
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
|
|
45
|
+
*/
|
|
46
|
+
'antfu/import-dedupe'?: Linter.RuleEntry<[]>
|
|
47
|
+
/**
|
|
48
|
+
* Enforce consistent indentation in `unindent` template tag
|
|
49
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.test.ts
|
|
50
|
+
*/
|
|
51
|
+
'antfu/indent-unindent'?: Linter.RuleEntry<AntfuIndentUnindent>
|
|
52
|
+
/**
|
|
53
|
+
* Prevent importing modules in `dist` folder
|
|
54
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.test.ts
|
|
55
|
+
*/
|
|
56
|
+
'antfu/no-import-dist'?: Linter.RuleEntry<[]>
|
|
57
|
+
/**
|
|
58
|
+
* Prevent importing modules in `node_modules` folder by relative or absolute path
|
|
59
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
|
|
60
|
+
*/
|
|
61
|
+
'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>
|
|
62
|
+
/**
|
|
63
|
+
* Do not use `exports =`
|
|
64
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
|
|
65
|
+
*/
|
|
66
|
+
'antfu/no-ts-export-equal'?: Linter.RuleEntry<[]>
|
|
67
|
+
/**
|
|
68
|
+
* Enforce top-level functions to be declared with function keyword
|
|
69
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/top-level-function.md
|
|
70
|
+
*/
|
|
71
|
+
'antfu/top-level-function'?: Linter.RuleEntry<[]>
|
|
26
72
|
/**
|
|
27
73
|
* Enforce linebreaks after opening and before closing array brackets
|
|
28
74
|
* @see https://eslint.org/docs/latest/rules/array-bracket-newline
|
|
@@ -262,7 +308,7 @@ interface RuleOptions {
|
|
|
262
308
|
*/
|
|
263
309
|
'func-names'?: Linter.RuleEntry<FuncNames>
|
|
264
310
|
/**
|
|
265
|
-
* Enforce the consistent use of either `function` declarations or expressions
|
|
311
|
+
* Enforce the consistent use of either `function` declarations or expressions assigned to variables
|
|
266
312
|
* @see https://eslint.org/docs/latest/rules/func-style
|
|
267
313
|
*/
|
|
268
314
|
'func-style'?: Linter.RuleEntry<FuncStyle>
|
|
@@ -340,42 +386,42 @@ interface RuleOptions {
|
|
|
340
386
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
341
387
|
/**
|
|
342
388
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
343
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
389
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/consistent-type-specifier-style.md
|
|
344
390
|
*/
|
|
345
391
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
346
392
|
/**
|
|
347
393
|
* Ensure a default export is present, given a default import.
|
|
348
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
394
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/default.md
|
|
349
395
|
*/
|
|
350
396
|
'import/default'?: Linter.RuleEntry<[]>
|
|
351
397
|
/**
|
|
352
398
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
353
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/dynamic-import-chunkname.md
|
|
354
400
|
*/
|
|
355
401
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
356
402
|
/**
|
|
357
403
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
358
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/export.md
|
|
359
405
|
*/
|
|
360
406
|
'import/export'?: Linter.RuleEntry<[]>
|
|
361
407
|
/**
|
|
362
408
|
* Ensure all exports appear after other statements.
|
|
363
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/exports-last.md
|
|
364
410
|
*/
|
|
365
411
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
366
412
|
/**
|
|
367
413
|
* Ensure consistent use of file extension within the import path.
|
|
368
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
414
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/extensions.md
|
|
369
415
|
*/
|
|
370
416
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
371
417
|
/**
|
|
372
418
|
* Ensure all imports appear before other statements.
|
|
373
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
419
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/first.md
|
|
374
420
|
*/
|
|
375
421
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
376
422
|
/**
|
|
377
423
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
378
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
424
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/group-exports.md
|
|
379
425
|
*/
|
|
380
426
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
381
427
|
/**
|
|
@@ -386,182 +432,182 @@ interface RuleOptions {
|
|
|
386
432
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
387
433
|
/**
|
|
388
434
|
* Enforce the maximum number of dependencies a module can have.
|
|
389
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
435
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/max-dependencies.md
|
|
390
436
|
*/
|
|
391
437
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
392
438
|
/**
|
|
393
439
|
* Ensure named imports correspond to a named export in the remote file.
|
|
394
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
440
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/named.md
|
|
395
441
|
*/
|
|
396
442
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
397
443
|
/**
|
|
398
444
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
399
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
445
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/namespace.md
|
|
400
446
|
*/
|
|
401
447
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
402
448
|
/**
|
|
403
449
|
* Enforce a newline after import statements.
|
|
404
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
450
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/newline-after-import.md
|
|
405
451
|
*/
|
|
406
452
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
407
453
|
/**
|
|
408
454
|
* Forbid import of modules using absolute paths.
|
|
409
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
455
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-absolute-path.md
|
|
410
456
|
*/
|
|
411
457
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
412
458
|
/**
|
|
413
459
|
* Forbid AMD `require` and `define` calls.
|
|
414
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
460
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-amd.md
|
|
415
461
|
*/
|
|
416
462
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
417
463
|
/**
|
|
418
464
|
* Forbid anonymous values as default exports.
|
|
419
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
465
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-anonymous-default-export.md
|
|
420
466
|
*/
|
|
421
467
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
422
468
|
/**
|
|
423
469
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
424
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
470
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-commonjs.md
|
|
425
471
|
*/
|
|
426
472
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
427
473
|
/**
|
|
428
474
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
429
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
475
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-cycle.md
|
|
430
476
|
*/
|
|
431
477
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
432
478
|
/**
|
|
433
479
|
* Forbid default exports.
|
|
434
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
480
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-default-export.md
|
|
435
481
|
*/
|
|
436
482
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
437
483
|
/**
|
|
438
484
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
439
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-deprecated.md
|
|
440
486
|
*/
|
|
441
487
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
442
488
|
/**
|
|
443
489
|
* Forbid repeated import of the same module in multiple places.
|
|
444
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-duplicates.md
|
|
445
491
|
*/
|
|
446
492
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
447
493
|
/**
|
|
448
494
|
* Forbid `require()` calls with expressions.
|
|
449
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-dynamic-require.md
|
|
450
496
|
*/
|
|
451
497
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
452
498
|
/**
|
|
453
499
|
* Forbid empty named import blocks.
|
|
454
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-empty-named-blocks.md
|
|
455
501
|
*/
|
|
456
502
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
457
503
|
/**
|
|
458
504
|
* Forbid the use of extraneous packages.
|
|
459
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-extraneous-dependencies.md
|
|
460
506
|
*/
|
|
461
507
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
462
508
|
/**
|
|
463
509
|
* Forbid import statements with CommonJS module.exports.
|
|
464
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-import-module-exports.md
|
|
465
511
|
*/
|
|
466
512
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
467
513
|
/**
|
|
468
514
|
* Forbid importing the submodules of other modules.
|
|
469
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
515
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-internal-modules.md
|
|
470
516
|
*/
|
|
471
517
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
472
518
|
/**
|
|
473
519
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
474
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
520
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-mutable-exports.md
|
|
475
521
|
*/
|
|
476
522
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
477
523
|
/**
|
|
478
524
|
* Forbid use of exported name as identifier of default export.
|
|
479
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
525
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default.md
|
|
480
526
|
*/
|
|
481
527
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
482
528
|
/**
|
|
483
529
|
* Forbid use of exported name as property of default export.
|
|
484
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default-member.md
|
|
485
531
|
*/
|
|
486
532
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
487
533
|
/**
|
|
488
534
|
* Forbid named default exports.
|
|
489
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-default.md
|
|
490
536
|
*/
|
|
491
537
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
492
538
|
/**
|
|
493
539
|
* Forbid named exports.
|
|
494
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-export.md
|
|
495
541
|
*/
|
|
496
542
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
497
543
|
/**
|
|
498
544
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
499
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-namespace.md
|
|
500
546
|
*/
|
|
501
547
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
502
548
|
/**
|
|
503
549
|
* Forbid Node.js builtin modules.
|
|
504
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-nodejs-modules.md
|
|
505
551
|
*/
|
|
506
552
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
507
553
|
/**
|
|
508
554
|
* Forbid importing packages through relative paths.
|
|
509
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-packages.md
|
|
510
556
|
*/
|
|
511
557
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
512
558
|
/**
|
|
513
559
|
* Forbid importing modules from parent directories.
|
|
514
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-parent-imports.md
|
|
515
561
|
*/
|
|
516
562
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
517
563
|
/**
|
|
518
564
|
* Enforce which files can be imported in a given folder.
|
|
519
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-restricted-paths.md
|
|
520
566
|
*/
|
|
521
567
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
522
568
|
/**
|
|
523
569
|
* Forbid a module from importing itself.
|
|
524
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-self-import.md
|
|
525
571
|
*/
|
|
526
572
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
527
573
|
/**
|
|
528
574
|
* Forbid unassigned imports.
|
|
529
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unassigned-import.md
|
|
530
576
|
*/
|
|
531
577
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
532
578
|
/**
|
|
533
579
|
* Ensure imports point to a file/module that can be resolved.
|
|
534
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unresolved.md
|
|
535
581
|
*/
|
|
536
582
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
537
583
|
/**
|
|
538
584
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
539
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unused-modules.md
|
|
540
586
|
*/
|
|
541
587
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
542
588
|
/**
|
|
543
589
|
* Forbid unnecessary path segments in import and require statements.
|
|
544
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-useless-path-segments.md
|
|
545
591
|
*/
|
|
546
592
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
547
593
|
/**
|
|
548
594
|
* Forbid webpack loader syntax in imports.
|
|
549
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-webpack-loader-syntax.md
|
|
550
596
|
*/
|
|
551
597
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
552
598
|
/**
|
|
553
599
|
* Enforce a convention in module import order.
|
|
554
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
600
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/order.md
|
|
555
601
|
*/
|
|
556
602
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
557
603
|
/**
|
|
558
604
|
* Prefer a default export if module exports a single name or multiple names.
|
|
559
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
605
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/prefer-default-export.md
|
|
560
606
|
*/
|
|
561
607
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
562
608
|
/**
|
|
563
609
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
564
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
610
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/unambiguous.md
|
|
565
611
|
*/
|
|
566
612
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
567
613
|
/**
|
|
@@ -1085,6 +1131,7 @@ interface RuleOptions {
|
|
|
1085
1131
|
/**
|
|
1086
1132
|
* Enforce position of line comments
|
|
1087
1133
|
* @see https://eslint.org/docs/latest/rules/line-comment-position
|
|
1134
|
+
* @deprecated
|
|
1088
1135
|
*/
|
|
1089
1136
|
'line-comment-position'?: Linter.RuleEntry<LineCommentPosition>
|
|
1090
1137
|
/**
|
|
@@ -1166,6 +1213,7 @@ interface RuleOptions {
|
|
|
1166
1213
|
/**
|
|
1167
1214
|
* Enforce a particular style for multiline comments
|
|
1168
1215
|
* @see https://eslint.org/docs/latest/rules/multiline-comment-style
|
|
1216
|
+
* @deprecated
|
|
1169
1217
|
*/
|
|
1170
1218
|
'multiline-comment-style'?: Linter.RuleEntry<MultilineCommentStyle>
|
|
1171
1219
|
/**
|
|
@@ -1538,7 +1586,7 @@ interface RuleOptions {
|
|
|
1538
1586
|
* Disallow characters which are made with multiple code points in character class syntax
|
|
1539
1587
|
* @see https://eslint.org/docs/latest/rules/no-misleading-character-class
|
|
1540
1588
|
*/
|
|
1541
|
-
'no-misleading-character-class'?: Linter.RuleEntry<
|
|
1589
|
+
'no-misleading-character-class'?: Linter.RuleEntry<NoMisleadingCharacterClass>
|
|
1542
1590
|
/**
|
|
1543
1591
|
* Disallow mixed binary operators
|
|
1544
1592
|
* @see https://eslint.org/docs/latest/rules/no-mixed-operators
|
|
@@ -2304,6 +2352,11 @@ interface RuleOptions {
|
|
|
2304
2352
|
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-interfaces
|
|
2305
2353
|
*/
|
|
2306
2354
|
'perfectionist/sort-interfaces'?: Linter.RuleEntry<PerfectionistSortInterfaces>
|
|
2355
|
+
/**
|
|
2356
|
+
* enforce sorted intersection types
|
|
2357
|
+
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-intersection-types
|
|
2358
|
+
*/
|
|
2359
|
+
'perfectionist/sort-intersection-types'?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>
|
|
2307
2360
|
/**
|
|
2308
2361
|
* enforce sorted JSX props
|
|
2309
2362
|
* @see https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
|
|
@@ -2621,7 +2674,7 @@ interface RuleOptions {
|
|
|
2621
2674
|
* Disallows JSX context provider values from taking values that will cause needless rerenders
|
|
2622
2675
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-constructed-context-values.md
|
|
2623
2676
|
*/
|
|
2624
|
-
'react/jsx-no-constructed-context-values'?: Linter.RuleEntry<
|
|
2677
|
+
'react/jsx-no-constructed-context-values'?: Linter.RuleEntry<[]>
|
|
2625
2678
|
/**
|
|
2626
2679
|
* Disallow duplicate properties in JSX
|
|
2627
2680
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md
|
|
@@ -2954,6 +3007,416 @@ interface RuleOptions {
|
|
|
2954
3007
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/void-dom-elements-no-children.md
|
|
2955
3008
|
*/
|
|
2956
3009
|
'react/void-dom-elements-no-children'?: Linter.RuleEntry<[]>
|
|
3010
|
+
/**
|
|
3011
|
+
* disallow confusing quantifiers
|
|
3012
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
3013
|
+
*/
|
|
3014
|
+
'regexp/confusing-quantifier'?: Linter.RuleEntry<[]>
|
|
3015
|
+
/**
|
|
3016
|
+
* enforce consistent escaping of control characters
|
|
3017
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html
|
|
3018
|
+
*/
|
|
3019
|
+
'regexp/control-character-escape'?: Linter.RuleEntry<[]>
|
|
3020
|
+
/**
|
|
3021
|
+
* enforce single grapheme in string literal
|
|
3022
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html
|
|
3023
|
+
*/
|
|
3024
|
+
'regexp/grapheme-string-literal'?: Linter.RuleEntry<[]>
|
|
3025
|
+
/**
|
|
3026
|
+
* enforce consistent usage of hexadecimal escape
|
|
3027
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html
|
|
3028
|
+
*/
|
|
3029
|
+
'regexp/hexadecimal-escape'?: Linter.RuleEntry<RegexpHexadecimalEscape>
|
|
3030
|
+
/**
|
|
3031
|
+
* enforce into your favorite case
|
|
3032
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html
|
|
3033
|
+
*/
|
|
3034
|
+
'regexp/letter-case'?: Linter.RuleEntry<RegexpLetterCase>
|
|
3035
|
+
/**
|
|
3036
|
+
* enforce match any character style
|
|
3037
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html
|
|
3038
|
+
*/
|
|
3039
|
+
'regexp/match-any'?: Linter.RuleEntry<RegexpMatchAny>
|
|
3040
|
+
/**
|
|
3041
|
+
* enforce use of escapes on negation
|
|
3042
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html
|
|
3043
|
+
*/
|
|
3044
|
+
'regexp/negation'?: Linter.RuleEntry<[]>
|
|
3045
|
+
/**
|
|
3046
|
+
* disallow elements that contradict assertions
|
|
3047
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html
|
|
3048
|
+
*/
|
|
3049
|
+
'regexp/no-contradiction-with-assertion'?: Linter.RuleEntry<[]>
|
|
3050
|
+
/**
|
|
3051
|
+
* disallow control characters
|
|
3052
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html
|
|
3053
|
+
*/
|
|
3054
|
+
'regexp/no-control-character'?: Linter.RuleEntry<[]>
|
|
3055
|
+
/**
|
|
3056
|
+
* disallow duplicate characters in the RegExp character class
|
|
3057
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html
|
|
3058
|
+
*/
|
|
3059
|
+
'regexp/no-dupe-characters-character-class'?: Linter.RuleEntry<[]>
|
|
3060
|
+
/**
|
|
3061
|
+
* disallow duplicate disjunctions
|
|
3062
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html
|
|
3063
|
+
*/
|
|
3064
|
+
'regexp/no-dupe-disjunctions'?: Linter.RuleEntry<RegexpNoDupeDisjunctions>
|
|
3065
|
+
/**
|
|
3066
|
+
* disallow alternatives without elements
|
|
3067
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html
|
|
3068
|
+
*/
|
|
3069
|
+
'regexp/no-empty-alternative'?: Linter.RuleEntry<[]>
|
|
3070
|
+
/**
|
|
3071
|
+
* disallow capturing group that captures empty.
|
|
3072
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html
|
|
3073
|
+
*/
|
|
3074
|
+
'regexp/no-empty-capturing-group'?: Linter.RuleEntry<[]>
|
|
3075
|
+
/**
|
|
3076
|
+
* disallow character classes that match no characters
|
|
3077
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html
|
|
3078
|
+
*/
|
|
3079
|
+
'regexp/no-empty-character-class'?: Linter.RuleEntry<[]>
|
|
3080
|
+
/**
|
|
3081
|
+
* disallow empty group
|
|
3082
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html
|
|
3083
|
+
*/
|
|
3084
|
+
'regexp/no-empty-group'?: Linter.RuleEntry<[]>
|
|
3085
|
+
/**
|
|
3086
|
+
* disallow empty lookahead assertion or empty lookbehind assertion
|
|
3087
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html
|
|
3088
|
+
*/
|
|
3089
|
+
'regexp/no-empty-lookarounds-assertion'?: Linter.RuleEntry<[]>
|
|
3090
|
+
/**
|
|
3091
|
+
* disallow empty string literals in character classes
|
|
3092
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html
|
|
3093
|
+
*/
|
|
3094
|
+
'regexp/no-empty-string-literal'?: Linter.RuleEntry<[]>
|
|
3095
|
+
/**
|
|
3096
|
+
* disallow escape backspace (`[\b]`)
|
|
3097
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html
|
|
3098
|
+
*/
|
|
3099
|
+
'regexp/no-escape-backspace'?: Linter.RuleEntry<[]>
|
|
3100
|
+
/**
|
|
3101
|
+
* disallow unnecessary nested lookaround assertions
|
|
3102
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html
|
|
3103
|
+
*/
|
|
3104
|
+
'regexp/no-extra-lookaround-assertions'?: Linter.RuleEntry<[]>
|
|
3105
|
+
/**
|
|
3106
|
+
* disallow invalid regular expression strings in `RegExp` constructors
|
|
3107
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html
|
|
3108
|
+
*/
|
|
3109
|
+
'regexp/no-invalid-regexp'?: Linter.RuleEntry<[]>
|
|
3110
|
+
/**
|
|
3111
|
+
* disallow invisible raw character
|
|
3112
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html
|
|
3113
|
+
*/
|
|
3114
|
+
'regexp/no-invisible-character'?: Linter.RuleEntry<[]>
|
|
3115
|
+
/**
|
|
3116
|
+
* disallow lazy quantifiers at the end of an expression
|
|
3117
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html
|
|
3118
|
+
*/
|
|
3119
|
+
'regexp/no-lazy-ends'?: Linter.RuleEntry<RegexpNoLazyEnds>
|
|
3120
|
+
/**
|
|
3121
|
+
* disallow legacy RegExp features
|
|
3122
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html
|
|
3123
|
+
*/
|
|
3124
|
+
'regexp/no-legacy-features'?: Linter.RuleEntry<RegexpNoLegacyFeatures>
|
|
3125
|
+
/**
|
|
3126
|
+
* disallow capturing groups that do not behave as one would expect
|
|
3127
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html
|
|
3128
|
+
*/
|
|
3129
|
+
'regexp/no-misleading-capturing-group'?: Linter.RuleEntry<RegexpNoMisleadingCapturingGroup>
|
|
3130
|
+
/**
|
|
3131
|
+
* disallow multi-code-point characters in character classes and quantifiers
|
|
3132
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html
|
|
3133
|
+
*/
|
|
3134
|
+
'regexp/no-misleading-unicode-character'?: Linter.RuleEntry<RegexpNoMisleadingUnicodeCharacter>
|
|
3135
|
+
/**
|
|
3136
|
+
* disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
|
|
3137
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html
|
|
3138
|
+
*/
|
|
3139
|
+
'regexp/no-missing-g-flag'?: Linter.RuleEntry<RegexpNoMissingGFlag>
|
|
3140
|
+
/**
|
|
3141
|
+
* disallow non-standard flags
|
|
3142
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html
|
|
3143
|
+
*/
|
|
3144
|
+
'regexp/no-non-standard-flag'?: Linter.RuleEntry<[]>
|
|
3145
|
+
/**
|
|
3146
|
+
* disallow obscure character ranges
|
|
3147
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html
|
|
3148
|
+
*/
|
|
3149
|
+
'regexp/no-obscure-range'?: Linter.RuleEntry<RegexpNoObscureRange>
|
|
3150
|
+
/**
|
|
3151
|
+
* disallow octal escape sequence
|
|
3152
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html
|
|
3153
|
+
*/
|
|
3154
|
+
'regexp/no-octal'?: Linter.RuleEntry<[]>
|
|
3155
|
+
/**
|
|
3156
|
+
* disallow optional assertions
|
|
3157
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html
|
|
3158
|
+
*/
|
|
3159
|
+
'regexp/no-optional-assertion'?: Linter.RuleEntry<[]>
|
|
3160
|
+
/**
|
|
3161
|
+
* disallow backreferences that reference a group that might not be matched
|
|
3162
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html
|
|
3163
|
+
*/
|
|
3164
|
+
'regexp/no-potentially-useless-backreference'?: Linter.RuleEntry<[]>
|
|
3165
|
+
/**
|
|
3166
|
+
* disallow standalone backslashes (`\`)
|
|
3167
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html
|
|
3168
|
+
*/
|
|
3169
|
+
'regexp/no-standalone-backslash'?: Linter.RuleEntry<[]>
|
|
3170
|
+
/**
|
|
3171
|
+
* disallow exponential and polynomial backtracking
|
|
3172
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html
|
|
3173
|
+
*/
|
|
3174
|
+
'regexp/no-super-linear-backtracking'?: Linter.RuleEntry<RegexpNoSuperLinearBacktracking>
|
|
3175
|
+
/**
|
|
3176
|
+
* disallow quantifiers that cause quadratic moves
|
|
3177
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html
|
|
3178
|
+
*/
|
|
3179
|
+
'regexp/no-super-linear-move'?: Linter.RuleEntry<RegexpNoSuperLinearMove>
|
|
3180
|
+
/**
|
|
3181
|
+
* disallow trivially nested assertions
|
|
3182
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html
|
|
3183
|
+
*/
|
|
3184
|
+
'regexp/no-trivially-nested-assertion'?: Linter.RuleEntry<[]>
|
|
3185
|
+
/**
|
|
3186
|
+
* disallow nested quantifiers that can be rewritten as one quantifier
|
|
3187
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html
|
|
3188
|
+
*/
|
|
3189
|
+
'regexp/no-trivially-nested-quantifier'?: Linter.RuleEntry<[]>
|
|
3190
|
+
/**
|
|
3191
|
+
* disallow unused capturing group
|
|
3192
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html
|
|
3193
|
+
*/
|
|
3194
|
+
'regexp/no-unused-capturing-group'?: Linter.RuleEntry<RegexpNoUnusedCapturingGroup>
|
|
3195
|
+
/**
|
|
3196
|
+
* disallow assertions that are known to always accept (or reject)
|
|
3197
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html
|
|
3198
|
+
*/
|
|
3199
|
+
'regexp/no-useless-assertions'?: Linter.RuleEntry<[]>
|
|
3200
|
+
/**
|
|
3201
|
+
* disallow useless backreferences in regular expressions
|
|
3202
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html
|
|
3203
|
+
*/
|
|
3204
|
+
'regexp/no-useless-backreference'?: Linter.RuleEntry<[]>
|
|
3205
|
+
/**
|
|
3206
|
+
* disallow character class with one character
|
|
3207
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html
|
|
3208
|
+
*/
|
|
3209
|
+
'regexp/no-useless-character-class'?: Linter.RuleEntry<RegexpNoUselessCharacterClass>
|
|
3210
|
+
/**
|
|
3211
|
+
* disallow useless `$` replacements in replacement string
|
|
3212
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html
|
|
3213
|
+
*/
|
|
3214
|
+
'regexp/no-useless-dollar-replacements'?: Linter.RuleEntry<[]>
|
|
3215
|
+
/**
|
|
3216
|
+
* disallow unnecessary escape characters in RegExp
|
|
3217
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html
|
|
3218
|
+
*/
|
|
3219
|
+
'regexp/no-useless-escape'?: Linter.RuleEntry<[]>
|
|
3220
|
+
/**
|
|
3221
|
+
* disallow unnecessary regex flags
|
|
3222
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html
|
|
3223
|
+
*/
|
|
3224
|
+
'regexp/no-useless-flag'?: Linter.RuleEntry<RegexpNoUselessFlag>
|
|
3225
|
+
/**
|
|
3226
|
+
* disallow unnecessarily non-greedy quantifiers
|
|
3227
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html
|
|
3228
|
+
*/
|
|
3229
|
+
'regexp/no-useless-lazy'?: Linter.RuleEntry<[]>
|
|
3230
|
+
/**
|
|
3231
|
+
* disallow unnecessary non-capturing group
|
|
3232
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html
|
|
3233
|
+
*/
|
|
3234
|
+
'regexp/no-useless-non-capturing-group'?: Linter.RuleEntry<RegexpNoUselessNonCapturingGroup>
|
|
3235
|
+
/**
|
|
3236
|
+
* disallow quantifiers that can be removed
|
|
3237
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html
|
|
3238
|
+
*/
|
|
3239
|
+
'regexp/no-useless-quantifier'?: Linter.RuleEntry<[]>
|
|
3240
|
+
/**
|
|
3241
|
+
* disallow unnecessary character ranges
|
|
3242
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html
|
|
3243
|
+
*/
|
|
3244
|
+
'regexp/no-useless-range'?: Linter.RuleEntry<[]>
|
|
3245
|
+
/**
|
|
3246
|
+
* disallow unnecessary elements in expression character classes
|
|
3247
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html
|
|
3248
|
+
*/
|
|
3249
|
+
'regexp/no-useless-set-operand'?: Linter.RuleEntry<[]>
|
|
3250
|
+
/**
|
|
3251
|
+
* disallow string disjunction of single characters in `\q{...}`
|
|
3252
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html
|
|
3253
|
+
*/
|
|
3254
|
+
'regexp/no-useless-string-literal'?: Linter.RuleEntry<[]>
|
|
3255
|
+
/**
|
|
3256
|
+
* disallow unnecessary `{n,m}` quantifier
|
|
3257
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html
|
|
3258
|
+
*/
|
|
3259
|
+
'regexp/no-useless-two-nums-quantifier'?: Linter.RuleEntry<[]>
|
|
3260
|
+
/**
|
|
3261
|
+
* disallow quantifiers with a maximum of zero
|
|
3262
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html
|
|
3263
|
+
*/
|
|
3264
|
+
'regexp/no-zero-quantifier'?: Linter.RuleEntry<[]>
|
|
3265
|
+
/**
|
|
3266
|
+
* disallow the alternatives of lookarounds that end with a non-constant quantifier
|
|
3267
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html
|
|
3268
|
+
*/
|
|
3269
|
+
'regexp/optimal-lookaround-quantifier'?: Linter.RuleEntry<[]>
|
|
3270
|
+
/**
|
|
3271
|
+
* require optimal quantifiers for concatenated quantifiers
|
|
3272
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html
|
|
3273
|
+
*/
|
|
3274
|
+
'regexp/optimal-quantifier-concatenation'?: Linter.RuleEntry<RegexpOptimalQuantifierConcatenation>
|
|
3275
|
+
/**
|
|
3276
|
+
* enforce using character class
|
|
3277
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html
|
|
3278
|
+
*/
|
|
3279
|
+
'regexp/prefer-character-class'?: Linter.RuleEntry<RegexpPreferCharacterClass>
|
|
3280
|
+
/**
|
|
3281
|
+
* enforce using `\d`
|
|
3282
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
|
|
3283
|
+
*/
|
|
3284
|
+
'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>
|
|
3285
|
+
/**
|
|
3286
|
+
* enforces escape of replacement `$` character (`$$`).
|
|
3287
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
|
|
3288
|
+
*/
|
|
3289
|
+
'regexp/prefer-escape-replacement-dollar-char'?: Linter.RuleEntry<[]>
|
|
3290
|
+
/**
|
|
3291
|
+
* prefer lookarounds over capturing group that do not replace
|
|
3292
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
|
|
3293
|
+
*/
|
|
3294
|
+
'regexp/prefer-lookaround'?: Linter.RuleEntry<RegexpPreferLookaround>
|
|
3295
|
+
/**
|
|
3296
|
+
* enforce using named backreferences
|
|
3297
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
|
|
3298
|
+
*/
|
|
3299
|
+
'regexp/prefer-named-backreference'?: Linter.RuleEntry<[]>
|
|
3300
|
+
/**
|
|
3301
|
+
* enforce using named capture groups
|
|
3302
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
|
|
3303
|
+
*/
|
|
3304
|
+
'regexp/prefer-named-capture-group'?: Linter.RuleEntry<[]>
|
|
3305
|
+
/**
|
|
3306
|
+
* enforce using named replacement
|
|
3307
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
|
|
3308
|
+
*/
|
|
3309
|
+
'regexp/prefer-named-replacement'?: Linter.RuleEntry<RegexpPreferNamedReplacement>
|
|
3310
|
+
/**
|
|
3311
|
+
* enforce using `+` quantifier
|
|
3312
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
|
|
3313
|
+
*/
|
|
3314
|
+
'regexp/prefer-plus-quantifier'?: Linter.RuleEntry<[]>
|
|
3315
|
+
/**
|
|
3316
|
+
* prefer predefined assertion over equivalent lookarounds
|
|
3317
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
|
|
3318
|
+
*/
|
|
3319
|
+
'regexp/prefer-predefined-assertion'?: Linter.RuleEntry<[]>
|
|
3320
|
+
/**
|
|
3321
|
+
* enforce using quantifier
|
|
3322
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
3323
|
+
*/
|
|
3324
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<[]>
|
|
3325
|
+
/**
|
|
3326
|
+
* enforce using `?` quantifier
|
|
3327
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
3328
|
+
*/
|
|
3329
|
+
'regexp/prefer-question-quantifier'?: Linter.RuleEntry<[]>
|
|
3330
|
+
/**
|
|
3331
|
+
* enforce using character class range
|
|
3332
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
|
|
3333
|
+
*/
|
|
3334
|
+
'regexp/prefer-range'?: Linter.RuleEntry<RegexpPreferRange>
|
|
3335
|
+
/**
|
|
3336
|
+
* enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
|
|
3337
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
|
|
3338
|
+
*/
|
|
3339
|
+
'regexp/prefer-regexp-exec'?: Linter.RuleEntry<[]>
|
|
3340
|
+
/**
|
|
3341
|
+
* enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
|
|
3342
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
|
|
3343
|
+
*/
|
|
3344
|
+
'regexp/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
3345
|
+
/**
|
|
3346
|
+
* enforce using result array `groups`
|
|
3347
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
|
|
3348
|
+
*/
|
|
3349
|
+
'regexp/prefer-result-array-groups'?: Linter.RuleEntry<RegexpPreferResultArrayGroups>
|
|
3350
|
+
/**
|
|
3351
|
+
* prefer character class set operations instead of lookarounds
|
|
3352
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
|
|
3353
|
+
*/
|
|
3354
|
+
'regexp/prefer-set-operation'?: Linter.RuleEntry<[]>
|
|
3355
|
+
/**
|
|
3356
|
+
* enforce using `*` quantifier
|
|
3357
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
|
|
3358
|
+
*/
|
|
3359
|
+
'regexp/prefer-star-quantifier'?: Linter.RuleEntry<[]>
|
|
3360
|
+
/**
|
|
3361
|
+
* enforce use of unicode codepoint escapes
|
|
3362
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
|
|
3363
|
+
*/
|
|
3364
|
+
'regexp/prefer-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>
|
|
3365
|
+
/**
|
|
3366
|
+
* enforce using `\w`
|
|
3367
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
|
|
3368
|
+
*/
|
|
3369
|
+
'regexp/prefer-w'?: Linter.RuleEntry<[]>
|
|
3370
|
+
/**
|
|
3371
|
+
* enforce the use of the `u` flag
|
|
3372
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
|
|
3373
|
+
*/
|
|
3374
|
+
'regexp/require-unicode-regexp'?: Linter.RuleEntry<[]>
|
|
3375
|
+
/**
|
|
3376
|
+
* enforce the use of the `v` flag
|
|
3377
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
|
|
3378
|
+
*/
|
|
3379
|
+
'regexp/require-unicode-sets-regexp'?: Linter.RuleEntry<[]>
|
|
3380
|
+
/**
|
|
3381
|
+
* require simplify set operations
|
|
3382
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
|
|
3383
|
+
*/
|
|
3384
|
+
'regexp/simplify-set-operations'?: Linter.RuleEntry<[]>
|
|
3385
|
+
/**
|
|
3386
|
+
* sort alternatives if order doesn't matter
|
|
3387
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
|
|
3388
|
+
*/
|
|
3389
|
+
'regexp/sort-alternatives'?: Linter.RuleEntry<[]>
|
|
3390
|
+
/**
|
|
3391
|
+
* enforces elements order in character class
|
|
3392
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
|
|
3393
|
+
*/
|
|
3394
|
+
'regexp/sort-character-class-elements'?: Linter.RuleEntry<RegexpSortCharacterClassElements>
|
|
3395
|
+
/**
|
|
3396
|
+
* require regex flags to be sorted
|
|
3397
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
|
|
3398
|
+
*/
|
|
3399
|
+
'regexp/sort-flags'?: Linter.RuleEntry<[]>
|
|
3400
|
+
/**
|
|
3401
|
+
* disallow not strictly valid regular expressions
|
|
3402
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
|
|
3403
|
+
*/
|
|
3404
|
+
'regexp/strict'?: Linter.RuleEntry<[]>
|
|
3405
|
+
/**
|
|
3406
|
+
* enforce consistent usage of unicode escape or unicode codepoint escape
|
|
3407
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
|
|
3408
|
+
*/
|
|
3409
|
+
'regexp/unicode-escape'?: Linter.RuleEntry<RegexpUnicodeEscape>
|
|
3410
|
+
/**
|
|
3411
|
+
* enforce consistent naming of unicode properties
|
|
3412
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
|
|
3413
|
+
*/
|
|
3414
|
+
'regexp/unicode-property'?: Linter.RuleEntry<RegexpUnicodeProperty>
|
|
3415
|
+
/**
|
|
3416
|
+
* use the `i` flag if it simplifies the pattern
|
|
3417
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
|
|
3418
|
+
*/
|
|
3419
|
+
'regexp/use-ignore-case'?: Linter.RuleEntry<[]>
|
|
2957
3420
|
/**
|
|
2958
3421
|
* Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
|
|
2959
3422
|
* @see https://eslint.org/docs/latest/rules/require-atomic-updates
|
|
@@ -3199,6 +3662,11 @@ interface RuleOptions {
|
|
|
3199
3662
|
* @see https://eslint.style/rules/jsx/jsx-first-prop-new-line
|
|
3200
3663
|
*/
|
|
3201
3664
|
'style/jsx-first-prop-new-line'?: Linter.RuleEntry<StyleJsxFirstPropNewLine>
|
|
3665
|
+
/**
|
|
3666
|
+
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
3667
|
+
* @see https://eslint.style/rules/jsx/jsx-function-call-newline
|
|
3668
|
+
*/
|
|
3669
|
+
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
|
|
3202
3670
|
/**
|
|
3203
3671
|
* Enforce JSX indentation
|
|
3204
3672
|
* @see https://eslint.style/rules/jsx/jsx-indent
|
|
@@ -3269,6 +3737,11 @@ interface RuleOptions {
|
|
|
3269
3737
|
* @see https://eslint.style/rules/ts/keyword-spacing
|
|
3270
3738
|
*/
|
|
3271
3739
|
'style/keyword-spacing'?: Linter.RuleEntry<StyleKeywordSpacing>
|
|
3740
|
+
/**
|
|
3741
|
+
* Enforce position of line comments
|
|
3742
|
+
* @see https://eslint.style/rules/js/line-comment-position
|
|
3743
|
+
*/
|
|
3744
|
+
'style/line-comment-position'?: Linter.RuleEntry<StyleLineCommentPosition>
|
|
3272
3745
|
/**
|
|
3273
3746
|
* Enforce consistent linebreak style
|
|
3274
3747
|
* @see https://eslint.style/rules/js/linebreak-style
|
|
@@ -3299,6 +3772,11 @@ interface RuleOptions {
|
|
|
3299
3772
|
* @see https://eslint.style/rules/ts/member-delimiter-style
|
|
3300
3773
|
*/
|
|
3301
3774
|
'style/member-delimiter-style'?: Linter.RuleEntry<StyleMemberDelimiterStyle>
|
|
3775
|
+
/**
|
|
3776
|
+
* Enforce a particular style for multiline comments
|
|
3777
|
+
* @see https://eslint.style/rules/js/multiline-comment-style
|
|
3778
|
+
*/
|
|
3779
|
+
'style/multiline-comment-style'?: Linter.RuleEntry<StyleMultilineCommentStyle>
|
|
3302
3780
|
/**
|
|
3303
3781
|
* Enforce newlines between operands of ternary expressions
|
|
3304
3782
|
* @see https://eslint.style/rules/js/multiline-ternary
|
|
@@ -3607,7 +4085,7 @@ interface RuleOptions {
|
|
|
3607
4085
|
* disallow focused tests
|
|
3608
4086
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
3609
4087
|
*/
|
|
3610
|
-
'test/no-focused-tests'?: Linter.RuleEntry<
|
|
4088
|
+
'test/no-focused-tests'?: Linter.RuleEntry<TestNoFocusedTests>
|
|
3611
4089
|
/**
|
|
3612
4090
|
* disallow setup and teardown hooks
|
|
3613
4091
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
@@ -4433,6 +4911,7 @@ interface RuleOptions {
|
|
|
4433
4911
|
/**
|
|
4434
4912
|
* Enforce using `@ts-expect-error` over `@ts-ignore`
|
|
4435
4913
|
* @see https://typescript-eslint.io/rules/prefer-ts-expect-error
|
|
4914
|
+
* @deprecated
|
|
4436
4915
|
*/
|
|
4437
4916
|
'ts/prefer-ts-expect-error'?: Linter.RuleEntry<[]>
|
|
4438
4917
|
/**
|
|
@@ -4548,652 +5027,677 @@ interface RuleOptions {
|
|
|
4548
5027
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4549
5028
|
/**
|
|
4550
5029
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/better-regex.md
|
|
4552
5031
|
*/
|
|
4553
5032
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4554
5033
|
/**
|
|
4555
5034
|
* Enforce a specific parameter name in catch clauses.
|
|
4556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/catch-error-name.md
|
|
4557
5036
|
*/
|
|
4558
5037
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4559
5038
|
/**
|
|
4560
5039
|
* Use destructured variables over properties.
|
|
4561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-destructuring.md
|
|
4562
5041
|
*/
|
|
4563
5042
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
5043
|
+
/**
|
|
5044
|
+
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5045
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5046
|
+
*/
|
|
5047
|
+
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
4564
5048
|
/**
|
|
4565
5049
|
* Move function definitions to the highest possible scope.
|
|
4566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-function-scoping.md
|
|
4567
5051
|
*/
|
|
4568
5052
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4569
5053
|
/**
|
|
4570
5054
|
* Enforce correct `Error` subclassing.
|
|
4571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5055
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/custom-error-definition.md
|
|
4572
5056
|
*/
|
|
4573
5057
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4574
5058
|
/**
|
|
4575
5059
|
* Enforce no spaces between braces.
|
|
4576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5060
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/empty-brace-spaces.md
|
|
4577
5061
|
*/
|
|
4578
5062
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4579
5063
|
/**
|
|
4580
5064
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5065
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/error-message.md
|
|
4582
5066
|
*/
|
|
4583
5067
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4584
5068
|
/**
|
|
4585
5069
|
* Require escape sequences to use uppercase values.
|
|
4586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/escape-case.md
|
|
4587
5071
|
*/
|
|
4588
5072
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
4589
5073
|
/**
|
|
4590
5074
|
* Add expiration conditions to TODO comments.
|
|
4591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/expiring-todo-comments.md
|
|
4592
5076
|
*/
|
|
4593
5077
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4594
5078
|
/**
|
|
4595
5079
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/explicit-length-check.md
|
|
4597
5081
|
*/
|
|
4598
5082
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4599
5083
|
/**
|
|
4600
5084
|
* Enforce a case style for filenames.
|
|
4601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/filename-case.md
|
|
4602
5086
|
*/
|
|
4603
5087
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
4604
5088
|
/**
|
|
4605
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#import-index
|
|
4606
5090
|
* @deprecated
|
|
4607
5091
|
*/
|
|
4608
5092
|
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
4609
5093
|
/**
|
|
4610
5094
|
* Enforce specific import styles per module.
|
|
4611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/import-style.md
|
|
4612
5096
|
*/
|
|
4613
5097
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
4614
5098
|
/**
|
|
4615
5099
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/new-for-builtins.md
|
|
4617
5101
|
*/
|
|
4618
5102
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
4619
5103
|
/**
|
|
4620
5104
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4622
5106
|
*/
|
|
4623
5107
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
4624
5108
|
/**
|
|
4625
5109
|
* Disallow anonymous functions and classes as the default export.
|
|
4626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-anonymous-default-export.md
|
|
4627
5111
|
*/
|
|
4628
5112
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
4629
5113
|
/**
|
|
4630
5114
|
* Prevent passing a function reference directly to iterator methods.
|
|
4631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-callback-reference.md
|
|
4632
5116
|
*/
|
|
4633
5117
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
4634
5118
|
/**
|
|
4635
5119
|
* Prefer `for…of` over the `forEach` method.
|
|
4636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-for-each.md
|
|
4637
5121
|
*/
|
|
4638
5122
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
4639
5123
|
/**
|
|
4640
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
4641
5125
|
* @deprecated
|
|
4642
5126
|
*/
|
|
4643
5127
|
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
4644
5128
|
/**
|
|
4645
5129
|
* Disallow using the `this` argument in array methods.
|
|
4646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-method-this-argument.md
|
|
4647
5131
|
*/
|
|
4648
5132
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
4649
5133
|
/**
|
|
4650
5134
|
* Enforce combining multiple `Array#push()` into one call.
|
|
4651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-push-push.md
|
|
4652
5136
|
*/
|
|
4653
5137
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
4654
5138
|
/**
|
|
4655
5139
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-reduce.md
|
|
4657
5141
|
*/
|
|
4658
5142
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
4659
5143
|
/**
|
|
4660
5144
|
* Disallow member access from await expression.
|
|
4661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-expression-member.md
|
|
4662
5146
|
*/
|
|
4663
5147
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
4664
5148
|
/**
|
|
4665
5149
|
* Disallow using `await` in `Promise` method parameters.
|
|
4666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4667
5151
|
*/
|
|
4668
5152
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4669
5153
|
/**
|
|
4670
5154
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-console-spaces.md
|
|
4672
5156
|
*/
|
|
4673
5157
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
4674
5158
|
/**
|
|
4675
5159
|
* Do not use `document.cookie` directly.
|
|
4676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-document-cookie.md
|
|
4677
5161
|
*/
|
|
4678
5162
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
4679
5163
|
/**
|
|
4680
5164
|
* Disallow empty files.
|
|
4681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-empty-file.md
|
|
4682
5166
|
*/
|
|
4683
5167
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
4684
5168
|
/**
|
|
4685
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
4686
5170
|
* @deprecated
|
|
4687
5171
|
*/
|
|
4688
5172
|
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
4689
5173
|
/**
|
|
4690
5174
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-for-loop.md
|
|
4692
5176
|
*/
|
|
4693
5177
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
4694
5178
|
/**
|
|
4695
5179
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-hex-escape.md
|
|
4697
5181
|
*/
|
|
4698
5182
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
4699
5183
|
/**
|
|
4700
5184
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
4701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-instanceof-array.md
|
|
4702
5186
|
*/
|
|
4703
5187
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
5188
|
+
/**
|
|
5189
|
+
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5191
|
+
*/
|
|
5192
|
+
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
4704
5193
|
/**
|
|
4705
5194
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4707
5196
|
*/
|
|
4708
5197
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
4709
5198
|
/**
|
|
4710
5199
|
* Disallow identifiers starting with `new` or `class`.
|
|
4711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-keyword-prefix.md
|
|
4712
5201
|
*/
|
|
4713
5202
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
4714
5203
|
/**
|
|
4715
5204
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-lonely-if.md
|
|
4717
5206
|
*/
|
|
4718
5207
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
5208
|
+
/**
|
|
5209
|
+
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5211
|
+
*/
|
|
5212
|
+
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
4719
5213
|
/**
|
|
4720
5214
|
* Disallow negated conditions.
|
|
4721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-negated-condition.md
|
|
4722
5216
|
*/
|
|
4723
5217
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
4724
5218
|
/**
|
|
4725
5219
|
* Disallow nested ternary expressions.
|
|
4726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-nested-ternary.md
|
|
4727
5221
|
*/
|
|
4728
5222
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
4729
5223
|
/**
|
|
4730
5224
|
* Disallow `new Array()`.
|
|
4731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-array.md
|
|
4732
5226
|
*/
|
|
4733
5227
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
4734
5228
|
/**
|
|
4735
5229
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-buffer.md
|
|
4737
5231
|
*/
|
|
4738
5232
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
4739
5233
|
/**
|
|
4740
5234
|
* Disallow the use of the `null` literal.
|
|
4741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-null.md
|
|
4742
5236
|
*/
|
|
4743
5237
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
4744
5238
|
/**
|
|
4745
5239
|
* Disallow the use of objects as default parameters.
|
|
4746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5240
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4747
5241
|
*/
|
|
4748
5242
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
4749
5243
|
/**
|
|
4750
5244
|
* Disallow `process.exit()`.
|
|
4751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-process-exit.md
|
|
4752
5246
|
*/
|
|
4753
5247
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
4754
5248
|
/**
|
|
4755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-reduce
|
|
4756
5250
|
* @deprecated
|
|
4757
5251
|
*/
|
|
4758
5252
|
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
4759
5253
|
/**
|
|
4760
5254
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4762
5256
|
*/
|
|
4763
5257
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4764
5258
|
/**
|
|
4765
5259
|
* Disallow classes that only have static members.
|
|
4766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-static-only-class.md
|
|
4767
5261
|
*/
|
|
4768
5262
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
4769
5263
|
/**
|
|
4770
5264
|
* Disallow `then` property.
|
|
4771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5265
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-thenable.md
|
|
4772
5266
|
*/
|
|
4773
5267
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
4774
5268
|
/**
|
|
4775
5269
|
* Disallow assigning `this` to a variable.
|
|
4776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-this-assignment.md
|
|
4777
5271
|
*/
|
|
4778
5272
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
4779
5273
|
/**
|
|
4780
5274
|
* Disallow comparing `undefined` using `typeof`.
|
|
4781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-typeof-undefined.md
|
|
4782
5276
|
*/
|
|
4783
5277
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
4784
5278
|
/**
|
|
4785
5279
|
* Disallow awaiting non-promise values.
|
|
4786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-await.md
|
|
4787
5281
|
*/
|
|
4788
5282
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
4789
5283
|
/**
|
|
4790
5284
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4791
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4792
5286
|
*/
|
|
4793
5287
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
4794
5288
|
/**
|
|
4795
5289
|
* Disallow unreadable array destructuring.
|
|
4796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4797
5291
|
*/
|
|
4798
5292
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
4799
5293
|
/**
|
|
4800
5294
|
* Disallow unreadable IIFEs.
|
|
4801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-iife.md
|
|
4802
5296
|
*/
|
|
4803
5297
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
4804
5298
|
/**
|
|
4805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
4806
5300
|
* @deprecated
|
|
4807
5301
|
*/
|
|
4808
5302
|
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
4809
5303
|
/**
|
|
4810
5304
|
* Disallow unused object properties.
|
|
4811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unused-properties.md
|
|
4812
5306
|
*/
|
|
4813
5307
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
4814
5308
|
/**
|
|
4815
5309
|
* Disallow useless fallback when spreading in object literals.
|
|
4816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4817
5311
|
*/
|
|
4818
5312
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
4819
5313
|
/**
|
|
4820
5314
|
* Disallow useless array length check.
|
|
4821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-length-check.md
|
|
4822
5316
|
*/
|
|
4823
5317
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
4824
5318
|
/**
|
|
4825
5319
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4827
5321
|
*/
|
|
4828
5322
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
4829
5323
|
/**
|
|
4830
5324
|
* Disallow unnecessary spread.
|
|
4831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-spread.md
|
|
4832
5326
|
*/
|
|
4833
5327
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
4834
5328
|
/**
|
|
4835
5329
|
* Disallow useless case in switch statements.
|
|
4836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-switch-case.md
|
|
4837
5331
|
*/
|
|
4838
5332
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
4839
5333
|
/**
|
|
4840
5334
|
* Disallow useless `undefined`.
|
|
4841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-undefined.md
|
|
4842
5336
|
*/
|
|
4843
5337
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
4844
5338
|
/**
|
|
4845
5339
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-zero-fractions.md
|
|
4847
5341
|
*/
|
|
4848
5342
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
4849
5343
|
/**
|
|
4850
5344
|
* Enforce proper case for numeric literals.
|
|
4851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/number-literal-case.md
|
|
4852
5346
|
*/
|
|
4853
5347
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
4854
5348
|
/**
|
|
4855
5349
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/numeric-separators-style.md
|
|
4857
5351
|
*/
|
|
4858
5352
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
4859
5353
|
/**
|
|
4860
5354
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-add-event-listener.md
|
|
4862
5356
|
*/
|
|
4863
5357
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
4864
5358
|
/**
|
|
4865
5359
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-find.md
|
|
4867
5361
|
*/
|
|
4868
5362
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
4869
5363
|
/**
|
|
4870
5364
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat.md
|
|
4872
5366
|
*/
|
|
4873
5367
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
4874
5368
|
/**
|
|
4875
5369
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat-map.md
|
|
4877
5371
|
*/
|
|
4878
5372
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
4879
5373
|
/**
|
|
4880
5374
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-index-of.md
|
|
4882
5376
|
*/
|
|
4883
5377
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
4884
5378
|
/**
|
|
4885
5379
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
|
|
4886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-some.md
|
|
4887
5381
|
*/
|
|
4888
5382
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
4889
5383
|
/**
|
|
4890
5384
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-at.md
|
|
4892
5386
|
*/
|
|
4893
5387
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
4894
5388
|
/**
|
|
4895
5389
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4897
5391
|
*/
|
|
4898
5392
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
4899
5393
|
/**
|
|
4900
5394
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-code-point.md
|
|
4902
5396
|
*/
|
|
4903
5397
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
4904
5398
|
/**
|
|
4905
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5399
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
4906
5400
|
* @deprecated
|
|
4907
5401
|
*/
|
|
4908
5402
|
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
4909
5403
|
/**
|
|
4910
5404
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-date-now.md
|
|
4912
5406
|
*/
|
|
4913
5407
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
4914
5408
|
/**
|
|
4915
5409
|
* Prefer default parameters over reassignment.
|
|
4916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5410
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-default-parameters.md
|
|
4917
5411
|
*/
|
|
4918
5412
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
4919
5413
|
/**
|
|
4920
5414
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-append.md
|
|
4922
5416
|
*/
|
|
4923
5417
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
4924
5418
|
/**
|
|
4925
5419
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5420
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4927
5421
|
*/
|
|
4928
5422
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
4929
5423
|
/**
|
|
4930
5424
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4931
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5425
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4932
5426
|
*/
|
|
4933
5427
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
4934
5428
|
/**
|
|
4935
5429
|
* Prefer `.textContent` over `.innerText`.
|
|
4936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4937
5431
|
*/
|
|
4938
5432
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
4939
5433
|
/**
|
|
4940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
4941
5435
|
* @deprecated
|
|
4942
5436
|
*/
|
|
4943
5437
|
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
4944
5438
|
/**
|
|
4945
5439
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-event-target.md
|
|
4947
5441
|
*/
|
|
4948
5442
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
4949
5443
|
/**
|
|
4950
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
4951
5445
|
* @deprecated
|
|
4952
5446
|
*/
|
|
4953
5447
|
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
4954
5448
|
/**
|
|
4955
5449
|
* Prefer `export…from` when re-exporting.
|
|
4956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-export-from.md
|
|
4957
5451
|
*/
|
|
4958
5452
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
4959
5453
|
/**
|
|
4960
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
4961
5455
|
* @deprecated
|
|
4962
5456
|
*/
|
|
4963
5457
|
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
4964
5458
|
/**
|
|
4965
5459
|
* Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
|
|
4966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-includes.md
|
|
4967
5461
|
*/
|
|
4968
5462
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
4969
5463
|
/**
|
|
4970
5464
|
* Prefer reading a JSON file as a buffer.
|
|
4971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4972
5466
|
*/
|
|
4973
5467
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
4974
5468
|
/**
|
|
4975
5469
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4977
5471
|
*/
|
|
4978
5472
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
4979
5473
|
/**
|
|
4980
5474
|
* Prefer using a logical operator over a ternary.
|
|
4981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4982
5476
|
*/
|
|
4983
5477
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
4984
5478
|
/**
|
|
4985
5479
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-math-trunc.md
|
|
4987
5481
|
*/
|
|
4988
5482
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
4989
5483
|
/**
|
|
4990
5484
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4992
5486
|
*/
|
|
4993
5487
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
4994
5488
|
/**
|
|
4995
5489
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
4996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4997
5491
|
*/
|
|
4998
5492
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
4999
5493
|
/**
|
|
5000
5494
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-module.md
|
|
5002
5496
|
*/
|
|
5003
5497
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
5004
5498
|
/**
|
|
5005
5499
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5007
5501
|
*/
|
|
5008
5502
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
5009
5503
|
/**
|
|
5010
5504
|
* Prefer negative index over `.length - index` when possible.
|
|
5011
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-negative-index.md
|
|
5012
5506
|
*/
|
|
5013
5507
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
5014
5508
|
/**
|
|
5015
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
5016
5510
|
* @deprecated
|
|
5017
5511
|
*/
|
|
5018
5512
|
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
5019
5513
|
/**
|
|
5020
5514
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5021
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-node-protocol.md
|
|
5022
5516
|
*/
|
|
5023
5517
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
5024
5518
|
/**
|
|
5025
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
5026
5520
|
* @deprecated
|
|
5027
5521
|
*/
|
|
5028
5522
|
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
5029
5523
|
/**
|
|
5030
5524
|
* Prefer `Number` static properties over global ones.
|
|
5031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-number-properties.md
|
|
5032
5526
|
*/
|
|
5033
5527
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
5034
5528
|
/**
|
|
5035
5529
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-object-from-entries.md
|
|
5037
5531
|
*/
|
|
5038
5532
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
5039
5533
|
/**
|
|
5040
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
5041
5535
|
* @deprecated
|
|
5042
5536
|
*/
|
|
5043
5537
|
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
5044
5538
|
/**
|
|
5045
5539
|
* Prefer omitting the `catch` binding parameter.
|
|
5046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5047
5541
|
*/
|
|
5048
5542
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
5049
5543
|
/**
|
|
5050
5544
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5051
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-prototype-methods.md
|
|
5052
5546
|
*/
|
|
5053
5547
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
5054
5548
|
/**
|
|
5055
5549
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
5056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-query-selector.md
|
|
5057
5551
|
*/
|
|
5058
5552
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
5059
5553
|
/**
|
|
5060
5554
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-reflect-apply.md
|
|
5062
5556
|
*/
|
|
5063
5557
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
5064
5558
|
/**
|
|
5065
5559
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5066
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-regexp-test.md
|
|
5067
5561
|
*/
|
|
5068
5562
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
5069
5563
|
/**
|
|
5070
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
5071
5565
|
* @deprecated
|
|
5072
5566
|
*/
|
|
5073
5567
|
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
5074
5568
|
/**
|
|
5075
5569
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-has.md
|
|
5077
5571
|
*/
|
|
5078
5572
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
5079
5573
|
/**
|
|
5080
5574
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-size.md
|
|
5082
5576
|
*/
|
|
5083
5577
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
5084
5578
|
/**
|
|
5085
5579
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-spread.md
|
|
5087
5581
|
*/
|
|
5088
5582
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
5089
5583
|
/**
|
|
5090
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
5091
5585
|
* @deprecated
|
|
5092
5586
|
*/
|
|
5093
5587
|
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5588
|
+
/**
|
|
5589
|
+
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-raw.md
|
|
5591
|
+
*/
|
|
5592
|
+
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
5094
5593
|
/**
|
|
5095
5594
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-replace-all.md
|
|
5097
5596
|
*/
|
|
5098
5597
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
5099
5598
|
/**
|
|
5100
5599
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-slice.md
|
|
5102
5601
|
*/
|
|
5103
5602
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
5104
5603
|
/**
|
|
5105
5604
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5106
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5107
5606
|
*/
|
|
5108
5607
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5109
5608
|
/**
|
|
5110
5609
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5112
5611
|
*/
|
|
5113
5612
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5613
|
+
/**
|
|
5614
|
+
* Prefer using `structuredClone` to create a deep clone.
|
|
5615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-structured-clone.md
|
|
5616
|
+
*/
|
|
5617
|
+
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
5114
5618
|
/**
|
|
5115
5619
|
* Prefer `switch` over multiple `else-if`.
|
|
5116
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-switch.md
|
|
5117
5621
|
*/
|
|
5118
5622
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5119
5623
|
/**
|
|
5120
5624
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-ternary.md
|
|
5122
5626
|
*/
|
|
5123
5627
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
5124
5628
|
/**
|
|
5125
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
5126
5630
|
* @deprecated
|
|
5127
5631
|
*/
|
|
5128
5632
|
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
5129
5633
|
/**
|
|
5130
5634
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5131
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-top-level-await.md
|
|
5132
5636
|
*/
|
|
5133
5637
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
5134
5638
|
/**
|
|
5135
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
5136
5640
|
* @deprecated
|
|
5137
5641
|
*/
|
|
5138
5642
|
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5139
5643
|
/**
|
|
5140
5644
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-type-error.md
|
|
5142
5646
|
*/
|
|
5143
5647
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5144
5648
|
/**
|
|
5145
5649
|
* Prevent abbreviations.
|
|
5146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prevent-abbreviations.md
|
|
5147
5651
|
*/
|
|
5148
5652
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
5149
5653
|
/**
|
|
5150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
5151
5655
|
* @deprecated
|
|
5152
5656
|
*/
|
|
5153
5657
|
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
5154
5658
|
/**
|
|
5155
5659
|
* Enforce consistent relative URL style.
|
|
5156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/relative-url-style.md
|
|
5157
5661
|
*/
|
|
5158
5662
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5159
5663
|
/**
|
|
5160
5664
|
* Enforce using the separator argument with `Array#join()`.
|
|
5161
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-array-join-separator.md
|
|
5162
5666
|
*/
|
|
5163
5667
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5164
5668
|
/**
|
|
5165
5669
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5167
5671
|
*/
|
|
5168
5672
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5169
5673
|
/**
|
|
5170
5674
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-post-message-target-origin.md
|
|
5172
5676
|
*/
|
|
5173
5677
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5174
5678
|
/**
|
|
5175
5679
|
* Enforce better string content.
|
|
5176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/string-content.md
|
|
5177
5681
|
*/
|
|
5178
5682
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5179
5683
|
/**
|
|
5180
5684
|
* Enforce consistent brace style for `case` clauses.
|
|
5181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/switch-case-braces.md
|
|
5182
5686
|
*/
|
|
5183
5687
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5184
5688
|
/**
|
|
5185
5689
|
* Fix whitespace-insensitive template indentation.
|
|
5186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/template-indent.md
|
|
5187
5691
|
*/
|
|
5188
5692
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5189
5693
|
/**
|
|
5190
5694
|
* Enforce consistent case for text encoding identifiers.
|
|
5191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5192
5696
|
*/
|
|
5193
5697
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5194
5698
|
/**
|
|
5195
|
-
* Require `new` when
|
|
5196
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5699
|
+
* Require `new` when creating an error.
|
|
5700
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/throw-new-error.md
|
|
5197
5701
|
*/
|
|
5198
5702
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5199
5703
|
/**
|
|
@@ -5221,21 +5725,11 @@ interface RuleOptions {
|
|
|
5221
5725
|
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
5222
5726
|
*/
|
|
5223
5727
|
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
|
|
5224
|
-
/**
|
|
5225
|
-
* Disallow unused variables
|
|
5226
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
5227
|
-
*/
|
|
5228
|
-
'unused-imports/no-unused-imports-ts'?: Linter.RuleEntry<UnusedImportsNoUnusedImportsTs>
|
|
5229
5728
|
/**
|
|
5230
5729
|
* Disallow unused variables
|
|
5231
5730
|
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
5232
5731
|
*/
|
|
5233
5732
|
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
|
|
5234
|
-
/**
|
|
5235
|
-
* Disallow unused variables
|
|
5236
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
5237
|
-
*/
|
|
5238
|
-
'unused-imports/no-unused-vars-ts'?: Linter.RuleEntry<UnusedImportsNoUnusedVarsTs>
|
|
5239
5733
|
/**
|
|
5240
5734
|
* Require calls to `isNaN()` when checking for `NaN`
|
|
5241
5735
|
* @see https://eslint.org/docs/latest/rules/use-isnan
|
|
@@ -5251,121 +5745,6 @@ interface RuleOptions {
|
|
|
5251
5745
|
* @see https://eslint.org/docs/latest/rules/vars-on-top
|
|
5252
5746
|
*/
|
|
5253
5747
|
'vars-on-top'?: Linter.RuleEntry<[]>
|
|
5254
|
-
/**
|
|
5255
|
-
* Cognitive Complexity of functions should not be too high
|
|
5256
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/cognitive-complexity
|
|
5257
|
-
*/
|
|
5258
|
-
'vinicunca/cognitive-complexity'?: Linter.RuleEntry<VinicuncaCognitiveComplexity>
|
|
5259
|
-
/**
|
|
5260
|
-
* Having line breaks styles to object, array and named imports
|
|
5261
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/consistent-list-newline
|
|
5262
|
-
*/
|
|
5263
|
-
'vinicunca/consistent-list-newline'?: Linter.RuleEntry<VinicuncaConsistentListNewline>
|
|
5264
|
-
/**
|
|
5265
|
-
* Newline after if
|
|
5266
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/if-newline
|
|
5267
|
-
*/
|
|
5268
|
-
'vinicunca/if-newline'?: Linter.RuleEntry<[]>
|
|
5269
|
-
/**
|
|
5270
|
-
* Fix duplication in imports
|
|
5271
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/import-dedupe
|
|
5272
|
-
*/
|
|
5273
|
-
'vinicunca/import-dedupe'?: Linter.RuleEntry<[]>
|
|
5274
|
-
/**
|
|
5275
|
-
* All branches in a conditional structure should not have exactly the same implementation
|
|
5276
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-all-duplicated-branches
|
|
5277
|
-
*/
|
|
5278
|
-
'vinicunca/no-all-duplicated-branches'?: Linter.RuleEntry<[]>
|
|
5279
|
-
/**
|
|
5280
|
-
* Collapsible "if" statements should be merged
|
|
5281
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-collapsible-if
|
|
5282
|
-
*/
|
|
5283
|
-
'vinicunca/no-collapsible-if'?: Linter.RuleEntry<VinicuncaNoCollapsibleIf>
|
|
5284
|
-
/**
|
|
5285
|
-
* String literals should not be duplicated
|
|
5286
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-duplicate-string
|
|
5287
|
-
*/
|
|
5288
|
-
'vinicunca/no-duplicate-string'?: Linter.RuleEntry<VinicuncaNoDuplicateString>
|
|
5289
|
-
/**
|
|
5290
|
-
* Two branches in a conditional structure should not have exactly the same implementation
|
|
5291
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-duplicated-branches
|
|
5292
|
-
*/
|
|
5293
|
-
'vinicunca/no-duplicated-branches'?: Linter.RuleEntry<VinicuncaNoDuplicatedBranches>
|
|
5294
|
-
/**
|
|
5295
|
-
* Empty collections should not be accessed or iterated
|
|
5296
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-empty-collection
|
|
5297
|
-
*/
|
|
5298
|
-
'vinicunca/no-empty-collection'?: Linter.RuleEntry<[]>
|
|
5299
|
-
/**
|
|
5300
|
-
* Related "if-else-if" and "switch-case" statements should not have the same condition
|
|
5301
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-identical-conditions
|
|
5302
|
-
*/
|
|
5303
|
-
'vinicunca/no-identical-conditions'?: Linter.RuleEntry<VinicuncaNoIdenticalConditions>
|
|
5304
|
-
/**
|
|
5305
|
-
* Identical expressions should not be used on both sides of a binary operator
|
|
5306
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-identical-expressions
|
|
5307
|
-
*/
|
|
5308
|
-
'vinicunca/no-identical-expressions'?: Linter.RuleEntry<VinicuncaNoIdenticalExpressions>
|
|
5309
|
-
/**
|
|
5310
|
-
* Functions should not have identical implementations
|
|
5311
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-identical-functions
|
|
5312
|
-
*/
|
|
5313
|
-
'vinicunca/no-identical-functions'?: Linter.RuleEntry<VinicuncaNoIdenticalFunctions>
|
|
5314
|
-
/**
|
|
5315
|
-
* Return values from functions without side effects should not be ignored
|
|
5316
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-ignored-return
|
|
5317
|
-
*/
|
|
5318
|
-
'vinicunca/no-ignored-return'?: Linter.RuleEntry<[]>
|
|
5319
|
-
/**
|
|
5320
|
-
* Prevent importing modules in `node_modules` folder by relative or absolute path
|
|
5321
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-import-node-modules-by-path
|
|
5322
|
-
*/
|
|
5323
|
-
'vinicunca/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>
|
|
5324
|
-
/**
|
|
5325
|
-
* Template literals should not be nested
|
|
5326
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-nested-template-literals
|
|
5327
|
-
*/
|
|
5328
|
-
'vinicunca/no-nested-template-literals'?: Linter.RuleEntry<[]>
|
|
5329
|
-
/**
|
|
5330
|
-
* Boolean literals should not be redundant
|
|
5331
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-redundant-boolean
|
|
5332
|
-
*/
|
|
5333
|
-
'vinicunca/no-redundant-boolean'?: Linter.RuleEntry<[]>
|
|
5334
|
-
/**
|
|
5335
|
-
* Jump statements should not be redundant
|
|
5336
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-redundant-jump
|
|
5337
|
-
*/
|
|
5338
|
-
'vinicunca/no-redundant-jump'?: Linter.RuleEntry<[]>
|
|
5339
|
-
/**
|
|
5340
|
-
* Do not use `exports =`
|
|
5341
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-ts-export-equal
|
|
5342
|
-
*/
|
|
5343
|
-
'vinicunca/no-ts-export-equal'?: Linter.RuleEntry<[]>
|
|
5344
|
-
/**
|
|
5345
|
-
* Collection and array contents should be used
|
|
5346
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-unused-collection
|
|
5347
|
-
*/
|
|
5348
|
-
'vinicunca/no-unused-collection'?: Linter.RuleEntry<[]>
|
|
5349
|
-
/**
|
|
5350
|
-
* The output of functions that don't return anything should not be used
|
|
5351
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/no-use-of-empty-return-value
|
|
5352
|
-
*/
|
|
5353
|
-
'vinicunca/no-use-of-empty-return-value'?: Linter.RuleEntry<[]>
|
|
5354
|
-
/**
|
|
5355
|
-
* Local variables should not be declared and then immediately returned or thrown
|
|
5356
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/prefer-immediate-return
|
|
5357
|
-
*/
|
|
5358
|
-
'vinicunca/prefer-immediate-return'?: Linter.RuleEntry<[]>
|
|
5359
|
-
/**
|
|
5360
|
-
* Return of boolean expressions should not be wrapped into an "if-then-else" statement
|
|
5361
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/prefer-single-boolean-return
|
|
5362
|
-
*/
|
|
5363
|
-
'vinicunca/prefer-single-boolean-return'?: Linter.RuleEntry<[]>
|
|
5364
|
-
/**
|
|
5365
|
-
* Enforce top-level functions to be declared with function keyword
|
|
5366
|
-
* @see https://eslint.vinicunca.dev/plugin-vinicunca/top-level-function
|
|
5367
|
-
*/
|
|
5368
|
-
'vinicunca/top-level-function'?: Linter.RuleEntry<[]>
|
|
5369
5748
|
/**
|
|
5370
5749
|
* Enforce linebreaks after opening and before closing array brackets in `<template>`
|
|
5371
5750
|
* @see https://eslint.vuejs.org/rules/array-bracket-newline.html
|
|
@@ -6749,6 +7128,33 @@ type AccessorPairs = []|[{
|
|
|
6749
7128
|
setWithoutGet?: boolean
|
|
6750
7129
|
enforceForClassMembers?: boolean
|
|
6751
7130
|
}]
|
|
7131
|
+
// ----- antfu/consistent-list-newline -----
|
|
7132
|
+
type AntfuConsistentListNewline = []|[{
|
|
7133
|
+
ArrayExpression?: boolean
|
|
7134
|
+
ArrowFunctionExpression?: boolean
|
|
7135
|
+
CallExpression?: boolean
|
|
7136
|
+
ExportNamedDeclaration?: boolean
|
|
7137
|
+
FunctionDeclaration?: boolean
|
|
7138
|
+
FunctionExpression?: boolean
|
|
7139
|
+
ImportDeclaration?: boolean
|
|
7140
|
+
NewExpression?: boolean
|
|
7141
|
+
ObjectExpression?: boolean
|
|
7142
|
+
TSInterfaceDeclaration?: boolean
|
|
7143
|
+
TSTupleType?: boolean
|
|
7144
|
+
TSTypeLiteral?: boolean
|
|
7145
|
+
TSTypeParameterDeclaration?: boolean
|
|
7146
|
+
TSTypeParameterInstantiation?: boolean
|
|
7147
|
+
ObjectPattern?: boolean
|
|
7148
|
+
ArrayPattern?: boolean
|
|
7149
|
+
JSXOpeningElement?: boolean
|
|
7150
|
+
JSONArrayExpression?: boolean
|
|
7151
|
+
JSONObjectExpression?: boolean
|
|
7152
|
+
}]
|
|
7153
|
+
// ----- antfu/indent-unindent -----
|
|
7154
|
+
type AntfuIndentUnindent = []|[{
|
|
7155
|
+
indent?: number
|
|
7156
|
+
tags?: string[]
|
|
7157
|
+
}]
|
|
6752
7158
|
// ----- array-bracket-newline -----
|
|
6753
7159
|
type ArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
|
|
6754
7160
|
multiline?: boolean
|
|
@@ -6929,6 +7335,9 @@ type _FuncNamesValue = ("always" | "as-needed" | "never")
|
|
|
6929
7335
|
// ----- func-style -----
|
|
6930
7336
|
type FuncStyle = []|[("declaration" | "expression")]|[("declaration" | "expression"), {
|
|
6931
7337
|
allowArrowFunctions?: boolean
|
|
7338
|
+
overrides?: {
|
|
7339
|
+
namedExports?: ("declaration" | "expression" | "ignore")
|
|
7340
|
+
}
|
|
6932
7341
|
}]
|
|
6933
7342
|
// ----- function-call-argument-newline -----
|
|
6934
7343
|
type FunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
|
|
@@ -8507,7 +8916,7 @@ type NoConsole = []|[{
|
|
|
8507
8916
|
}]
|
|
8508
8917
|
// ----- no-constant-condition -----
|
|
8509
8918
|
type NoConstantCondition = []|[{
|
|
8510
|
-
checkLoops?:
|
|
8919
|
+
checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false)
|
|
8511
8920
|
}]
|
|
8512
8921
|
// ----- no-duplicate-imports -----
|
|
8513
8922
|
type NoDuplicateImports = []|[{
|
|
@@ -8538,9 +8947,11 @@ type NoExtendNative = []|[{
|
|
|
8538
8947
|
exceptions?: string[]
|
|
8539
8948
|
}]
|
|
8540
8949
|
// ----- no-extra-boolean-cast -----
|
|
8541
|
-
type NoExtraBooleanCast = []|[{
|
|
8950
|
+
type NoExtraBooleanCast = []|[({
|
|
8951
|
+
enforceForInnerExpressions?: boolean
|
|
8952
|
+
} | {
|
|
8542
8953
|
enforceForLogicalOperands?: boolean
|
|
8543
|
-
}]
|
|
8954
|
+
})]
|
|
8544
8955
|
// ----- no-extra-parens -----
|
|
8545
8956
|
type NoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
8546
8957
|
conditionalAssign?: boolean
|
|
@@ -8614,6 +9025,10 @@ type NoMagicNumbers = []|[{
|
|
|
8614
9025
|
ignoreDefaultValues?: boolean
|
|
8615
9026
|
ignoreClassFieldInitialValues?: boolean
|
|
8616
9027
|
}]
|
|
9028
|
+
// ----- no-misleading-character-class -----
|
|
9029
|
+
type NoMisleadingCharacterClass = []|[{
|
|
9030
|
+
allowEscape?: boolean
|
|
9031
|
+
}]
|
|
8617
9032
|
// ----- no-mixed-operators -----
|
|
8618
9033
|
type NoMixedOperators = []|[{
|
|
8619
9034
|
groups?: [("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ...(("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"))[]][]
|
|
@@ -8670,8 +9085,10 @@ type NoRedeclare = []|[{
|
|
|
8670
9085
|
// ----- no-restricted-exports -----
|
|
8671
9086
|
type NoRestrictedExports = []|[({
|
|
8672
9087
|
restrictedNamedExports?: string[]
|
|
9088
|
+
restrictedNamedExportsPattern?: string
|
|
8673
9089
|
} | {
|
|
8674
9090
|
restrictedNamedExports?: string[]
|
|
9091
|
+
restrictedNamedExportsPattern?: string
|
|
8675
9092
|
restrictDefaultExports?: {
|
|
8676
9093
|
direct?: boolean
|
|
8677
9094
|
named?: boolean
|
|
@@ -8879,6 +9296,9 @@ type NodeHashbang = []|[{
|
|
|
8879
9296
|
})[]])
|
|
8880
9297
|
ignoreUnpublished?: boolean
|
|
8881
9298
|
additionalExecutables?: string[]
|
|
9299
|
+
executableMap?: {
|
|
9300
|
+
[k: string]: string
|
|
9301
|
+
}
|
|
8882
9302
|
}]
|
|
8883
9303
|
// ----- node/no-deprecated-api -----
|
|
8884
9304
|
type NodeNoDeprecatedApi = []|[{
|
|
@@ -9038,7 +9458,7 @@ type NodeNoUnpublishedRequire = []|[{
|
|
|
9038
9458
|
// ----- node/no-unsupported-features/es-builtins -----
|
|
9039
9459
|
type NodeNoUnsupportedFeaturesEsBuiltins = []|[{
|
|
9040
9460
|
version?: string
|
|
9041
|
-
ignores?: ("AggregateError" | "Array" | "Array.from" | "Array.isArray" | "Array.length" | "Array.of" | "Array.toLocaleString" | "ArrayBuffer" | "ArrayBuffer.isView" | "Atomics" | "Atomics.add" | "Atomics.and" | "Atomics.compareExchange" | "Atomics.exchange" | "Atomics.isLockFree" | "Atomics.load" | "Atomics.notify" | "Atomics.or" | "Atomics.store" | "Atomics.sub" | "Atomics.wait" | "Atomics.waitAsync" | "Atomics.xor" | "BigInt" | "BigInt.asIntN" | "BigInt.asUintN" | "BigInt64Array" | "BigInt64Array.BYTES_PER_ELEMENT" | "BigInt64Array.from" | "BigInt64Array.name" | "BigInt64Array.of" | "BigUint64Array" | "BigUint64Array.BYTES_PER_ELEMENT" | "BigUint64Array.from" | "BigUint64Array.name" | "BigUint64Array.of" | "Boolean" | "DataView" | "Date" | "Date.UTC" | "Date.now" | "Date.parse" | "Date.toLocaleDateString" | "Date.toLocaleString" | "Date.toLocaleTimeString" | "Error" | "Error.cause" | "EvalError" | "FinalizationRegistry" | "Float32Array" | "Float32Array.BYTES_PER_ELEMENT" | "Float32Array.from" | "Float32Array.name" | "Float32Array.of" | "Float64Array" | "Float64Array.BYTES_PER_ELEMENT" | "Float64Array.from" | "Float64Array.name" | "Float64Array.of" | "Function" | "Function.length" | "Function.name" | "Infinity" | "Int16Array" | "Int16Array.BYTES_PER_ELEMENT" | "Int16Array.from" | "Int16Array.name" | "Int16Array.of" | "Int32Array" | "Int32Array.BYTES_PER_ELEMENT" | "Int32Array.from" | "Int32Array.name" | "Int32Array.of" | "Int8Array" | "Int8Array.BYTES_PER_ELEMENT" | "Int8Array.from" | "Int8Array.name" | "Int8Array.of" | "Intl" | "Intl.Collator" | "Intl.DateTimeFormat" | "Intl.DisplayNames" | "Intl.ListFormat" | "Intl.Locale" | "Intl.NumberFormat" | "Intl.PluralRules" | "Intl.RelativeTimeFormat" | "Intl.Segmenter" | "Intl.Segments" | "Intl.getCanonicalLocales" | "Intl.supportedValuesOf" | "JSON" | "JSON.parse" | "JSON.stringify" | "Map" | "Map.groupBy" | "Math" | "Math.E" | "Math.LN10" | "Math.LN2" | "Math.LOG10E" | "Math.LOG2E" | "Math.PI" | "Math.SQRT1_2" | "Math.SQRT2" | "Math.abs" | "Math.acos" | "Math.acosh" | "Math.asin" | "Math.asinh" | "Math.atan" | "Math.atan2" | "Math.atanh" | "Math.cbrt" | "Math.ceil" | "Math.clz32" | "Math.cos" | "Math.cosh" | "Math.exp" | "Math.expm1" | "Math.floor" | "Math.fround" | "Math.hypot" | "Math.imul" | "Math.log" | "Math.log10" | "Math.log1p" | "Math.log2" | "Math.max" | "Math.min" | "Math.pow" | "Math.random" | "Math.round" | "Math.sign" | "Math.sin" | "Math.sinh" | "Math.sqrt" | "Math.tan" | "Math.tanh" | "Math.trunc" | "NaN" | "Number.EPSILON" | "Number.MAX_SAFE_INTEGER" | "Number.MAX_VALUE" | "Number.MIN_SAFE_INTEGER" | "Number.MIN_VALUE" | "Number.NEGATIVE_INFINITY" | "Number.NaN" | "Number.POSITIVE_INFINITY" | "Number.isFinite" | "Number.isInteger" | "Number.isNaN" | "Number.isSafeInteger" | "Number.parseFloat" | "Number.parseInt" | "Number.toLocaleString" | "Object.assign" | "Object.create" | "Object.defineGetter" | "Object.defineProperties" | "Object.defineProperty" | "Object.defineSetter" | "Object.entries" | "Object.freeze" | "Object.fromEntries" | "Object.getOwnPropertyDescriptor" | "Object.getOwnPropertyDescriptors" | "Object.getOwnPropertyNames" | "Object.getOwnPropertySymbols" | "Object.getPrototypeOf" | "Object.groupBy" | "Object.hasOwn" | "Object.is" | "Object.isExtensible" | "Object.isFrozen" | "Object.isSealed" | "Object.keys" | "Object.lookupGetter" | "Object.lookupSetter" | "Object.preventExtensions" | "Object.proto" | "Object.seal" | "Object.setPrototypeOf" | "Object.values" | "Promise" | "Promise.all" | "Promise.allSettled" | "Promise.any" | "Promise.race" | "Promise.reject" | "Promise.resolve" | "Proxy" | "Proxy.revocable" | "RangeError" | "ReferenceError" | "Reflect" | "Reflect.apply" | "Reflect.construct" | "Reflect.defineProperty" | "Reflect.deleteProperty" | "Reflect.get" | "Reflect.getOwnPropertyDescriptor" | "Reflect.getPrototypeOf" | "Reflect.has" | "Reflect.isExtensible" | "Reflect.ownKeys" | "Reflect.preventExtensions" | "Reflect.set" | "Reflect.setPrototypeOf" | "RegExp" | "RegExp.dotAll" | "RegExp.hasIndices" | "RegExp.input" | "RegExp.lastIndex" | "RegExp.lastMatch" | "RegExp.lastParen" | "RegExp.leftContext" | "RegExp.n" | "RegExp.rightContext" | "Set" | "SharedArrayBuffer" | "String" | "String.fromCharCode" | "String.fromCodePoint" | "String.length" | "String.localeCompare" | "String.raw" | "String.toLocaleLowerCase" | "String.toLocaleUpperCase" | "Symbol" | "Symbol.asyncIterator" | "Symbol.for" | "Symbol.hasInstance" | "Symbol.isConcatSpreadable" | "Symbol.iterator" | "Symbol.keyFor" | "Symbol.match" | "Symbol.matchAll" | "Symbol.replace" | "Symbol.search" | "Symbol.species" | "Symbol.split" | "Symbol.toPrimitive" | "Symbol.toStringTag" | "Symbol.unscopables" | "SyntaxError" | "TypeError" | "URIError" | "Uint16Array" | "Uint16Array.BYTES_PER_ELEMENT" | "Uint16Array.from" | "Uint16Array.name" | "Uint16Array.of" | "Uint32Array" | "Uint32Array.BYTES_PER_ELEMENT" | "Uint32Array.from" | "Uint32Array.name" | "Uint32Array.of" | "Uint8Array" | "Uint8Array.BYTES_PER_ELEMENT" | "Uint8Array.from" | "Uint8Array.name" | "Uint8Array.of" | "Uint8ClampedArray" | "Uint8ClampedArray.BYTES_PER_ELEMENT" | "Uint8ClampedArray.from" | "Uint8ClampedArray.name" | "Uint8ClampedArray.of" | "WeakMap" | "WeakRef" | "WeakSet" | "decodeURI" | "decodeURIComponent" | "encodeURI" | "encodeURIComponent" | "escape" | "eval" | "globalThis" | "isFinite" | "isNaN" | "parseFloat" | "parseInt" | "unescape"
|
|
9461
|
+
ignores?: ("AggregateError" | "Array" | "Array.from" | "Array.isArray" | "Array.length" | "Array.of" | "Array.toLocaleString" | "ArrayBuffer" | "ArrayBuffer.isView" | "Atomics" | "Atomics.add" | "Atomics.and" | "Atomics.compareExchange" | "Atomics.exchange" | "Atomics.isLockFree" | "Atomics.load" | "Atomics.notify" | "Atomics.or" | "Atomics.store" | "Atomics.sub" | "Atomics.wait" | "Atomics.waitAsync" | "Atomics.xor" | "BigInt" | "BigInt.asIntN" | "BigInt.asUintN" | "BigInt64Array" | "BigInt64Array.BYTES_PER_ELEMENT" | "BigInt64Array.from" | "BigInt64Array.name" | "BigInt64Array.of" | "BigUint64Array" | "BigUint64Array.BYTES_PER_ELEMENT" | "BigUint64Array.from" | "BigUint64Array.name" | "BigUint64Array.of" | "Boolean" | "DataView" | "Date" | "Date.UTC" | "Date.now" | "Date.parse" | "Date.toLocaleDateString" | "Date.toLocaleString" | "Date.toLocaleTimeString" | "Error" | "Error.cause" | "EvalError" | "FinalizationRegistry" | "Float32Array" | "Float32Array.BYTES_PER_ELEMENT" | "Float32Array.from" | "Float32Array.name" | "Float32Array.of" | "Float64Array" | "Float64Array.BYTES_PER_ELEMENT" | "Float64Array.from" | "Float64Array.name" | "Float64Array.of" | "Function" | "Function.length" | "Function.name" | "Infinity" | "Int16Array" | "Int16Array.BYTES_PER_ELEMENT" | "Int16Array.from" | "Int16Array.name" | "Int16Array.of" | "Int32Array" | "Int32Array.BYTES_PER_ELEMENT" | "Int32Array.from" | "Int32Array.name" | "Int32Array.of" | "Int8Array" | "Int8Array.BYTES_PER_ELEMENT" | "Int8Array.from" | "Int8Array.name" | "Int8Array.of" | "Intl" | "Intl.Collator" | "Intl.DateTimeFormat" | "Intl.DisplayNames" | "Intl.ListFormat" | "Intl.Locale" | "Intl.NumberFormat" | "Intl.PluralRules" | "Intl.RelativeTimeFormat" | "Intl.Segmenter" | "Intl.Segments" | "Intl.getCanonicalLocales" | "Intl.supportedValuesOf" | "JSON" | "JSON.parse" | "JSON.stringify" | "Map" | "Map.groupBy" | "Math" | "Math.E" | "Math.LN10" | "Math.LN2" | "Math.LOG10E" | "Math.LOG2E" | "Math.PI" | "Math.SQRT1_2" | "Math.SQRT2" | "Math.abs" | "Math.acos" | "Math.acosh" | "Math.asin" | "Math.asinh" | "Math.atan" | "Math.atan2" | "Math.atanh" | "Math.cbrt" | "Math.ceil" | "Math.clz32" | "Math.cos" | "Math.cosh" | "Math.exp" | "Math.expm1" | "Math.floor" | "Math.fround" | "Math.hypot" | "Math.imul" | "Math.log" | "Math.log10" | "Math.log1p" | "Math.log2" | "Math.max" | "Math.min" | "Math.pow" | "Math.random" | "Math.round" | "Math.sign" | "Math.sin" | "Math.sinh" | "Math.sqrt" | "Math.tan" | "Math.tanh" | "Math.trunc" | "NaN" | "Number.EPSILON" | "Number.MAX_SAFE_INTEGER" | "Number.MAX_VALUE" | "Number.MIN_SAFE_INTEGER" | "Number.MIN_VALUE" | "Number.NEGATIVE_INFINITY" | "Number.NaN" | "Number.POSITIVE_INFINITY" | "Number.isFinite" | "Number.isInteger" | "Number.isNaN" | "Number.isSafeInteger" | "Number.parseFloat" | "Number.parseInt" | "Number.toLocaleString" | "Object.assign" | "Object.create" | "Object.defineGetter" | "Object.defineProperties" | "Object.defineProperty" | "Object.defineSetter" | "Object.entries" | "Object.freeze" | "Object.fromEntries" | "Object.getOwnPropertyDescriptor" | "Object.getOwnPropertyDescriptors" | "Object.getOwnPropertyNames" | "Object.getOwnPropertySymbols" | "Object.getPrototypeOf" | "Object.groupBy" | "Object.hasOwn" | "Object.is" | "Object.isExtensible" | "Object.isFrozen" | "Object.isSealed" | "Object.keys" | "Object.lookupGetter" | "Object.lookupSetter" | "Object.preventExtensions" | "Object.proto" | "Object.seal" | "Object.setPrototypeOf" | "Object.values" | "Promise" | "Promise.all" | "Promise.allSettled" | "Promise.any" | "Promise.race" | "Promise.reject" | "Promise.resolve" | "Proxy" | "Proxy.revocable" | "RangeError" | "ReferenceError" | "Reflect" | "Reflect.apply" | "Reflect.construct" | "Reflect.defineProperty" | "Reflect.deleteProperty" | "Reflect.get" | "Reflect.getOwnPropertyDescriptor" | "Reflect.getPrototypeOf" | "Reflect.has" | "Reflect.isExtensible" | "Reflect.ownKeys" | "Reflect.preventExtensions" | "Reflect.set" | "Reflect.setPrototypeOf" | "RegExp" | "RegExp.dotAll" | "RegExp.hasIndices" | "RegExp.input" | "RegExp.lastIndex" | "RegExp.lastMatch" | "RegExp.lastParen" | "RegExp.leftContext" | "RegExp.n" | "RegExp.rightContext" | "Set" | "SharedArrayBuffer" | "String" | "String.fromCharCode" | "String.fromCodePoint" | "String.length" | "String.localeCompare" | "String.raw" | "String.toLocaleLowerCase" | "String.toLocaleUpperCase" | "Symbol" | "Symbol.asyncIterator" | "Symbol.for" | "Symbol.hasInstance" | "Symbol.isConcatSpreadable" | "Symbol.iterator" | "Symbol.keyFor" | "Symbol.match" | "Symbol.matchAll" | "Symbol.replace" | "Symbol.search" | "Symbol.species" | "Symbol.split" | "Symbol.toPrimitive" | "Symbol.toStringTag" | "Symbol.unscopables" | "SyntaxError" | "TypeError" | "URIError" | "Uint16Array" | "Uint16Array.BYTES_PER_ELEMENT" | "Uint16Array.from" | "Uint16Array.name" | "Uint16Array.of" | "Uint32Array" | "Uint32Array.BYTES_PER_ELEMENT" | "Uint32Array.from" | "Uint32Array.name" | "Uint32Array.of" | "Uint8Array" | "Uint8Array.BYTES_PER_ELEMENT" | "Uint8Array.from" | "Uint8Array.name" | "Uint8Array.of" | "Uint8ClampedArray" | "Uint8ClampedArray.BYTES_PER_ELEMENT" | "Uint8ClampedArray.from" | "Uint8ClampedArray.name" | "Uint8ClampedArray.of" | "WeakMap" | "WeakRef" | "WeakSet" | "decodeURI" | "decodeURIComponent" | "encodeURI" | "encodeURIComponent" | "escape" | "eval" | "globalThis" | "isFinite" | "isNaN" | "parseFloat" | "parseInt" | "unescape")[]
|
|
9042
9462
|
}]
|
|
9043
9463
|
// ----- node/no-unsupported-features/es-syntax -----
|
|
9044
9464
|
type NodeNoUnsupportedFeaturesEsSyntax = []|[{
|
|
@@ -9048,7 +9468,8 @@ type NodeNoUnsupportedFeaturesEsSyntax = []|[{
|
|
|
9048
9468
|
// ----- node/no-unsupported-features/node-builtins -----
|
|
9049
9469
|
type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
9050
9470
|
version?: string
|
|
9051
|
-
ignores?: ("queueMicrotask" | "require.resolve.paths" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "TextDecoder" | "TextEncoder" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "process" | "process.allowedNodeEnvironmentFlags" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.getRandomValues" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.randomUUID" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.constants" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.lutimes" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readdir" | "fs.promises.readFile" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rmdir" | "fs.promises.rm" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.promises.FileHandle" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.lchmod" | "fs.lchown" | "fs.lutimes" | "fs.link" | "fs.lstat" | "fs.mkdir" | "fs.mkdtemp" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.native" | "fs.rename" | "fs.rmdir" | "fs.rm" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.lutimesSync" | "fs.linkSync" | "fs.lstatSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statSync" | "fs.statfsSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.constants" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.lutimes" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readdir" | "fs/promises.readFile" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rmdir" | "fs/promises.rm" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "fs/promises.FileHandle" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
9471
|
+
allowExperimental?: boolean
|
|
9472
|
+
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CustomEvent" | "Event" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.exitCode" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.release" | "process.report" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.createRequire" | "module.createRequireFromPath" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.isBuiltin" | "module.Module.register" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.SocketAddress" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.test.isSea" | "sea.test.getAsset" | "sea.test.getAssetAsBlob" | "sea.test.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.suite" | "test.suite.skip" | "test.suite.todo" | "test.suite.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.MockFunctionContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.suite" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.MockFunctionContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUntransferable" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.constants" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.BrotliCompress" | "zlib.BrotliDecompress" | "zlib.Deflate" | "zlib.DeflateRaw" | "zlib.Gunzip" | "zlib.Gzip" | "zlib.Inflate" | "zlib.InflateRaw" | "zlib.Unzip" | "zlib")[]
|
|
9052
9473
|
}]
|
|
9053
9474
|
// ----- node/prefer-global/buffer -----
|
|
9054
9475
|
type NodePreferGlobalBuffer = []|[("always" | "never")]
|
|
@@ -9088,6 +9509,9 @@ type NodeShebang = []|[{
|
|
|
9088
9509
|
})[]])
|
|
9089
9510
|
ignoreUnpublished?: boolean
|
|
9090
9511
|
additionalExecutables?: string[]
|
|
9512
|
+
executableMap?: {
|
|
9513
|
+
[k: string]: string
|
|
9514
|
+
}
|
|
9091
9515
|
}]
|
|
9092
9516
|
// ----- nonblock-statement-body-position -----
|
|
9093
9517
|
type NonblockStatementBodyPosition = []|[("beside" | "below" | "any")]|[("beside" | "below" | "any"), {
|
|
@@ -9261,6 +9685,12 @@ type PerfectionistSortInterfaces = []|[{
|
|
|
9261
9685
|
groups?: unknown[]
|
|
9262
9686
|
"partition-by-new-line"?: boolean
|
|
9263
9687
|
}]
|
|
9688
|
+
// ----- perfectionist/sort-intersection-types -----
|
|
9689
|
+
type PerfectionistSortIntersectionTypes = []|[{
|
|
9690
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
9691
|
+
order?: ("asc" | "desc")
|
|
9692
|
+
"ignore-case"?: boolean
|
|
9693
|
+
}]
|
|
9264
9694
|
// ----- perfectionist/sort-jsx-props -----
|
|
9265
9695
|
type PerfectionistSortJsxProps = []|[{
|
|
9266
9696
|
"custom-groups"?: {
|
|
@@ -9626,10 +10056,6 @@ type ReactJsxNoBind = []|[{
|
|
|
9626
10056
|
ignoreRefs?: boolean
|
|
9627
10057
|
ignoreDOMComponents?: boolean
|
|
9628
10058
|
}]
|
|
9629
|
-
// ----- react/jsx-no-constructed-context-values -----
|
|
9630
|
-
interface ReactJsxNoConstructedContextValues {
|
|
9631
|
-
[k: string]: unknown | undefined
|
|
9632
|
-
}
|
|
9633
10059
|
// ----- react/jsx-no-duplicate-props -----
|
|
9634
10060
|
type ReactJsxNoDuplicateProps = []|[{
|
|
9635
10061
|
ignoreCase?: boolean
|
|
@@ -9843,6 +10269,124 @@ type ReactStylePropObject = []|[{
|
|
|
9843
10269
|
allow?: string[]
|
|
9844
10270
|
[k: string]: unknown | undefined
|
|
9845
10271
|
}]
|
|
10272
|
+
// ----- regexp/hexadecimal-escape -----
|
|
10273
|
+
type RegexpHexadecimalEscape = []|[("always" | "never")]
|
|
10274
|
+
// ----- regexp/letter-case -----
|
|
10275
|
+
type RegexpLetterCase = []|[{
|
|
10276
|
+
caseInsensitive?: ("lowercase" | "uppercase" | "ignore")
|
|
10277
|
+
unicodeEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
10278
|
+
hexadecimalEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
10279
|
+
controlEscape?: ("lowercase" | "uppercase" | "ignore")
|
|
10280
|
+
}]
|
|
10281
|
+
// ----- regexp/match-any -----
|
|
10282
|
+
type RegexpMatchAny = []|[{
|
|
10283
|
+
|
|
10284
|
+
allows?: [("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"), ...(("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"))[]]
|
|
10285
|
+
}]
|
|
10286
|
+
// ----- regexp/no-dupe-disjunctions -----
|
|
10287
|
+
type RegexpNoDupeDisjunctions = []|[{
|
|
10288
|
+
report?: ("all" | "trivial" | "interesting")
|
|
10289
|
+
reportExponentialBacktracking?: ("none" | "certain" | "potential")
|
|
10290
|
+
reportUnreachable?: ("certain" | "potential")
|
|
10291
|
+
}]
|
|
10292
|
+
// ----- regexp/no-lazy-ends -----
|
|
10293
|
+
type RegexpNoLazyEnds = []|[{
|
|
10294
|
+
ignorePartial?: boolean
|
|
10295
|
+
}]
|
|
10296
|
+
// ----- regexp/no-legacy-features -----
|
|
10297
|
+
type RegexpNoLegacyFeatures = []|[{
|
|
10298
|
+
staticProperties?: ("input" | "$_" | "lastMatch" | "$&" | "lastParen" | "$+" | "leftContext" | "$`" | "rightContext" | "$'" | "$1" | "$2" | "$3" | "$4" | "$5" | "$6" | "$7" | "$8" | "$9")[]
|
|
10299
|
+
prototypeMethods?: ("compile")[]
|
|
10300
|
+
}]
|
|
10301
|
+
// ----- regexp/no-misleading-capturing-group -----
|
|
10302
|
+
type RegexpNoMisleadingCapturingGroup = []|[{
|
|
10303
|
+
reportBacktrackingEnds?: boolean
|
|
10304
|
+
}]
|
|
10305
|
+
// ----- regexp/no-misleading-unicode-character -----
|
|
10306
|
+
type RegexpNoMisleadingUnicodeCharacter = []|[{
|
|
10307
|
+
fixable?: boolean
|
|
10308
|
+
}]
|
|
10309
|
+
// ----- regexp/no-missing-g-flag -----
|
|
10310
|
+
type RegexpNoMissingGFlag = []|[{
|
|
10311
|
+
strictTypes?: boolean
|
|
10312
|
+
}]
|
|
10313
|
+
// ----- regexp/no-obscure-range -----
|
|
10314
|
+
type RegexpNoObscureRange = []|[{
|
|
10315
|
+
allowed?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
|
|
10316
|
+
}]
|
|
10317
|
+
// ----- regexp/no-super-linear-backtracking -----
|
|
10318
|
+
type RegexpNoSuperLinearBacktracking = []|[{
|
|
10319
|
+
report?: ("certain" | "potential")
|
|
10320
|
+
}]
|
|
10321
|
+
// ----- regexp/no-super-linear-move -----
|
|
10322
|
+
type RegexpNoSuperLinearMove = []|[{
|
|
10323
|
+
report?: ("certain" | "potential")
|
|
10324
|
+
ignoreSticky?: boolean
|
|
10325
|
+
ignorePartial?: boolean
|
|
10326
|
+
}]
|
|
10327
|
+
// ----- regexp/no-unused-capturing-group -----
|
|
10328
|
+
type RegexpNoUnusedCapturingGroup = []|[{
|
|
10329
|
+
fixable?: boolean
|
|
10330
|
+
allowNamed?: boolean
|
|
10331
|
+
}]
|
|
10332
|
+
// ----- regexp/no-useless-character-class -----
|
|
10333
|
+
type RegexpNoUselessCharacterClass = []|[{
|
|
10334
|
+
ignores?: string[]
|
|
10335
|
+
}]
|
|
10336
|
+
// ----- regexp/no-useless-flag -----
|
|
10337
|
+
type RegexpNoUselessFlag = []|[{
|
|
10338
|
+
ignore?: ("i" | "m" | "s" | "g" | "y")[]
|
|
10339
|
+
strictTypes?: boolean
|
|
10340
|
+
}]
|
|
10341
|
+
// ----- regexp/no-useless-non-capturing-group -----
|
|
10342
|
+
type RegexpNoUselessNonCapturingGroup = []|[{
|
|
10343
|
+
allowTop?: (boolean | ("always" | "never" | "partial"))
|
|
10344
|
+
}]
|
|
10345
|
+
// ----- regexp/optimal-quantifier-concatenation -----
|
|
10346
|
+
type RegexpOptimalQuantifierConcatenation = []|[{
|
|
10347
|
+
capturingGroups?: ("ignore" | "report")
|
|
10348
|
+
}]
|
|
10349
|
+
// ----- regexp/prefer-character-class -----
|
|
10350
|
+
type RegexpPreferCharacterClass = []|[{
|
|
10351
|
+
minAlternatives?: number
|
|
10352
|
+
}]
|
|
10353
|
+
// ----- regexp/prefer-d -----
|
|
10354
|
+
type RegexpPreferD = []|[{
|
|
10355
|
+
insideCharacterClass?: ("ignore" | "range" | "d")
|
|
10356
|
+
}]
|
|
10357
|
+
// ----- regexp/prefer-lookaround -----
|
|
10358
|
+
type RegexpPreferLookaround = []|[{
|
|
10359
|
+
lookbehind?: boolean
|
|
10360
|
+
strictTypes?: boolean
|
|
10361
|
+
}]
|
|
10362
|
+
// ----- regexp/prefer-named-replacement -----
|
|
10363
|
+
type RegexpPreferNamedReplacement = []|[{
|
|
10364
|
+
strictTypes?: boolean
|
|
10365
|
+
}]
|
|
10366
|
+
// ----- regexp/prefer-range -----
|
|
10367
|
+
type RegexpPreferRange = []|[{
|
|
10368
|
+
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
|
|
10369
|
+
}]
|
|
10370
|
+
// ----- regexp/prefer-result-array-groups -----
|
|
10371
|
+
type RegexpPreferResultArrayGroups = []|[{
|
|
10372
|
+
strictTypes?: boolean
|
|
10373
|
+
}]
|
|
10374
|
+
// ----- regexp/sort-character-class-elements -----
|
|
10375
|
+
type RegexpSortCharacterClassElements = []|[{
|
|
10376
|
+
order?: ("\\s" | "\\w" | "\\d" | "\\p" | "*" | "\\q" | "[]")[]
|
|
10377
|
+
}]
|
|
10378
|
+
// ----- regexp/unicode-escape -----
|
|
10379
|
+
type RegexpUnicodeEscape = []|[("unicodeCodePointEscape" | "unicodeEscape")]
|
|
10380
|
+
// ----- regexp/unicode-property -----
|
|
10381
|
+
type RegexpUnicodeProperty = []|[{
|
|
10382
|
+
generalCategory?: ("always" | "never" | "ignore")
|
|
10383
|
+
key?: ("short" | "long" | "ignore")
|
|
10384
|
+
property?: (("short" | "long" | "ignore") | {
|
|
10385
|
+
binary?: ("short" | "long" | "ignore")
|
|
10386
|
+
generalCategory?: ("short" | "long" | "ignore")
|
|
10387
|
+
script?: ("short" | "long" | "ignore")
|
|
10388
|
+
})
|
|
10389
|
+
}]
|
|
9846
10390
|
// ----- require-atomic-updates -----
|
|
9847
10391
|
type RequireAtomicUpdates = []|[{
|
|
9848
10392
|
allowProperties?: boolean
|
|
@@ -10109,6 +10653,8 @@ interface _StyleJsxCurlySpacing_BasicConfig {
|
|
|
10109
10653
|
type StyleJsxEqualsSpacing = []|[("always" | "never")]
|
|
10110
10654
|
// ----- style/jsx-first-prop-new-line -----
|
|
10111
10655
|
type StyleJsxFirstPropNewLine = []|[("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")]
|
|
10656
|
+
// ----- style/jsx-function-call-newline -----
|
|
10657
|
+
type StyleJsxFunctionCallNewline = []|[("always" | "multiline")]
|
|
10112
10658
|
// ----- style/jsx-indent -----
|
|
10113
10659
|
type StyleJsxIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
10114
10660
|
checkAttributes?: boolean
|
|
@@ -10138,7 +10684,7 @@ type StyleJsxNewline = []|[{
|
|
|
10138
10684
|
}]
|
|
10139
10685
|
// ----- style/jsx-one-expression-per-line -----
|
|
10140
10686
|
type StyleJsxOneExpressionPerLine = []|[{
|
|
10141
|
-
allow?: ("none" | "literal" | "single-child")
|
|
10687
|
+
allow?: ("none" | "literal" | "single-child" | "single-line")
|
|
10142
10688
|
}]
|
|
10143
10689
|
// ----- style/jsx-pascal-case -----
|
|
10144
10690
|
type StyleJsxPascalCase = []|[{
|
|
@@ -10181,6 +10727,7 @@ type StyleJsxWrapMultilines = []|[{
|
|
|
10181
10727
|
condition?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"))
|
|
10182
10728
|
logical?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"))
|
|
10183
10729
|
prop?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"))
|
|
10730
|
+
propertyValue?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"))
|
|
10184
10731
|
}]
|
|
10185
10732
|
// ----- style/key-spacing -----
|
|
10186
10733
|
type StyleKeySpacing = []|[({
|
|
@@ -10511,6 +11058,13 @@ type StyleKeywordSpacing = []|[{
|
|
|
10511
11058
|
}
|
|
10512
11059
|
}
|
|
10513
11060
|
}]
|
|
11061
|
+
// ----- style/line-comment-position -----
|
|
11062
|
+
type StyleLineCommentPosition = []|[(("above" | "beside") | {
|
|
11063
|
+
position?: ("above" | "beside")
|
|
11064
|
+
ignorePattern?: string
|
|
11065
|
+
applyDefaultPatterns?: boolean
|
|
11066
|
+
applyDefaultIgnorePatterns?: boolean
|
|
11067
|
+
})]
|
|
10514
11068
|
// ----- style/linebreak-style -----
|
|
10515
11069
|
type StyleLinebreakStyle = []|[("unix" | "windows")]
|
|
10516
11070
|
// ----- style/lines-around-comment -----
|
|
@@ -10664,6 +11218,10 @@ interface _StyleMemberDelimiterStyle_DelimiterConfig {
|
|
|
10664
11218
|
requireLast?: boolean
|
|
10665
11219
|
}
|
|
10666
11220
|
}
|
|
11221
|
+
// ----- style/multiline-comment-style -----
|
|
11222
|
+
type StyleMultilineCommentStyle = ([]|[("starred-block" | "bare-block")] | []|["separate-lines"]|["separate-lines", {
|
|
11223
|
+
checkJSDoc?: boolean
|
|
11224
|
+
}])
|
|
10667
11225
|
// ----- style/multiline-ternary -----
|
|
10668
11226
|
type StyleMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
|
|
10669
11227
|
ignoreJSX?: boolean
|
|
@@ -10934,6 +11492,10 @@ type TestMaxExpects = []|[{
|
|
|
10934
11492
|
type TestMaxNestedDescribe = []|[{
|
|
10935
11493
|
max?: number
|
|
10936
11494
|
}]
|
|
11495
|
+
// ----- test/no-focused-tests -----
|
|
11496
|
+
type TestNoFocusedTests = []|[{
|
|
11497
|
+
fixable?: boolean
|
|
11498
|
+
}]
|
|
10937
11499
|
// ----- test/no-hooks -----
|
|
10938
11500
|
type TestNoHooks = []|[{
|
|
10939
11501
|
allow?: unknown[]
|
|
@@ -12392,6 +12954,8 @@ type TsSortTypeConstituents = []|[{
|
|
|
12392
12954
|
|
|
12393
12955
|
checkUnions?: boolean
|
|
12394
12956
|
|
|
12957
|
+
caseSensitive?: boolean
|
|
12958
|
+
|
|
12395
12959
|
groupOrder?: ("conditional" | "function" | "import" | "intersection" | "keyword" | "nullish" | "literal" | "named" | "object" | "operator" | "tuple" | "union")[]
|
|
12396
12960
|
}]
|
|
12397
12961
|
// ----- ts/space-before-blocks -----
|
|
@@ -12613,11 +13177,16 @@ type UnicornPreferExportFrom = []|[{
|
|
|
12613
13177
|
// ----- unicorn/prefer-number-properties -----
|
|
12614
13178
|
type UnicornPreferNumberProperties = []|[{
|
|
12615
13179
|
checkInfinity?: boolean
|
|
13180
|
+
checkNaN?: boolean
|
|
12616
13181
|
}]
|
|
12617
13182
|
// ----- unicorn/prefer-object-from-entries -----
|
|
12618
13183
|
type UnicornPreferObjectFromEntries = []|[{
|
|
12619
13184
|
functions?: unknown[]
|
|
12620
13185
|
}]
|
|
13186
|
+
// ----- unicorn/prefer-structured-clone -----
|
|
13187
|
+
type UnicornPreferStructuredClone = []|[{
|
|
13188
|
+
functions?: unknown[]
|
|
13189
|
+
}]
|
|
12621
13190
|
// ----- unicorn/prefer-switch -----
|
|
12622
13191
|
type UnicornPreferSwitch = []|[{
|
|
12623
13192
|
minimumCases?: number
|
|
@@ -12684,17 +13253,6 @@ type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
|
12684
13253
|
caughtErrorsIgnorePattern?: string
|
|
12685
13254
|
destructuredArrayIgnorePattern?: string
|
|
12686
13255
|
})]
|
|
12687
|
-
// ----- unused-imports/no-unused-imports-ts -----
|
|
12688
|
-
type UnusedImportsNoUnusedImportsTs = []|[(("all" | "local") | {
|
|
12689
|
-
vars?: ("all" | "local")
|
|
12690
|
-
varsIgnorePattern?: string
|
|
12691
|
-
args?: ("all" | "after-used" | "none")
|
|
12692
|
-
ignoreRestSiblings?: boolean
|
|
12693
|
-
argsIgnorePattern?: string
|
|
12694
|
-
caughtErrors?: ("all" | "none")
|
|
12695
|
-
caughtErrorsIgnorePattern?: string
|
|
12696
|
-
destructuredArrayIgnorePattern?: string
|
|
12697
|
-
})]
|
|
12698
13256
|
// ----- unused-imports/no-unused-vars -----
|
|
12699
13257
|
type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
12700
13258
|
vars?: ("all" | "local")
|
|
@@ -12706,17 +13264,6 @@ type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
|
12706
13264
|
caughtErrorsIgnorePattern?: string
|
|
12707
13265
|
destructuredArrayIgnorePattern?: string
|
|
12708
13266
|
})]
|
|
12709
|
-
// ----- unused-imports/no-unused-vars-ts -----
|
|
12710
|
-
type UnusedImportsNoUnusedVarsTs = []|[(("all" | "local") | {
|
|
12711
|
-
vars?: ("all" | "local")
|
|
12712
|
-
varsIgnorePattern?: string
|
|
12713
|
-
args?: ("all" | "after-used" | "none")
|
|
12714
|
-
ignoreRestSiblings?: boolean
|
|
12715
|
-
argsIgnorePattern?: string
|
|
12716
|
-
caughtErrors?: ("all" | "none")
|
|
12717
|
-
caughtErrorsIgnorePattern?: string
|
|
12718
|
-
destructuredArrayIgnorePattern?: string
|
|
12719
|
-
})]
|
|
12720
13267
|
// ----- use-isnan -----
|
|
12721
13268
|
type UseIsnan = []|[{
|
|
12722
13269
|
enforceForSwitchCase?: boolean
|
|
@@ -12726,47 +13273,6 @@ type UseIsnan = []|[{
|
|
|
12726
13273
|
type ValidTypeof = []|[{
|
|
12727
13274
|
requireStringLiterals?: boolean
|
|
12728
13275
|
}]
|
|
12729
|
-
// ----- vinicunca/cognitive-complexity -----
|
|
12730
|
-
type VinicuncaCognitiveComplexity = []|[number]|[number, ("vinicunca-runtime" | "metric")]
|
|
12731
|
-
// ----- vinicunca/consistent-list-newline -----
|
|
12732
|
-
type VinicuncaConsistentListNewline = []|[{
|
|
12733
|
-
ArrayExpression?: boolean
|
|
12734
|
-
ArrayPattern?: boolean
|
|
12735
|
-
ArrowFunctionExpression?: boolean
|
|
12736
|
-
CallExpression?: boolean
|
|
12737
|
-
ExportNamedDeclaration?: boolean
|
|
12738
|
-
FunctionDeclaration?: boolean
|
|
12739
|
-
FunctionExpression?: boolean
|
|
12740
|
-
ImportDeclaration?: boolean
|
|
12741
|
-
NewExpression?: boolean
|
|
12742
|
-
ObjectExpression?: boolean
|
|
12743
|
-
ObjectPattern?: boolean
|
|
12744
|
-
TSInterfaceDeclaration?: boolean
|
|
12745
|
-
TSTupleType?: boolean
|
|
12746
|
-
TSTypeLiteral?: boolean
|
|
12747
|
-
TSTypeParameterDeclaration?: boolean
|
|
12748
|
-
TSTypeParameterInstantiation?: boolean
|
|
12749
|
-
}]
|
|
12750
|
-
// ----- vinicunca/no-collapsible-if -----
|
|
12751
|
-
type VinicuncaNoCollapsibleIf = []|["vinicunca-runtime"]
|
|
12752
|
-
// ----- vinicunca/no-duplicate-string -----
|
|
12753
|
-
type VinicuncaNoDuplicateString = []|[{
|
|
12754
|
-
ignoreStrings?: string
|
|
12755
|
-
threshold?: number
|
|
12756
|
-
[k: string]: unknown | undefined
|
|
12757
|
-
}]|[{
|
|
12758
|
-
ignoreStrings?: string
|
|
12759
|
-
threshold?: number
|
|
12760
|
-
[k: string]: unknown | undefined
|
|
12761
|
-
}, "vinicunca-runtime"]
|
|
12762
|
-
// ----- vinicunca/no-duplicated-branches -----
|
|
12763
|
-
type VinicuncaNoDuplicatedBranches = []|["vinicunca-runtime"]
|
|
12764
|
-
// ----- vinicunca/no-identical-conditions -----
|
|
12765
|
-
type VinicuncaNoIdenticalConditions = []|["vinicunca-runtime"]
|
|
12766
|
-
// ----- vinicunca/no-identical-expressions -----
|
|
12767
|
-
type VinicuncaNoIdenticalExpressions = []|["vinicunca-runtime"]
|
|
12768
|
-
// ----- vinicunca/no-identical-functions -----
|
|
12769
|
-
type VinicuncaNoIdenticalFunctions = []|[number]|[number, "vinicunca-runtime"]
|
|
12770
13276
|
// ----- vue/array-bracket-newline -----
|
|
12771
13277
|
type VueArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
|
|
12772
13278
|
multiline?: boolean
|
|
@@ -13478,7 +13984,7 @@ type VueNoConsole = []|[{
|
|
|
13478
13984
|
}]
|
|
13479
13985
|
// ----- vue/no-constant-condition -----
|
|
13480
13986
|
type VueNoConstantCondition = []|[{
|
|
13481
|
-
checkLoops?:
|
|
13987
|
+
checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false)
|
|
13482
13988
|
}]
|
|
13483
13989
|
// ----- vue/no-deprecated-model-definition -----
|
|
13484
13990
|
type VueNoDeprecatedModelDefinition = []|[{
|
|
@@ -14144,6 +14650,8 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
14144
14650
|
exceptRange?: boolean
|
|
14145
14651
|
onlyEquality?: boolean
|
|
14146
14652
|
}]
|
|
14653
|
+
// Names of all the configs
|
|
14654
|
+
type ConfigNames = 'vinicunca/eslint-comments' | 'vinicunca/formatter/setup' | 'vinicunca/imports/rules' | 'vinicunca/javascript/rules' | 'vinicunca/javascript/disables' | 'vinicunca/jsdoc/rules' | 'vinicunca/jsonc/setup' | 'vinicunca/jsonc/rules' | 'vinicunca/markdown/setup' | 'vinicunca/markdown/processor' | 'vinicunca/markdown/parser' | 'vinicunca/markdown/disables' | 'vinicunca/perfectionist/rules' | 'vinicunca/node/rules' | 'vinicunca/react/setup' | 'vinicunca/react/rules' | 'vinicunca/regexp/rules' | 'vinicunca/sort/package-json' | 'vinicunca/stylistic/rules' | 'vinicunca/test/setup' | 'vinicunca/test/rules' | 'vinicunca/typescript/setup' | 'vinicunca/typescript/parser' | 'vinicunca/typescript/rules' | 'vinicunca/typescript/rules-type-aware' | 'vinicunca/typescript/disables/dts' | 'vinicunca/typescript/disables/tests' | 'vinicunca/typescript/disables/javascript' | 'vinicunca/unicorn/rules' | 'vinicunca/unocss' | 'vinicunca/vue/setup' | 'vinicunca/vue/rules' | 'vinicunca/yaml/setup' | 'vinicunca/yaml/rules'
|
|
14147
14655
|
|
|
14148
14656
|
/**
|
|
14149
14657
|
* Vendor types from Prettier so we don't rely on the dependency.
|
|
@@ -14246,22 +14754,15 @@ interface VendoredPrettierOptionsRequired {
|
|
|
14246
14754
|
|
|
14247
14755
|
type Awaitable<T> = Promise<T> | T;
|
|
14248
14756
|
type Rules = RuleOptions;
|
|
14249
|
-
|
|
14250
|
-
|
|
14251
|
-
* Custom name of each config item
|
|
14252
|
-
*/
|
|
14253
|
-
name?: string;
|
|
14757
|
+
|
|
14758
|
+
type TypedFlatConfigItem = {
|
|
14254
14759
|
/**
|
|
14255
14760
|
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
14256
14761
|
*
|
|
14257
14762
|
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
14258
14763
|
*/
|
|
14259
14764
|
plugins?: Record<string, any>;
|
|
14260
|
-
|
|
14261
|
-
* An object containing a name-value mapping of rules to use.
|
|
14262
|
-
*/
|
|
14263
|
-
rules?: Linter.RulesRecord & Rules;
|
|
14264
|
-
};
|
|
14765
|
+
} & Omit<Linter.FlatConfig<Linter.RulesRecord & Rules>, 'plugins'>;
|
|
14265
14766
|
interface OptionsFiles {
|
|
14266
14767
|
/**
|
|
14267
14768
|
* Override the `files` option to provide custom globs.
|
|
@@ -14283,7 +14784,7 @@ interface OptionsVue extends OptionsOverrides {
|
|
|
14283
14784
|
*/
|
|
14284
14785
|
vueVersion?: 2 | 3;
|
|
14285
14786
|
}
|
|
14286
|
-
type OptionsTypescript = (
|
|
14787
|
+
type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptParserOptions) | (OptionsOverrides & OptionsTypeScriptWithTypes);
|
|
14287
14788
|
interface OptionsFormatters {
|
|
14288
14789
|
/**
|
|
14289
14790
|
* Enable formatting support for CSS, Less, Sass, and SCSS.
|
|
@@ -14360,6 +14861,12 @@ interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'js
|
|
|
14360
14861
|
interface OptionsOverrides {
|
|
14361
14862
|
overrides?: TypedFlatConfigItem['rules'];
|
|
14362
14863
|
}
|
|
14864
|
+
interface OptionsRegExp {
|
|
14865
|
+
/**
|
|
14866
|
+
* Override rulelevels
|
|
14867
|
+
*/
|
|
14868
|
+
level?: 'error' | 'warn';
|
|
14869
|
+
}
|
|
14363
14870
|
interface OptionsIsInEditor {
|
|
14364
14871
|
isInEditor?: boolean;
|
|
14365
14872
|
}
|
|
@@ -14440,12 +14947,20 @@ interface OptionsConfig extends OptionsComponentExts {
|
|
|
14440
14947
|
* @default false
|
|
14441
14948
|
*/
|
|
14442
14949
|
react?: OptionsOverrides | boolean;
|
|
14950
|
+
/**
|
|
14951
|
+
* Enable regexp rules.
|
|
14952
|
+
*
|
|
14953
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/
|
|
14954
|
+
* @default true
|
|
14955
|
+
*/
|
|
14956
|
+
regexp?: (OptionsOverrides & OptionsRegExp) | boolean;
|
|
14443
14957
|
/**
|
|
14444
14958
|
* Enable stylistic rules.
|
|
14445
14959
|
*
|
|
14960
|
+
* @see https://eslint.style/
|
|
14446
14961
|
* @default true
|
|
14447
14962
|
*/
|
|
14448
|
-
stylistic?: (
|
|
14963
|
+
stylistic?: (OptionsOverrides & StylisticConfig) | boolean;
|
|
14449
14964
|
/**
|
|
14450
14965
|
* Enable test support.
|
|
14451
14966
|
*
|
|
@@ -14488,10 +15003,21 @@ declare const defaultPluginRenaming: {
|
|
|
14488
15003
|
'@typescript-eslint': string;
|
|
14489
15004
|
'import-x': string;
|
|
14490
15005
|
n: string;
|
|
15006
|
+
sonarjs: string;
|
|
14491
15007
|
vitest: string;
|
|
14492
15008
|
yml: string;
|
|
14493
15009
|
};
|
|
14494
|
-
|
|
15010
|
+
/**
|
|
15011
|
+
* Construct an array of ESLint flat config items.
|
|
15012
|
+
*
|
|
15013
|
+
* @param options
|
|
15014
|
+
* The options for generating the ESLint configurations.
|
|
15015
|
+
* @param userConfigs
|
|
15016
|
+
* The user configurations to be merged with the generated configurations.
|
|
15017
|
+
* @returns
|
|
15018
|
+
* The merged ESLint configurations.
|
|
15019
|
+
*/
|
|
15020
|
+
declare function vinicuncaESLint(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Array<Awaitable<Array<Linter.FlatConfig> | Array<TypedFlatConfigItem> | FlatConfigComposer<any, any> | TypedFlatConfigItem>>): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
14495
15021
|
|
|
14496
15022
|
declare function comments(): Promise<Array<TypedFlatConfigItem>>;
|
|
14497
15023
|
|
|
@@ -14518,7 +15044,11 @@ declare function node(): Promise<Array<TypedFlatConfigItem>>;
|
|
|
14518
15044
|
*/
|
|
14519
15045
|
declare function perfectionist(): Promise<Array<TypedFlatConfigItem>>;
|
|
14520
15046
|
|
|
14521
|
-
declare function react(options?:
|
|
15047
|
+
declare function react(options?: OptionsFiles & OptionsOverrides & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
15048
|
+
|
|
15049
|
+
declare function regexp(options?: OptionsOverrides & OptionsRegExp): Promise<Array<TypedFlatConfigItem>>;
|
|
15050
|
+
|
|
15051
|
+
declare function sonar(): Promise<Array<TypedFlatConfigItem>>;
|
|
14522
15052
|
|
|
14523
15053
|
/**
|
|
14524
15054
|
* Sort package.json
|
|
@@ -14534,11 +15064,11 @@ declare function sortPackageJson(): Promise<Array<TypedFlatConfigItem>>;
|
|
|
14534
15064
|
declare function sortTsconfig(): Array<TypedFlatConfigItem>;
|
|
14535
15065
|
|
|
14536
15066
|
declare const STYLISTIC_CONFIG_DEFAULTS: StylisticConfig;
|
|
14537
|
-
declare function stylistic(options?:
|
|
15067
|
+
declare function stylistic(options?: OptionsOverrides & StylisticConfig): Promise<Array<TypedFlatConfigItem>>;
|
|
14538
15068
|
|
|
14539
15069
|
declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<Array<TypedFlatConfigItem>>;
|
|
14540
15070
|
|
|
14541
|
-
declare function typescript(options?:
|
|
15071
|
+
declare function typescript(options?: OptionsComponentExts & OptionsFiles & OptionsOverrides & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
14542
15072
|
|
|
14543
15073
|
declare function unicorn(): Promise<Array<TypedFlatConfigItem>>;
|
|
14544
15074
|
|
|
@@ -14642,4 +15172,4 @@ declare const GLOB_TESTS: string[];
|
|
|
14642
15172
|
declare const GLOB_ALL_SRC: string[];
|
|
14643
15173
|
declare const GLOB_EXCLUDE: string[];
|
|
14644
15174
|
|
|
14645
|
-
export { type Awaitable, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type Rules, STYLISTIC_CONFIG_DEFAULTS, type StylisticConfig, type TypedFlatConfigItem, combineConfigs, comments, defaultPluginRenaming, formatters, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, react, renamePluginInConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, unocss, vinicuncaESLint, vue, yaml };
|
|
15175
|
+
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type Rules, STYLISTIC_CONFIG_DEFAULTS, type StylisticConfig, type TypedFlatConfigItem, combineConfigs, comments, defaultPluginRenaming, formatters, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, react, regexp, renamePluginInConfigs, renameRules, sonar, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, unocss, vinicuncaESLint, vue, yaml };
|