@vinicunca/eslint-config 2.4.2 → 2.4.4
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 +51 -49
- package/dist/index.d.cts +321 -300
- package/dist/index.d.ts +321 -300
- package/dist/index.js +52 -50
- package/package.json +18 -17
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { ParserOptions } from '@typescript-eslint/parser';
|
|
|
3
3
|
import { Linter } from 'eslint';
|
|
4
4
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
5
5
|
import { Options } from 'eslint-processor-vue-blocks';
|
|
6
|
-
import {
|
|
6
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
7
7
|
export { default as pluginVinicunca } from '@vinicunca/eslint-plugin-vinicunca';
|
|
8
8
|
export { default as pluginComments } from 'eslint-plugin-eslint-comments';
|
|
9
9
|
import * as eslintPluginImportX from 'eslint-plugin-import-x';
|
|
@@ -340,44 +340,44 @@ interface RuleOptions {
|
|
|
340
340
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
341
341
|
/**
|
|
342
342
|
* 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.
|
|
343
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/consistent-type-specifier-style.md
|
|
344
344
|
*/
|
|
345
345
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
346
346
|
/**
|
|
347
347
|
* Ensure a default export is present, given a default import.
|
|
348
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
348
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/default.md
|
|
349
349
|
*/
|
|
350
350
|
'import/default'?: Linter.RuleEntry<[]>
|
|
351
351
|
/**
|
|
352
352
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
353
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
353
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/dynamic-import-chunkname.md
|
|
354
354
|
*/
|
|
355
355
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
356
356
|
/**
|
|
357
357
|
* 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.
|
|
358
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/export.md
|
|
359
359
|
*/
|
|
360
360
|
'import/export'?: Linter.RuleEntry<[]>
|
|
361
361
|
/**
|
|
362
362
|
* Ensure all exports appear after other statements.
|
|
363
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
363
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/exports-last.md
|
|
364
364
|
*/
|
|
365
365
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
366
366
|
/**
|
|
367
367
|
* Ensure consistent use of file extension within the import path.
|
|
368
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
368
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/extensions.md
|
|
369
369
|
*/
|
|
370
370
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
371
371
|
/**
|
|
372
372
|
* Ensure all imports appear before other statements.
|
|
373
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
373
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/first.md
|
|
374
374
|
*/
|
|
375
375
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
376
376
|
/**
|
|
377
377
|
* 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.
|
|
378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/group-exports.md
|
|
379
379
|
*/
|
|
380
|
-
'import/group-exports'?: Linter.RuleEntry<
|
|
380
|
+
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
381
381
|
/**
|
|
382
382
|
* Replaced by `import-x/first`.
|
|
383
383
|
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md
|
|
@@ -386,182 +386,182 @@ interface RuleOptions {
|
|
|
386
386
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
387
387
|
/**
|
|
388
388
|
* Enforce the maximum number of dependencies a module can have.
|
|
389
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
389
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/max-dependencies.md
|
|
390
390
|
*/
|
|
391
391
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
392
392
|
/**
|
|
393
393
|
* 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.
|
|
394
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/named.md
|
|
395
395
|
*/
|
|
396
396
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
397
397
|
/**
|
|
398
398
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
399
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/namespace.md
|
|
400
400
|
*/
|
|
401
401
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
402
402
|
/**
|
|
403
403
|
* Enforce a newline after import statements.
|
|
404
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/newline-after-import.md
|
|
405
405
|
*/
|
|
406
406
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
407
407
|
/**
|
|
408
408
|
* Forbid import of modules using absolute paths.
|
|
409
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-absolute-path.md
|
|
410
410
|
*/
|
|
411
411
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
412
412
|
/**
|
|
413
413
|
* Forbid AMD `require` and `define` calls.
|
|
414
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
414
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-amd.md
|
|
415
415
|
*/
|
|
416
416
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
417
417
|
/**
|
|
418
418
|
* Forbid anonymous values as default exports.
|
|
419
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
419
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-anonymous-default-export.md
|
|
420
420
|
*/
|
|
421
421
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
422
422
|
/**
|
|
423
423
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
424
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
424
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-commonjs.md
|
|
425
425
|
*/
|
|
426
426
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
427
427
|
/**
|
|
428
428
|
* 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.
|
|
429
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-cycle.md
|
|
430
430
|
*/
|
|
431
431
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
432
432
|
/**
|
|
433
433
|
* Forbid default exports.
|
|
434
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
434
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-default-export.md
|
|
435
435
|
*/
|
|
436
436
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
437
437
|
/**
|
|
438
438
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
439
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
439
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-deprecated.md
|
|
440
440
|
*/
|
|
441
441
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
442
442
|
/**
|
|
443
443
|
* Forbid repeated import of the same module in multiple places.
|
|
444
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
444
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-duplicates.md
|
|
445
445
|
*/
|
|
446
446
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
447
447
|
/**
|
|
448
448
|
* Forbid `require()` calls with expressions.
|
|
449
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
449
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-dynamic-require.md
|
|
450
450
|
*/
|
|
451
451
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
452
452
|
/**
|
|
453
453
|
* Forbid empty named import blocks.
|
|
454
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
454
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-empty-named-blocks.md
|
|
455
455
|
*/
|
|
456
456
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
457
457
|
/**
|
|
458
458
|
* Forbid the use of extraneous packages.
|
|
459
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
459
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-extraneous-dependencies.md
|
|
460
460
|
*/
|
|
461
461
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
462
462
|
/**
|
|
463
463
|
* Forbid import statements with CommonJS module.exports.
|
|
464
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
464
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-import-module-exports.md
|
|
465
465
|
*/
|
|
466
466
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
467
467
|
/**
|
|
468
468
|
* Forbid importing the submodules of other modules.
|
|
469
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
469
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-internal-modules.md
|
|
470
470
|
*/
|
|
471
471
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
472
472
|
/**
|
|
473
473
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
474
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
474
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-mutable-exports.md
|
|
475
475
|
*/
|
|
476
476
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
477
477
|
/**
|
|
478
478
|
* Forbid use of exported name as identifier of default export.
|
|
479
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
479
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-named-as-default.md
|
|
480
480
|
*/
|
|
481
481
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
482
482
|
/**
|
|
483
483
|
* Forbid use of exported name as property of default export.
|
|
484
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
484
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-named-as-default-member.md
|
|
485
485
|
*/
|
|
486
486
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
487
487
|
/**
|
|
488
488
|
* Forbid named default exports.
|
|
489
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
489
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-named-default.md
|
|
490
490
|
*/
|
|
491
491
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
492
492
|
/**
|
|
493
493
|
* Forbid named exports.
|
|
494
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
494
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-named-export.md
|
|
495
495
|
*/
|
|
496
496
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
497
497
|
/**
|
|
498
498
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
499
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
499
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-namespace.md
|
|
500
500
|
*/
|
|
501
501
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
502
502
|
/**
|
|
503
503
|
* Forbid Node.js builtin modules.
|
|
504
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
504
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-nodejs-modules.md
|
|
505
505
|
*/
|
|
506
506
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
507
507
|
/**
|
|
508
508
|
* Forbid importing packages through relative paths.
|
|
509
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
509
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-relative-packages.md
|
|
510
510
|
*/
|
|
511
511
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
512
512
|
/**
|
|
513
513
|
* Forbid importing modules from parent directories.
|
|
514
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
514
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-relative-parent-imports.md
|
|
515
515
|
*/
|
|
516
516
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
517
517
|
/**
|
|
518
518
|
* Enforce which files can be imported in a given folder.
|
|
519
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
519
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-restricted-paths.md
|
|
520
520
|
*/
|
|
521
521
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
522
522
|
/**
|
|
523
523
|
* Forbid a module from importing itself.
|
|
524
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
524
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-self-import.md
|
|
525
525
|
*/
|
|
526
526
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
527
527
|
/**
|
|
528
528
|
* Forbid unassigned imports.
|
|
529
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
529
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-unassigned-import.md
|
|
530
530
|
*/
|
|
531
531
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
532
532
|
/**
|
|
533
533
|
* Ensure imports point to a file/module that can be resolved.
|
|
534
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
534
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-unresolved.md
|
|
535
535
|
*/
|
|
536
536
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
537
537
|
/**
|
|
538
538
|
* 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.
|
|
539
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-unused-modules.md
|
|
540
540
|
*/
|
|
541
541
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
542
542
|
/**
|
|
543
543
|
* Forbid unnecessary path segments in import and require statements.
|
|
544
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
544
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-useless-path-segments.md
|
|
545
545
|
*/
|
|
546
546
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
547
547
|
/**
|
|
548
548
|
* Forbid webpack loader syntax in imports.
|
|
549
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
549
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/no-webpack-loader-syntax.md
|
|
550
550
|
*/
|
|
551
551
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
552
552
|
/**
|
|
553
553
|
* Enforce a convention in module import order.
|
|
554
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
554
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/order.md
|
|
555
555
|
*/
|
|
556
556
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
557
557
|
/**
|
|
558
558
|
* 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.
|
|
559
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/prefer-default-export.md
|
|
560
560
|
*/
|
|
561
561
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
562
562
|
/**
|
|
563
563
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
564
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.
|
|
564
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.0/docs/rules/unambiguous.md
|
|
565
565
|
*/
|
|
566
566
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
567
567
|
/**
|
|
@@ -1295,7 +1295,7 @@ interface RuleOptions {
|
|
|
1295
1295
|
* Disallow returning value from constructor
|
|
1296
1296
|
* @see https://eslint.org/docs/latest/rules/no-constructor-return
|
|
1297
1297
|
*/
|
|
1298
|
-
'no-constructor-return'?: Linter.RuleEntry<
|
|
1298
|
+
'no-constructor-return'?: Linter.RuleEntry<[]>
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Disallow `continue` statements
|
|
1301
1301
|
* @see https://eslint.org/docs/latest/rules/no-continue
|
|
@@ -1631,6 +1631,7 @@ interface RuleOptions {
|
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Disallow `new` operators with the `Symbol` object
|
|
1633
1633
|
* @see https://eslint.org/docs/latest/rules/no-new-symbol
|
|
1634
|
+
* @deprecated
|
|
1634
1635
|
*/
|
|
1635
1636
|
'no-new-symbol'?: Linter.RuleEntry<[]>
|
|
1636
1637
|
/**
|
|
@@ -1927,6 +1928,11 @@ interface RuleOptions {
|
|
|
1927
1928
|
* @see https://eslint.org/docs/latest/rules/no-use-before-define
|
|
1928
1929
|
*/
|
|
1929
1930
|
'no-use-before-define'?: Linter.RuleEntry<NoUseBeforeDefine>
|
|
1931
|
+
/**
|
|
1932
|
+
* Disallow variable assignments when the value is not used
|
|
1933
|
+
* @see https://eslint.org/docs/latest/rules/no-useless-assignment
|
|
1934
|
+
*/
|
|
1935
|
+
'no-useless-assignment'?: Linter.RuleEntry<[]>
|
|
1930
1936
|
/**
|
|
1931
1937
|
* Disallow useless backreferences in regular expressions
|
|
1932
1938
|
* @see https://eslint.org/docs/latest/rules/no-useless-backreference
|
|
@@ -2023,6 +2029,11 @@ interface RuleOptions {
|
|
|
2023
2029
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/handle-callback-err.md
|
|
2024
2030
|
*/
|
|
2025
2031
|
'node/handle-callback-err'?: Linter.RuleEntry<NodeHandleCallbackErr>
|
|
2032
|
+
/**
|
|
2033
|
+
* require correct usage of hashbang
|
|
2034
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
|
|
2035
|
+
*/
|
|
2036
|
+
'node/hashbang'?: Linter.RuleEntry<NodeHashbang>
|
|
2026
2037
|
/**
|
|
2027
2038
|
* enforce Node.js-style error-first callback pattern is followed
|
|
2028
2039
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-callback-literal.md
|
|
@@ -2119,12 +2130,6 @@ interface RuleOptions {
|
|
|
2119
2130
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-require.md
|
|
2120
2131
|
*/
|
|
2121
2132
|
'node/no-unpublished-require'?: Linter.RuleEntry<NodeNoUnpublishedRequire>
|
|
2122
|
-
/**
|
|
2123
|
-
* disallow unsupported ECMAScript features on the specified version
|
|
2124
|
-
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features.md
|
|
2125
|
-
* @deprecated
|
|
2126
|
-
*/
|
|
2127
|
-
'node/no-unsupported-features'?: Linter.RuleEntry<NodeNoUnsupportedFeatures>
|
|
2128
2133
|
/**
|
|
2129
2134
|
* disallow unsupported ECMAScript built-ins on the specified version
|
|
2130
2135
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-builtins.md
|
|
@@ -2175,6 +2180,11 @@ interface RuleOptions {
|
|
|
2175
2180
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
|
|
2176
2181
|
*/
|
|
2177
2182
|
'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>
|
|
2183
|
+
/**
|
|
2184
|
+
* enforce using the `node:` protocol when importing Node.js builtin modules.
|
|
2185
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
|
|
2186
|
+
*/
|
|
2187
|
+
'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>
|
|
2178
2188
|
/**
|
|
2179
2189
|
* enforce `require("dns").promises`
|
|
2180
2190
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
|
|
@@ -2191,8 +2201,9 @@ interface RuleOptions {
|
|
|
2191
2201
|
*/
|
|
2192
2202
|
'node/process-exit-as-throw'?: Linter.RuleEntry<[]>
|
|
2193
2203
|
/**
|
|
2194
|
-
* require correct usage of
|
|
2195
|
-
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/
|
|
2204
|
+
* require correct usage of hashbang
|
|
2205
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
|
|
2206
|
+
* @deprecated
|
|
2196
2207
|
*/
|
|
2197
2208
|
'node/shebang'?: Linter.RuleEntry<NodeShebang>
|
|
2198
2209
|
/**
|
|
@@ -2953,12 +2964,6 @@ interface RuleOptions {
|
|
|
2953
2964
|
* @see https://eslint.org/docs/latest/rules/require-await
|
|
2954
2965
|
*/
|
|
2955
2966
|
'require-await'?: Linter.RuleEntry<[]>
|
|
2956
|
-
/**
|
|
2957
|
-
* Require JSDoc comments
|
|
2958
|
-
* @see https://eslint.org/docs/latest/rules/require-jsdoc
|
|
2959
|
-
* @deprecated
|
|
2960
|
-
*/
|
|
2961
|
-
'require-jsdoc'?: Linter.RuleEntry<RequireJsdoc>
|
|
2962
2967
|
/**
|
|
2963
2968
|
* Enforce the use of `u` or `v` flag on RegExp
|
|
2964
2969
|
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
@@ -3533,103 +3538,103 @@ interface RuleOptions {
|
|
|
3533
3538
|
*/
|
|
3534
3539
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>
|
|
3535
3540
|
/**
|
|
3536
|
-
*
|
|
3541
|
+
* require .spec test file pattern
|
|
3537
3542
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
3538
3543
|
*/
|
|
3539
3544
|
'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>
|
|
3540
3545
|
/**
|
|
3541
|
-
*
|
|
3546
|
+
* enforce using test or it but not both
|
|
3542
3547
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
3543
3548
|
*/
|
|
3544
3549
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
|
|
3545
3550
|
/**
|
|
3546
|
-
*
|
|
3551
|
+
* enforce having expectation in test body
|
|
3547
3552
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
3548
3553
|
*/
|
|
3549
3554
|
'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
|
|
3550
3555
|
/**
|
|
3551
|
-
*
|
|
3556
|
+
* enforce a maximum number of expect per test
|
|
3552
3557
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
3553
3558
|
*/
|
|
3554
3559
|
'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>
|
|
3555
3560
|
/**
|
|
3556
|
-
*
|
|
3561
|
+
* require describe block to be less than set max value or default value
|
|
3557
3562
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
|
|
3558
3563
|
*/
|
|
3559
3564
|
'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>
|
|
3560
3565
|
/**
|
|
3561
|
-
*
|
|
3566
|
+
* disallow alias methods
|
|
3562
3567
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
|
|
3563
3568
|
*/
|
|
3564
3569
|
'test/no-alias-methods'?: Linter.RuleEntry<[]>
|
|
3565
3570
|
/**
|
|
3566
|
-
*
|
|
3571
|
+
* disallow commented out tests
|
|
3567
3572
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
|
|
3568
3573
|
*/
|
|
3569
3574
|
'test/no-commented-out-tests'?: Linter.RuleEntry<[]>
|
|
3570
3575
|
/**
|
|
3571
|
-
*
|
|
3576
|
+
* disallow conditional expects
|
|
3572
3577
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
3573
3578
|
*/
|
|
3574
3579
|
'test/no-conditional-expect'?: Linter.RuleEntry<[]>
|
|
3575
3580
|
/**
|
|
3576
|
-
*
|
|
3581
|
+
* disallow conditional tests
|
|
3577
3582
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
3578
3583
|
*/
|
|
3579
3584
|
'test/no-conditional-in-test'?: Linter.RuleEntry<[]>
|
|
3580
3585
|
/**
|
|
3581
|
-
*
|
|
3586
|
+
* disallow conditional tests
|
|
3582
3587
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
|
|
3583
3588
|
*/
|
|
3584
3589
|
'test/no-conditional-tests'?: Linter.RuleEntry<[]>
|
|
3585
3590
|
/**
|
|
3586
|
-
*
|
|
3591
|
+
* disallow disabled tests
|
|
3587
3592
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
|
|
3588
3593
|
*/
|
|
3589
3594
|
'test/no-disabled-tests'?: Linter.RuleEntry<[]>
|
|
3590
3595
|
/**
|
|
3591
|
-
*
|
|
3596
|
+
* disallow using a callback in asynchronous tests and hooks
|
|
3592
3597
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
|
|
3593
3598
|
* @deprecated
|
|
3594
3599
|
*/
|
|
3595
3600
|
'test/no-done-callback'?: Linter.RuleEntry<[]>
|
|
3596
3601
|
/**
|
|
3597
|
-
*
|
|
3602
|
+
* disallow duplicate hooks and teardown hooks
|
|
3598
3603
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
|
|
3599
3604
|
*/
|
|
3600
3605
|
'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>
|
|
3601
3606
|
/**
|
|
3602
|
-
*
|
|
3607
|
+
* disallow focused tests
|
|
3603
3608
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
3604
3609
|
*/
|
|
3605
3610
|
'test/no-focused-tests'?: Linter.RuleEntry<[]>
|
|
3606
3611
|
/**
|
|
3607
|
-
*
|
|
3612
|
+
* disallow setup and teardown hooks
|
|
3608
3613
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
3609
3614
|
*/
|
|
3610
3615
|
'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>
|
|
3611
3616
|
/**
|
|
3612
|
-
*
|
|
3617
|
+
* disallow identical titles
|
|
3613
3618
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
|
|
3614
3619
|
*/
|
|
3615
3620
|
'test/no-identical-title'?: Linter.RuleEntry<[]>
|
|
3616
3621
|
/**
|
|
3617
|
-
*
|
|
3622
|
+
* disallow importing `node:test`
|
|
3618
3623
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
3619
3624
|
*/
|
|
3620
3625
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>
|
|
3621
3626
|
/**
|
|
3622
|
-
*
|
|
3627
|
+
* disallow string interpolation in snapshots
|
|
3623
3628
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
3624
3629
|
*/
|
|
3625
3630
|
'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
|
|
3626
3631
|
/**
|
|
3627
|
-
*
|
|
3632
|
+
* disallow large snapshots
|
|
3628
3633
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
|
|
3629
3634
|
*/
|
|
3630
3635
|
'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>
|
|
3631
3636
|
/**
|
|
3632
|
-
*
|
|
3637
|
+
* disallow importing from __mocks__ directory
|
|
3633
3638
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
|
|
3634
3639
|
*/
|
|
3635
3640
|
'test/no-mocks-import'?: Linter.RuleEntry<[]>
|
|
@@ -3639,162 +3644,162 @@ interface RuleOptions {
|
|
|
3639
3644
|
*/
|
|
3640
3645
|
'test/no-only-tests'?: Linter.RuleEntry<TestNoOnlyTests>
|
|
3641
3646
|
/**
|
|
3642
|
-
*
|
|
3647
|
+
* disallow the use of certain matchers
|
|
3643
3648
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
|
|
3644
3649
|
*/
|
|
3645
3650
|
'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>
|
|
3646
3651
|
/**
|
|
3647
|
-
*
|
|
3652
|
+
* disallow specific `vi.` methods
|
|
3648
3653
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
|
|
3649
3654
|
*/
|
|
3650
3655
|
'test/no-restricted-vi-methods'?: Linter.RuleEntry<TestNoRestrictedViMethods>
|
|
3651
3656
|
/**
|
|
3652
|
-
*
|
|
3657
|
+
* disallow using `expect` outside of `it` or `test` blocks
|
|
3653
3658
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
|
|
3654
3659
|
*/
|
|
3655
3660
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
|
|
3656
3661
|
/**
|
|
3657
|
-
*
|
|
3662
|
+
* disallow using `test` as a prefix
|
|
3658
3663
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
3659
3664
|
*/
|
|
3660
3665
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
3661
3666
|
/**
|
|
3662
|
-
*
|
|
3667
|
+
* disallow return statements in tests
|
|
3663
3668
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
3664
3669
|
*/
|
|
3665
3670
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
3666
3671
|
/**
|
|
3667
|
-
*
|
|
3672
|
+
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
3668
3673
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
3669
3674
|
*/
|
|
3670
3675
|
'test/prefer-called-with'?: Linter.RuleEntry<[]>
|
|
3671
3676
|
/**
|
|
3672
|
-
*
|
|
3677
|
+
* enforce using the built-in comparison matchers
|
|
3673
3678
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
3674
3679
|
*/
|
|
3675
3680
|
'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
3676
3681
|
/**
|
|
3677
|
-
*
|
|
3682
|
+
* enforce using `each` rather than manual loops
|
|
3678
3683
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
3679
3684
|
*/
|
|
3680
3685
|
'test/prefer-each'?: Linter.RuleEntry<[]>
|
|
3681
3686
|
/**
|
|
3682
|
-
*
|
|
3687
|
+
* enforce using the built-in quality matchers
|
|
3683
3688
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
3684
3689
|
*/
|
|
3685
3690
|
'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>
|
|
3686
3691
|
/**
|
|
3687
|
-
*
|
|
3692
|
+
* enforce using expect assertions instead of callbacks
|
|
3688
3693
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
|
|
3689
3694
|
*/
|
|
3690
3695
|
'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>
|
|
3691
3696
|
/**
|
|
3692
|
-
*
|
|
3697
|
+
* enforce using `expect().resolves` over `expect(await ...)` syntax
|
|
3693
3698
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
3694
3699
|
*/
|
|
3695
3700
|
'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
3696
3701
|
/**
|
|
3697
|
-
*
|
|
3702
|
+
* enforce having hooks in consistent order
|
|
3698
3703
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
3699
3704
|
*/
|
|
3700
3705
|
'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
|
|
3701
3706
|
/**
|
|
3702
|
-
*
|
|
3707
|
+
* enforce having hooks before any test cases
|
|
3703
3708
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
3704
3709
|
*/
|
|
3705
3710
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
3706
3711
|
/**
|
|
3707
|
-
*
|
|
3712
|
+
* enforce lowercase titles
|
|
3708
3713
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
3709
3714
|
*/
|
|
3710
3715
|
'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>
|
|
3711
3716
|
/**
|
|
3712
|
-
*
|
|
3717
|
+
* enforce mock resolved/rejected shorthands for promises
|
|
3713
3718
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
3714
3719
|
*/
|
|
3715
3720
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
|
|
3716
3721
|
/**
|
|
3717
|
-
*
|
|
3722
|
+
* enforce including a hint with external snapshots
|
|
3718
3723
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
3719
3724
|
*/
|
|
3720
3725
|
'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>
|
|
3721
3726
|
/**
|
|
3722
|
-
*
|
|
3727
|
+
* enforce using `vi.spyOn`
|
|
3723
3728
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
|
|
3724
3729
|
*/
|
|
3725
3730
|
'test/prefer-spy-on'?: Linter.RuleEntry<[]>
|
|
3726
3731
|
/**
|
|
3727
|
-
*
|
|
3732
|
+
* enforce strict equal over equal
|
|
3728
3733
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
|
|
3729
3734
|
*/
|
|
3730
3735
|
'test/prefer-strict-equal'?: Linter.RuleEntry<[]>
|
|
3731
3736
|
/**
|
|
3732
|
-
*
|
|
3737
|
+
* enforce using toBe()
|
|
3733
3738
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
|
|
3734
3739
|
*/
|
|
3735
3740
|
'test/prefer-to-be'?: Linter.RuleEntry<[]>
|
|
3736
3741
|
/**
|
|
3737
|
-
*
|
|
3742
|
+
* enforce using toBeFalsy()
|
|
3738
3743
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
|
|
3739
3744
|
*/
|
|
3740
3745
|
'test/prefer-to-be-falsy'?: Linter.RuleEntry<[]>
|
|
3741
3746
|
/**
|
|
3742
|
-
*
|
|
3747
|
+
* enforce using toBeObject()
|
|
3743
3748
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
|
|
3744
3749
|
*/
|
|
3745
3750
|
'test/prefer-to-be-object'?: Linter.RuleEntry<[]>
|
|
3746
3751
|
/**
|
|
3747
|
-
*
|
|
3752
|
+
* enforce using `toBeTruthy`
|
|
3748
3753
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
|
|
3749
3754
|
*/
|
|
3750
3755
|
'test/prefer-to-be-truthy'?: Linter.RuleEntry<[]>
|
|
3751
3756
|
/**
|
|
3752
|
-
*
|
|
3757
|
+
* enforce using toContain()
|
|
3753
3758
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
3754
3759
|
*/
|
|
3755
3760
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>
|
|
3756
3761
|
/**
|
|
3757
|
-
*
|
|
3762
|
+
* enforce using toHaveLength()
|
|
3758
3763
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
3759
3764
|
*/
|
|
3760
3765
|
'test/prefer-to-have-length'?: Linter.RuleEntry<[]>
|
|
3761
3766
|
/**
|
|
3762
|
-
*
|
|
3767
|
+
* enforce using `test.todo`
|
|
3763
3768
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
3764
3769
|
*/
|
|
3765
3770
|
'test/prefer-todo'?: Linter.RuleEntry<[]>
|
|
3766
3771
|
/**
|
|
3767
|
-
*
|
|
3772
|
+
* require setup and teardown to be within a hook
|
|
3768
3773
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
3769
3774
|
*/
|
|
3770
3775
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>
|
|
3771
3776
|
/**
|
|
3772
|
-
*
|
|
3777
|
+
* require local Test Context for concurrent snapshot tests
|
|
3773
3778
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
3774
3779
|
*/
|
|
3775
3780
|
'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
|
|
3776
3781
|
/**
|
|
3777
|
-
*
|
|
3782
|
+
* require toThrow() to be called with an error message
|
|
3778
3783
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
3779
3784
|
*/
|
|
3780
3785
|
'test/require-to-throw-message'?: Linter.RuleEntry<[]>
|
|
3781
3786
|
/**
|
|
3782
|
-
*
|
|
3787
|
+
* enforce that all tests are in a top-level describe
|
|
3783
3788
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
3784
3789
|
*/
|
|
3785
3790
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>
|
|
3786
3791
|
/**
|
|
3787
|
-
*
|
|
3792
|
+
* enforce valid describe callback
|
|
3788
3793
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
3789
3794
|
*/
|
|
3790
3795
|
'test/valid-describe-callback'?: Linter.RuleEntry<[]>
|
|
3791
3796
|
/**
|
|
3792
|
-
*
|
|
3797
|
+
* enforce valid `expect()` usage
|
|
3793
3798
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
|
|
3794
3799
|
*/
|
|
3795
3800
|
'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
|
|
3796
3801
|
/**
|
|
3797
|
-
*
|
|
3802
|
+
* enforce valid titles
|
|
3798
3803
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
3799
3804
|
*/
|
|
3800
3805
|
'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
|
|
@@ -4543,637 +4548,652 @@ interface RuleOptions {
|
|
|
4543
4548
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4544
4549
|
/**
|
|
4545
4550
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/better-regex.md
|
|
4547
4552
|
*/
|
|
4548
4553
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4549
4554
|
/**
|
|
4550
4555
|
* Enforce a specific parameter name in catch clauses.
|
|
4551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/catch-error-name.md
|
|
4552
4557
|
*/
|
|
4553
4558
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4554
4559
|
/**
|
|
4555
4560
|
* Use destructured variables over properties.
|
|
4556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/consistent-destructuring.md
|
|
4557
4562
|
*/
|
|
4558
4563
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
4559
4564
|
/**
|
|
4560
4565
|
* Move function definitions to the highest possible scope.
|
|
4561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/consistent-function-scoping.md
|
|
4562
4567
|
*/
|
|
4563
4568
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4564
4569
|
/**
|
|
4565
4570
|
* Enforce correct `Error` subclassing.
|
|
4566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/custom-error-definition.md
|
|
4567
4572
|
*/
|
|
4568
4573
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4569
4574
|
/**
|
|
4570
4575
|
* Enforce no spaces between braces.
|
|
4571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/empty-brace-spaces.md
|
|
4572
4577
|
*/
|
|
4573
4578
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4574
4579
|
/**
|
|
4575
4580
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/error-message.md
|
|
4577
4582
|
*/
|
|
4578
4583
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4579
4584
|
/**
|
|
4580
4585
|
* Require escape sequences to use uppercase values.
|
|
4581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/escape-case.md
|
|
4582
4587
|
*/
|
|
4583
4588
|
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
4584
4589
|
/**
|
|
4585
4590
|
* Add expiration conditions to TODO comments.
|
|
4586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/expiring-todo-comments.md
|
|
4587
4592
|
*/
|
|
4588
4593
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4589
4594
|
/**
|
|
4590
4595
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/explicit-length-check.md
|
|
4592
4597
|
*/
|
|
4593
4598
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4594
4599
|
/**
|
|
4595
4600
|
* Enforce a case style for filenames.
|
|
4596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/filename-case.md
|
|
4597
4602
|
*/
|
|
4598
4603
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
4599
4604
|
/**
|
|
4600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#import-index
|
|
4601
4606
|
* @deprecated
|
|
4602
4607
|
*/
|
|
4603
4608
|
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
4604
4609
|
/**
|
|
4605
4610
|
* Enforce specific import styles per module.
|
|
4606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/import-style.md
|
|
4607
4612
|
*/
|
|
4608
4613
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
4609
4614
|
/**
|
|
4610
4615
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/new-for-builtins.md
|
|
4612
4617
|
*/
|
|
4613
4618
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
4614
4619
|
/**
|
|
4615
4620
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4617
4622
|
*/
|
|
4618
4623
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
4624
|
+
/**
|
|
4625
|
+
* Disallow anonymous functions and classes as the default export.
|
|
4626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-anonymous-default-export.md
|
|
4627
|
+
*/
|
|
4628
|
+
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
4619
4629
|
/**
|
|
4620
4630
|
* Prevent passing a function reference directly to iterator methods.
|
|
4621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-callback-reference.md
|
|
4622
4632
|
*/
|
|
4623
4633
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
4624
4634
|
/**
|
|
4625
4635
|
* Prefer `for…of` over the `forEach` method.
|
|
4626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-for-each.md
|
|
4627
4637
|
*/
|
|
4628
4638
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
4629
4639
|
/**
|
|
4630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
4631
4641
|
* @deprecated
|
|
4632
4642
|
*/
|
|
4633
4643
|
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
4634
4644
|
/**
|
|
4635
4645
|
* Disallow using the `this` argument in array methods.
|
|
4636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-method-this-argument.md
|
|
4637
4647
|
*/
|
|
4638
4648
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
4639
4649
|
/**
|
|
4640
4650
|
* Enforce combining multiple `Array#push()` into one call.
|
|
4641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-push-push.md
|
|
4642
4652
|
*/
|
|
4643
4653
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
4644
4654
|
/**
|
|
4645
4655
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-reduce.md
|
|
4647
4657
|
*/
|
|
4648
4658
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
4649
4659
|
/**
|
|
4650
4660
|
* Disallow member access from await expression.
|
|
4651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-await-expression-member.md
|
|
4652
4662
|
*/
|
|
4653
4663
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
4664
|
+
/**
|
|
4665
|
+
* Disallow using `await` in `Promise` method parameters.
|
|
4666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4667
|
+
*/
|
|
4668
|
+
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4654
4669
|
/**
|
|
4655
4670
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-console-spaces.md
|
|
4657
4672
|
*/
|
|
4658
4673
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
4659
4674
|
/**
|
|
4660
4675
|
* Do not use `document.cookie` directly.
|
|
4661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-document-cookie.md
|
|
4662
4677
|
*/
|
|
4663
4678
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
4664
4679
|
/**
|
|
4665
4680
|
* Disallow empty files.
|
|
4666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-empty-file.md
|
|
4667
4682
|
*/
|
|
4668
4683
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
4669
4684
|
/**
|
|
4670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
4671
4686
|
* @deprecated
|
|
4672
4687
|
*/
|
|
4673
4688
|
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
4674
4689
|
/**
|
|
4675
4690
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-for-loop.md
|
|
4677
4692
|
*/
|
|
4678
4693
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
4679
4694
|
/**
|
|
4680
4695
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-hex-escape.md
|
|
4682
4697
|
*/
|
|
4683
4698
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
4684
4699
|
/**
|
|
4685
4700
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
4686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-instanceof-array.md
|
|
4687
4702
|
*/
|
|
4688
4703
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
4689
4704
|
/**
|
|
4690
4705
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4692
4707
|
*/
|
|
4693
4708
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
4694
4709
|
/**
|
|
4695
4710
|
* Disallow identifiers starting with `new` or `class`.
|
|
4696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-keyword-prefix.md
|
|
4697
4712
|
*/
|
|
4698
4713
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
4699
4714
|
/**
|
|
4700
4715
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-lonely-if.md
|
|
4702
4717
|
*/
|
|
4703
4718
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
4704
4719
|
/**
|
|
4705
4720
|
* Disallow negated conditions.
|
|
4706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-negated-condition.md
|
|
4707
4722
|
*/
|
|
4708
4723
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
4709
4724
|
/**
|
|
4710
4725
|
* Disallow nested ternary expressions.
|
|
4711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-nested-ternary.md
|
|
4712
4727
|
*/
|
|
4713
4728
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
4714
4729
|
/**
|
|
4715
4730
|
* Disallow `new Array()`.
|
|
4716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-new-array.md
|
|
4717
4732
|
*/
|
|
4718
4733
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
4719
4734
|
/**
|
|
4720
4735
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-new-buffer.md
|
|
4722
4737
|
*/
|
|
4723
4738
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
4724
4739
|
/**
|
|
4725
4740
|
* Disallow the use of the `null` literal.
|
|
4726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-null.md
|
|
4727
4742
|
*/
|
|
4728
4743
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
4729
4744
|
/**
|
|
4730
4745
|
* Disallow the use of objects as default parameters.
|
|
4731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4732
4747
|
*/
|
|
4733
4748
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
4734
4749
|
/**
|
|
4735
4750
|
* Disallow `process.exit()`.
|
|
4736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-process-exit.md
|
|
4737
4752
|
*/
|
|
4738
4753
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
4739
4754
|
/**
|
|
4740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4755
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-reduce
|
|
4741
4756
|
* @deprecated
|
|
4742
4757
|
*/
|
|
4743
4758
|
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
4759
|
+
/**
|
|
4760
|
+
* Disallow passing single-element arrays to `Promise` methods.
|
|
4761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4762
|
+
*/
|
|
4763
|
+
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4744
4764
|
/**
|
|
4745
4765
|
* Disallow classes that only have static members.
|
|
4746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-static-only-class.md
|
|
4747
4767
|
*/
|
|
4748
4768
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
4749
4769
|
/**
|
|
4750
4770
|
* Disallow `then` property.
|
|
4751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-thenable.md
|
|
4752
4772
|
*/
|
|
4753
4773
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
4754
4774
|
/**
|
|
4755
4775
|
* Disallow assigning `this` to a variable.
|
|
4756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-this-assignment.md
|
|
4757
4777
|
*/
|
|
4758
4778
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
4759
4779
|
/**
|
|
4760
4780
|
* Disallow comparing `undefined` using `typeof`.
|
|
4761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-typeof-undefined.md
|
|
4762
4782
|
*/
|
|
4763
4783
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
4764
4784
|
/**
|
|
4765
4785
|
* Disallow awaiting non-promise values.
|
|
4766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unnecessary-await.md
|
|
4767
4787
|
*/
|
|
4768
4788
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
4769
4789
|
/**
|
|
4770
4790
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4772
4792
|
*/
|
|
4773
4793
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
4774
4794
|
/**
|
|
4775
4795
|
* Disallow unreadable array destructuring.
|
|
4776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4777
4797
|
*/
|
|
4778
4798
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
4779
4799
|
/**
|
|
4780
4800
|
* Disallow unreadable IIFEs.
|
|
4781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unreadable-iife.md
|
|
4782
4802
|
*/
|
|
4783
4803
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
4784
4804
|
/**
|
|
4785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4805
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
4786
4806
|
* @deprecated
|
|
4787
4807
|
*/
|
|
4788
4808
|
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
4789
4809
|
/**
|
|
4790
4810
|
* Disallow unused object properties.
|
|
4791
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unused-properties.md
|
|
4792
4812
|
*/
|
|
4793
4813
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
4794
4814
|
/**
|
|
4795
4815
|
* Disallow useless fallback when spreading in object literals.
|
|
4796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4797
4817
|
*/
|
|
4798
4818
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
4799
4819
|
/**
|
|
4800
4820
|
* Disallow useless array length check.
|
|
4801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-length-check.md
|
|
4802
4822
|
*/
|
|
4803
4823
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
4804
4824
|
/**
|
|
4805
4825
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4806
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4807
4827
|
*/
|
|
4808
4828
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
4809
4829
|
/**
|
|
4810
4830
|
* Disallow unnecessary spread.
|
|
4811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-spread.md
|
|
4812
4832
|
*/
|
|
4813
4833
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
4814
4834
|
/**
|
|
4815
4835
|
* Disallow useless case in switch statements.
|
|
4816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-switch-case.md
|
|
4817
4837
|
*/
|
|
4818
4838
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
4819
4839
|
/**
|
|
4820
4840
|
* Disallow useless `undefined`.
|
|
4821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-undefined.md
|
|
4822
4842
|
*/
|
|
4823
4843
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
4824
4844
|
/**
|
|
4825
4845
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-zero-fractions.md
|
|
4827
4847
|
*/
|
|
4828
4848
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
4829
4849
|
/**
|
|
4830
4850
|
* Enforce proper case for numeric literals.
|
|
4831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/number-literal-case.md
|
|
4832
4852
|
*/
|
|
4833
4853
|
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
4834
4854
|
/**
|
|
4835
4855
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/numeric-separators-style.md
|
|
4837
4857
|
*/
|
|
4838
4858
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
4839
4859
|
/**
|
|
4840
4860
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-add-event-listener.md
|
|
4842
4862
|
*/
|
|
4843
4863
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
4844
4864
|
/**
|
|
4845
4865
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-find.md
|
|
4847
4867
|
*/
|
|
4848
4868
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
4849
4869
|
/**
|
|
4850
4870
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-flat.md
|
|
4852
4872
|
*/
|
|
4853
4873
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
4854
4874
|
/**
|
|
4855
4875
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-flat-map.md
|
|
4857
4877
|
*/
|
|
4858
4878
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
4859
4879
|
/**
|
|
4860
4880
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-index-of.md
|
|
4862
4882
|
*/
|
|
4863
4883
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
4864
4884
|
/**
|
|
4865
4885
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
|
|
4866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-some.md
|
|
4867
4887
|
*/
|
|
4868
4888
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
4869
4889
|
/**
|
|
4870
4890
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-at.md
|
|
4872
4892
|
*/
|
|
4873
4893
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
4874
4894
|
/**
|
|
4875
4895
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4877
4897
|
*/
|
|
4878
4898
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
4879
4899
|
/**
|
|
4880
4900
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-code-point.md
|
|
4882
4902
|
*/
|
|
4883
4903
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
4884
4904
|
/**
|
|
4885
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4905
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
4886
4906
|
* @deprecated
|
|
4887
4907
|
*/
|
|
4888
4908
|
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
4889
4909
|
/**
|
|
4890
4910
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-date-now.md
|
|
4892
4912
|
*/
|
|
4893
4913
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
4894
4914
|
/**
|
|
4895
4915
|
* Prefer default parameters over reassignment.
|
|
4896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-default-parameters.md
|
|
4897
4917
|
*/
|
|
4898
4918
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
4899
4919
|
/**
|
|
4900
4920
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-append.md
|
|
4902
4922
|
*/
|
|
4903
4923
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
4904
4924
|
/**
|
|
4905
4925
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4907
4927
|
*/
|
|
4908
4928
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
4909
4929
|
/**
|
|
4910
4930
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4912
4932
|
*/
|
|
4913
4933
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
4914
4934
|
/**
|
|
4915
4935
|
* Prefer `.textContent` over `.innerText`.
|
|
4916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4917
4937
|
*/
|
|
4918
4938
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
4919
4939
|
/**
|
|
4920
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4940
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
4921
4941
|
* @deprecated
|
|
4922
4942
|
*/
|
|
4923
4943
|
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
4924
4944
|
/**
|
|
4925
4945
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-event-target.md
|
|
4927
4947
|
*/
|
|
4928
4948
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
4929
4949
|
/**
|
|
4930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
4931
4951
|
* @deprecated
|
|
4932
4952
|
*/
|
|
4933
4953
|
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
4934
4954
|
/**
|
|
4935
4955
|
* Prefer `export…from` when re-exporting.
|
|
4936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-export-from.md
|
|
4937
4957
|
*/
|
|
4938
4958
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
4939
4959
|
/**
|
|
4940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
4941
4961
|
* @deprecated
|
|
4942
4962
|
*/
|
|
4943
4963
|
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
4944
4964
|
/**
|
|
4945
4965
|
* Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
|
|
4946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-includes.md
|
|
4947
4967
|
*/
|
|
4948
4968
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
4949
4969
|
/**
|
|
4950
4970
|
* Prefer reading a JSON file as a buffer.
|
|
4951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4952
4972
|
*/
|
|
4953
4973
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
4954
4974
|
/**
|
|
4955
4975
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4957
4977
|
*/
|
|
4958
4978
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
4959
4979
|
/**
|
|
4960
4980
|
* Prefer using a logical operator over a ternary.
|
|
4961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4962
4982
|
*/
|
|
4963
4983
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
4964
4984
|
/**
|
|
4965
4985
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-math-trunc.md
|
|
4967
4987
|
*/
|
|
4968
4988
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
4969
4989
|
/**
|
|
4970
4990
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4972
4992
|
*/
|
|
4973
4993
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
4974
4994
|
/**
|
|
4975
4995
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
4976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4977
4997
|
*/
|
|
4978
4998
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
4979
4999
|
/**
|
|
4980
5000
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-module.md
|
|
4982
5002
|
*/
|
|
4983
5003
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
4984
5004
|
/**
|
|
4985
5005
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
4987
5007
|
*/
|
|
4988
5008
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
4989
5009
|
/**
|
|
4990
5010
|
* Prefer negative index over `.length - index` when possible.
|
|
4991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-negative-index.md
|
|
4992
5012
|
*/
|
|
4993
5013
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
4994
5014
|
/**
|
|
4995
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
4996
5016
|
* @deprecated
|
|
4997
5017
|
*/
|
|
4998
5018
|
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
4999
5019
|
/**
|
|
5000
5020
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-node-protocol.md
|
|
5002
5022
|
*/
|
|
5003
5023
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
5004
5024
|
/**
|
|
5005
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
5006
5026
|
* @deprecated
|
|
5007
5027
|
*/
|
|
5008
5028
|
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
5009
5029
|
/**
|
|
5010
5030
|
* Prefer `Number` static properties over global ones.
|
|
5011
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-number-properties.md
|
|
5012
5032
|
*/
|
|
5013
5033
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
5014
5034
|
/**
|
|
5015
5035
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-object-from-entries.md
|
|
5017
5037
|
*/
|
|
5018
5038
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
5019
5039
|
/**
|
|
5020
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
5021
5041
|
* @deprecated
|
|
5022
5042
|
*/
|
|
5023
5043
|
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
5024
5044
|
/**
|
|
5025
5045
|
* Prefer omitting the `catch` binding parameter.
|
|
5026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5027
5047
|
*/
|
|
5028
5048
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
5029
5049
|
/**
|
|
5030
5050
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-prototype-methods.md
|
|
5032
5052
|
*/
|
|
5033
5053
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
5034
5054
|
/**
|
|
5035
5055
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
5036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-query-selector.md
|
|
5037
5057
|
*/
|
|
5038
5058
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
5039
5059
|
/**
|
|
5040
5060
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5041
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-reflect-apply.md
|
|
5042
5062
|
*/
|
|
5043
5063
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
5044
5064
|
/**
|
|
5045
5065
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-regexp-test.md
|
|
5047
5067
|
*/
|
|
5048
5068
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
5049
5069
|
/**
|
|
5050
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
5051
5071
|
* @deprecated
|
|
5052
5072
|
*/
|
|
5053
5073
|
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
5054
5074
|
/**
|
|
5055
5075
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-set-has.md
|
|
5057
5077
|
*/
|
|
5058
5078
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
5059
5079
|
/**
|
|
5060
5080
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-set-size.md
|
|
5062
5082
|
*/
|
|
5063
5083
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
5064
5084
|
/**
|
|
5065
5085
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5066
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-spread.md
|
|
5067
5087
|
*/
|
|
5068
5088
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
5069
5089
|
/**
|
|
5070
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
5071
5091
|
* @deprecated
|
|
5072
5092
|
*/
|
|
5073
5093
|
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5074
5094
|
/**
|
|
5075
5095
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-replace-all.md
|
|
5077
5097
|
*/
|
|
5078
5098
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
5079
5099
|
/**
|
|
5080
5100
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-slice.md
|
|
5082
5102
|
*/
|
|
5083
5103
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
5084
5104
|
/**
|
|
5085
5105
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5087
5107
|
*/
|
|
5088
5108
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
5089
5109
|
/**
|
|
5090
5110
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5092
5112
|
*/
|
|
5093
5113
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5094
5114
|
/**
|
|
5095
5115
|
* Prefer `switch` over multiple `else-if`.
|
|
5096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-switch.md
|
|
5097
5117
|
*/
|
|
5098
5118
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
5099
5119
|
/**
|
|
5100
5120
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-ternary.md
|
|
5102
5122
|
*/
|
|
5103
5123
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
5104
5124
|
/**
|
|
5105
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
5106
5126
|
* @deprecated
|
|
5107
5127
|
*/
|
|
5108
5128
|
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
5109
5129
|
/**
|
|
5110
5130
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-top-level-await.md
|
|
5112
5132
|
*/
|
|
5113
5133
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
5114
5134
|
/**
|
|
5115
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
5116
5136
|
* @deprecated
|
|
5117
5137
|
*/
|
|
5118
5138
|
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
5119
5139
|
/**
|
|
5120
5140
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-type-error.md
|
|
5122
5142
|
*/
|
|
5123
5143
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
5124
5144
|
/**
|
|
5125
5145
|
* Prevent abbreviations.
|
|
5126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prevent-abbreviations.md
|
|
5127
5147
|
*/
|
|
5128
5148
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
5129
5149
|
/**
|
|
5130
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
5131
5151
|
* @deprecated
|
|
5132
5152
|
*/
|
|
5133
5153
|
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
5134
5154
|
/**
|
|
5135
5155
|
* Enforce consistent relative URL style.
|
|
5136
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/relative-url-style.md
|
|
5137
5157
|
*/
|
|
5138
5158
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
5139
5159
|
/**
|
|
5140
5160
|
* Enforce using the separator argument with `Array#join()`.
|
|
5141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-array-join-separator.md
|
|
5142
5162
|
*/
|
|
5143
5163
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5144
5164
|
/**
|
|
5145
5165
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5147
5167
|
*/
|
|
5148
5168
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
5149
5169
|
/**
|
|
5150
5170
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5151
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-post-message-target-origin.md
|
|
5152
5172
|
*/
|
|
5153
5173
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
5154
5174
|
/**
|
|
5155
5175
|
* Enforce better string content.
|
|
5156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/string-content.md
|
|
5157
5177
|
*/
|
|
5158
5178
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
5159
5179
|
/**
|
|
5160
5180
|
* Enforce consistent brace style for `case` clauses.
|
|
5161
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/switch-case-braces.md
|
|
5162
5182
|
*/
|
|
5163
5183
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
5164
5184
|
/**
|
|
5165
5185
|
* Fix whitespace-insensitive template indentation.
|
|
5166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/template-indent.md
|
|
5167
5187
|
*/
|
|
5168
5188
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
5169
5189
|
/**
|
|
5170
5190
|
* Enforce consistent case for text encoding identifiers.
|
|
5171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5172
5192
|
*/
|
|
5173
5193
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
5174
5194
|
/**
|
|
5175
5195
|
* Require `new` when throwing an error.
|
|
5176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/throw-new-error.md
|
|
5177
5197
|
*/
|
|
5178
5198
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
5179
5199
|
/**
|
|
@@ -5221,12 +5241,6 @@ interface RuleOptions {
|
|
|
5221
5241
|
* @see https://eslint.org/docs/latest/rules/use-isnan
|
|
5222
5242
|
*/
|
|
5223
5243
|
'use-isnan'?: Linter.RuleEntry<UseIsnan>
|
|
5224
|
-
/**
|
|
5225
|
-
* Enforce valid JSDoc comments
|
|
5226
|
-
* @see https://eslint.org/docs/latest/rules/valid-jsdoc
|
|
5227
|
-
* @deprecated
|
|
5228
|
-
*/
|
|
5229
|
-
'valid-jsdoc'?: Linter.RuleEntry<ValidJsdoc>
|
|
5230
5244
|
/**
|
|
5231
5245
|
* Enforce comparing `typeof` expressions against valid strings
|
|
5232
5246
|
* @see https://eslint.org/docs/latest/rules/valid-typeof
|
|
@@ -6789,7 +6803,7 @@ type Camelcase = []|[{
|
|
|
6789
6803
|
ignoreGlobals?: boolean
|
|
6790
6804
|
properties?: ("always" | "never")
|
|
6791
6805
|
|
|
6792
|
-
allow?: []
|
|
6806
|
+
allow?: string[]
|
|
6793
6807
|
}]
|
|
6794
6808
|
// ----- capitalized-comments -----
|
|
6795
6809
|
type CapitalizedComments = []|[("always" | "never")]|[("always" | "never"), ({
|
|
@@ -6997,10 +7011,6 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
|
|
|
6997
7011
|
}])
|
|
6998
7012
|
// ----- import/first -----
|
|
6999
7013
|
type ImportFirst = []|[("absolute-first" | "disable-absolute-first")]
|
|
7000
|
-
// ----- import/group-exports -----
|
|
7001
|
-
interface ImportGroupExports {
|
|
7002
|
-
[k: string]: unknown | undefined
|
|
7003
|
-
}
|
|
7004
7014
|
// ----- import/imports-first -----
|
|
7005
7015
|
type ImportImportsFirst = []|[("absolute-first" | "disable-absolute-first")]
|
|
7006
7016
|
// ----- import/max-dependencies -----
|
|
@@ -7127,13 +7137,13 @@ type ImportNoRelativeParentImports = []|[{
|
|
|
7127
7137
|
type ImportNoRestrictedPaths = []|[{
|
|
7128
7138
|
|
|
7129
7139
|
zones?: [{
|
|
7130
|
-
target?: (string | string[])
|
|
7131
|
-
from?: (string | string[])
|
|
7140
|
+
target?: (string | [string, ...(string)[]])
|
|
7141
|
+
from?: (string | [string, ...(string)[]])
|
|
7132
7142
|
except?: string[]
|
|
7133
7143
|
message?: string
|
|
7134
7144
|
}, ...({
|
|
7135
|
-
target?: (string | string[])
|
|
7136
|
-
from?: (string | string[])
|
|
7145
|
+
target?: (string | [string, ...(string)[]])
|
|
7146
|
+
from?: (string | [string, ...(string)[]])
|
|
7137
7147
|
except?: string[]
|
|
7138
7148
|
message?: string
|
|
7139
7149
|
})[]]
|
|
@@ -7159,9 +7169,8 @@ type ImportNoUnresolved = []|[{
|
|
|
7159
7169
|
// ----- import/no-unused-modules -----
|
|
7160
7170
|
type ImportNoUnusedModules = []|[({
|
|
7161
7171
|
unusedExports: true
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
}
|
|
7172
|
+
|
|
7173
|
+
src?: [unknown, ...(unknown)[]]
|
|
7165
7174
|
[k: string]: unknown | undefined
|
|
7166
7175
|
} | {
|
|
7167
7176
|
missingExports: true
|
|
@@ -8500,10 +8509,6 @@ type NoConsole = []|[{
|
|
|
8500
8509
|
type NoConstantCondition = []|[{
|
|
8501
8510
|
checkLoops?: boolean
|
|
8502
8511
|
}]
|
|
8503
|
-
// ----- no-constructor-return -----
|
|
8504
|
-
interface NoConstructorReturn {
|
|
8505
|
-
[k: string]: unknown | undefined
|
|
8506
|
-
}
|
|
8507
8512
|
// ----- no-duplicate-imports -----
|
|
8508
8513
|
type NoDuplicateImports = []|[{
|
|
8509
8514
|
includeExports?: boolean
|
|
@@ -8553,6 +8558,7 @@ type NoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
8553
8558
|
type NoFallthrough = []|[{
|
|
8554
8559
|
commentPattern?: string
|
|
8555
8560
|
allowEmptyCase?: boolean
|
|
8561
|
+
reportUnusedFallthroughComment?: boolean
|
|
8556
8562
|
}]
|
|
8557
8563
|
// ----- no-global-assign -----
|
|
8558
8564
|
type NoGlobalAssign = []|[{
|
|
@@ -8564,7 +8570,7 @@ type NoImplicitCoercion = []|[{
|
|
|
8564
8570
|
number?: boolean
|
|
8565
8571
|
string?: boolean
|
|
8566
8572
|
disallowTemplateShorthand?: boolean
|
|
8567
|
-
allow?: ("~" | "!!" | "+" | "*")[]
|
|
8573
|
+
allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[]
|
|
8568
8574
|
}]
|
|
8569
8575
|
// ----- no-implicit-globals -----
|
|
8570
8576
|
type NoImplicitGlobals = []|[{
|
|
@@ -8575,7 +8581,9 @@ type NoInlineComments = []|[{
|
|
|
8575
8581
|
ignorePattern?: string
|
|
8576
8582
|
}]
|
|
8577
8583
|
// ----- no-inner-declarations -----
|
|
8578
|
-
type NoInnerDeclarations = []|[("functions" | "both")]
|
|
8584
|
+
type NoInnerDeclarations = []|[("functions" | "both")]|[("functions" | "both"), {
|
|
8585
|
+
blockScopedFunctions?: ("allow" | "disallow")
|
|
8586
|
+
}]
|
|
8579
8587
|
// ----- no-invalid-regexp -----
|
|
8580
8588
|
type NoInvalidRegexp = []|[{
|
|
8581
8589
|
allowConstructorFlags?: string[]
|
|
@@ -8682,18 +8690,23 @@ type NoRestrictedImports = ((string | {
|
|
|
8682
8690
|
name: string
|
|
8683
8691
|
message?: string
|
|
8684
8692
|
importNames?: string[]
|
|
8693
|
+
allowImportNames?: string[]
|
|
8685
8694
|
})[] | []|[{
|
|
8686
8695
|
paths?: (string | {
|
|
8687
8696
|
name: string
|
|
8688
8697
|
message?: string
|
|
8689
8698
|
importNames?: string[]
|
|
8699
|
+
allowImportNames?: string[]
|
|
8690
8700
|
})[]
|
|
8691
8701
|
patterns?: (string[] | {
|
|
8692
8702
|
|
|
8693
8703
|
importNames?: [string, ...(string)[]]
|
|
8694
8704
|
|
|
8705
|
+
allowImportNames?: [string, ...(string)[]]
|
|
8706
|
+
|
|
8695
8707
|
group: [string, ...(string)[]]
|
|
8696
8708
|
importNamePattern?: string
|
|
8709
|
+
allowImportNamePattern?: string
|
|
8697
8710
|
message?: string
|
|
8698
8711
|
caseSensitive?: boolean
|
|
8699
8712
|
}[])
|
|
@@ -8803,6 +8816,8 @@ type NoUnusedVars = []|[(("all" | "local") | {
|
|
|
8803
8816
|
caughtErrors?: ("all" | "none")
|
|
8804
8817
|
caughtErrorsIgnorePattern?: string
|
|
8805
8818
|
destructuredArrayIgnorePattern?: string
|
|
8819
|
+
ignoreClassWithStaticInitBlock?: boolean
|
|
8820
|
+
reportUsedIgnorePattern?: boolean
|
|
8806
8821
|
})]
|
|
8807
8822
|
// ----- no-use-before-define -----
|
|
8808
8823
|
type NoUseBeforeDefine = []|[("nofunc" | {
|
|
@@ -8844,6 +8859,27 @@ type NodeFileExtensionInImport = []|[("always" | "never")]|[("always" | "never")
|
|
|
8844
8859
|
}]
|
|
8845
8860
|
// ----- node/handle-callback-err -----
|
|
8846
8861
|
type NodeHandleCallbackErr = []|[string]
|
|
8862
|
+
// ----- node/hashbang -----
|
|
8863
|
+
type NodeHashbang = []|[{
|
|
8864
|
+
convertPath?: ({
|
|
8865
|
+
|
|
8866
|
+
[k: string]: [string, string]
|
|
8867
|
+
} | [{
|
|
8868
|
+
|
|
8869
|
+
include: [string, ...(string)[]]
|
|
8870
|
+
exclude?: string[]
|
|
8871
|
+
|
|
8872
|
+
replace: [string, string]
|
|
8873
|
+
}, ...({
|
|
8874
|
+
|
|
8875
|
+
include: [string, ...(string)[]]
|
|
8876
|
+
exclude?: string[]
|
|
8877
|
+
|
|
8878
|
+
replace: [string, string]
|
|
8879
|
+
})[]])
|
|
8880
|
+
ignoreUnpublished?: boolean
|
|
8881
|
+
additionalExecutables?: string[]
|
|
8882
|
+
}]
|
|
8847
8883
|
// ----- node/no-deprecated-api -----
|
|
8848
8884
|
type NodeNoDeprecatedApi = []|[{
|
|
8849
8885
|
version?: string
|
|
@@ -8904,8 +8940,9 @@ type NodeNoHideCoreModules = []|[{
|
|
|
8904
8940
|
type NodeNoMissingImport = []|[{
|
|
8905
8941
|
allowModules?: string[]
|
|
8906
8942
|
resolvePaths?: string[]
|
|
8907
|
-
|
|
8943
|
+
tryExtensions?: string[]
|
|
8908
8944
|
tsconfigPath?: string
|
|
8945
|
+
typescriptExtensionMap?: (unknown[][] | ("react" | "react-jsx" | "react-jsxdev" | "react-native" | "preserve"))
|
|
8909
8946
|
}]
|
|
8910
8947
|
// ----- node/no-missing-require -----
|
|
8911
8948
|
type NodeNoMissingRequire = []|[{
|
|
@@ -8998,25 +9035,20 @@ type NodeNoUnpublishedRequire = []|[{
|
|
|
8998
9035
|
resolvePaths?: string[]
|
|
8999
9036
|
tryExtensions?: string[]
|
|
9000
9037
|
}]
|
|
9001
|
-
// ----- node/no-unsupported-features -----
|
|
9002
|
-
type NodeNoUnsupportedFeatures = []|[((0.1 | 0.12 | 4 | 5 | 6 | 6.5 | 7 | 7.6 | 8 | 8.3 | 9 | 10) | string | {
|
|
9003
|
-
version?: ((0.1 | 0.12 | 4 | 5 | 6 | 6.5 | 7 | 7.6 | 8 | 8.3 | 9 | 10) | string)
|
|
9004
|
-
ignores?: ("syntax" | "defaultParameters" | "restParameters" | "spreadOperators" | "objectLiteralExtensions" | "objectPropertyShorthandOfGetSet" | "forOf" | "binaryNumberLiterals" | "octalNumberLiterals" | "templateStrings" | "regexpY" | "regexpU" | "destructuring" | "unicodeCodePointEscapes" | "new.target" | "const" | "let" | "blockScopedFunctions" | "arrowFunctions" | "generatorFunctions" | "classes" | "modules" | "exponentialOperators" | "asyncAwait" | "trailingCommasInFunctions" | "templateLiteralRevision" | "regexpS" | "regexpNamedCaptureGroups" | "regexpLookbehind" | "regexpUnicodeProperties" | "restProperties" | "spreadProperties" | "asyncGenerators" | "forAwaitOf" | "runtime" | "globalObjects" | "typedArrays" | "Int8Array" | "Uint8Array" | "Uint8ClampedArray" | "Int16Array" | "Uint16Array" | "Int32Array" | "Uint32Array" | "Float32Array" | "Float64Array" | "DataView" | "Map" | "Set" | "WeakMap" | "WeakSet" | "Proxy" | "Reflect" | "Promise" | "Symbol" | "SharedArrayBuffer" | "Atomics" | "staticMethods" | "Object.*" | "Object.assign" | "Object.is" | "Object.getOwnPropertySymbols" | "Object.setPrototypeOf" | "Object.values" | "Object.entries" | "Object.getOwnPropertyDescriptors" | "String.*" | "String.raw" | "String.fromCodePoint" | "Array.*" | "Array.from" | "Array.of" | "Number.*" | "Number.isFinite" | "Number.isInteger" | "Number.isSafeInteger" | "Number.isNaN" | "Number.EPSILON" | "Number.MIN_SAFE_INTEGER" | "Number.MAX_SAFE_INTEGER" | "Math.*" | "Math.clz32" | "Math.imul" | "Math.sign" | "Math.log10" | "Math.log2" | "Math.log1p" | "Math.expm1" | "Math.cosh" | "Math.sinh" | "Math.tanh" | "Math.acosh" | "Math.asinh" | "Math.atanh" | "Math.trunc" | "Math.fround" | "Math.cbrt" | "Math.hypot" | "Symbol.*" | "Symbol.hasInstance" | "Symbol.isConcatSpreadablec" | "Symbol.iterator" | "Symbol.species" | "Symbol.replace" | "Symbol.search" | "Symbol.split" | "Symbol.match" | "Symbol.toPrimitive" | "Symbol.toStringTag" | "Symbol.unscopables" | "Atomics.*" | "Atomics.add" | "Atomics.and" | "Atomics.compareExchange" | "Atomics.exchange" | "Atomics.wait" | "Atomics.wake" | "Atomics.isLockFree" | "Atomics.load" | "Atomics.or" | "Atomics.store" | "Atomics.sub" | "Atomics.xor" | "extends" | "extendsArray" | "extendsRegExp" | "extendsFunction" | "extendsPromise" | "extendsBoolean" | "extendsNumber" | "extendsString" | "extendsMap" | "extendsSet" | "extendsNull")[]
|
|
9005
|
-
})]
|
|
9006
9038
|
// ----- node/no-unsupported-features/es-builtins -----
|
|
9007
9039
|
type NodeNoUnsupportedFeaturesEsBuiltins = []|[{
|
|
9008
9040
|
version?: string
|
|
9009
|
-
ignores?: ("AggregateError" | "Array.from" | "Array.of" | "BigInt" | "FinalizationRegistry" | "Map" | "Math.acosh" | "Math.asinh" | "Math.atanh" | "Math.cbrt" | "Math.clz32" | "Math.cosh" | "Math.expm1" | "Math.fround" | "Math.hypot" | "Math.imul" | "Math.log10" | "Math.log1p" | "Math.log2" | "Math.sign" | "Math.sinh" | "Math.tanh" | "Math.trunc" | "Number.EPSILON" | "Number.
|
|
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" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.any" | "AbortSignal.timeout" | "Blob" | "BroadcastChannel" | "ByteLengthQueuingStrategy" | "CompressionStream" | "CountQueuingStrategy" | "Crypto" | "CryptoKey" | "CustomEvent" | "DOMException" | "DecompressionStream" | "Event" | "EventTarget" | "FormData" | "Headers" | "MessageChannel" | "MessageEvent" | "MessagePort" | "Performance" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserver.supportedEntryTypes" | "PerformanceObserverEntryList" | "ReadableByteStreamController" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamBYOBReader" | "ReadableStreamBYOBRequest" | "ReadableStreamDefaultController" | "ReadableStreamDefaultReader" | "Request" | "Response" | "SubtleCrypto" | "TextDecoder" | "TextDecoderStream" | "TextEncoder" | "TextEncoderStream" | "TransformStream" | "TransformStreamDefaultController" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "Worker" | "WritableStream" | "WritableStreamDefaultController" | "WritableStreamDefaultWriter" | "atob" | "btoa" | "clearInterval" | "clearTimeout" | "console" | "console.assert" | "console.clear" | "console.countReset" | "console.count" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.groupCollapsed" | "console.groupEnd" | "console.group" | "console.info" | "console.log" | "console.table" | "console.timeEnd" | "console.timeLog" | "console.time" | "console.trace" | "console.warn" | "fetch" | "queueMicrotask" | "setInterval" | "setTimeout" | "structuredClone")[]
|
|
9010
9042
|
}]
|
|
9011
9043
|
// ----- node/no-unsupported-features/es-syntax -----
|
|
9012
9044
|
type NodeNoUnsupportedFeaturesEsSyntax = []|[{
|
|
9013
9045
|
version?: string
|
|
9014
|
-
ignores?: ("arrowFunctions" | "binaryNumericLiterals" | "blockScopedFunctions" | "blockScopedVariables" | "classes" | "computedProperties" | "defaultParameters" | "destructuring" | "forOfLoops" | "generators" | "modules" | "new.target" | "objectSuperProperties" | "octalNumericLiterals" | "propertyShorthands" | "regexpU" | "regexpY" | "restParameters" | "spreadElements" | "templateLiterals" | "unicodeCodePointEscapes" | "exponentialOperators" | "asyncFunctions" | "trailingCommasInFunctions" | "asyncIteration" | "malformedTemplateLiterals" | "regexpLookbehind" | "regexpNamedCaptureGroups" | "regexpS" | "regexpUnicodeProperties" | "restSpreadProperties" | "jsonSuperset" | "optionalCatchBinding" | "bigint" | "dynamicImport" | "optionalChaining" | "nullishCoalescingOperators" | "logicalAssignmentOperators" | "numericSeparators")[]
|
|
9046
|
+
ignores?: ("no-accessor-properties" | "accessor-properties" | "accessorProperties" | "no-arbitrary-module-namespace-names" | "arbitrary-module-namespace-names" | "arbitraryModuleNamespaceNames" | "no-array-from" | "array-from" | "arrayFrom" | "no-array-isarray" | "array-isarray" | "arrayIsarray" | "no-array-of" | "array-of" | "arrayOf" | "no-array-prototype-copywithin" | "array-prototype-copywithin" | "arrayPrototypeCopywithin" | "no-array-prototype-entries" | "array-prototype-entries" | "arrayPrototypeEntries" | "no-array-prototype-every" | "array-prototype-every" | "arrayPrototypeEvery" | "no-array-prototype-fill" | "array-prototype-fill" | "arrayPrototypeFill" | "no-array-prototype-filter" | "array-prototype-filter" | "arrayPrototypeFilter" | "no-array-prototype-find" | "array-prototype-find" | "arrayPrototypeFind" | "no-array-prototype-findindex" | "array-prototype-findindex" | "arrayPrototypeFindindex" | "no-array-prototype-findlast-findlastindex" | "array-prototype-findlast-findlastindex" | "arrayPrototypeFindlastFindlastindex" | "no-array-prototype-flat" | "array-prototype-flat" | "arrayPrototypeFlat" | "no-array-prototype-foreach" | "array-prototype-foreach" | "arrayPrototypeForeach" | "no-array-prototype-includes" | "array-prototype-includes" | "arrayPrototypeIncludes" | "no-array-prototype-indexof" | "array-prototype-indexof" | "arrayPrototypeIndexof" | "no-array-prototype-keys" | "array-prototype-keys" | "arrayPrototypeKeys" | "no-array-prototype-lastindexof" | "array-prototype-lastindexof" | "arrayPrototypeLastindexof" | "no-array-prototype-map" | "array-prototype-map" | "arrayPrototypeMap" | "no-array-prototype-reduce" | "array-prototype-reduce" | "arrayPrototypeReduce" | "no-array-prototype-reduceright" | "array-prototype-reduceright" | "arrayPrototypeReduceright" | "no-array-prototype-some" | "array-prototype-some" | "arrayPrototypeSome" | "no-array-prototype-toreversed" | "array-prototype-toreversed" | "arrayPrototypeToreversed" | "no-array-prototype-tosorted" | "array-prototype-tosorted" | "arrayPrototypeTosorted" | "no-array-prototype-tospliced" | "array-prototype-tospliced" | "arrayPrototypeTospliced" | "no-array-prototype-values" | "array-prototype-values" | "arrayPrototypeValues" | "no-array-prototype-with" | "array-prototype-with" | "arrayPrototypeWith" | "no-array-string-prototype-at" | "array-string-prototype-at" | "arrayStringPrototypeAt" | "no-arrow-functions" | "arrow-functions" | "arrowFunctions" | "no-async-functions" | "async-functions" | "asyncFunctions" | "no-async-iteration" | "async-iteration" | "asyncIteration" | "no-atomics-waitasync" | "atomics-waitasync" | "atomicsWaitasync" | "no-atomics" | "atomics" | "no-bigint" | "bigint" | "no-binary-numeric-literals" | "binary-numeric-literals" | "binaryNumericLiterals" | "no-block-scoped-functions" | "block-scoped-functions" | "blockScopedFunctions" | "no-block-scoped-variables" | "block-scoped-variables" | "blockScopedVariables" | "no-class-fields" | "class-fields" | "classFields" | "no-class-static-block" | "class-static-block" | "classStaticBlock" | "no-classes" | "classes" | "no-computed-properties" | "computed-properties" | "computedProperties" | "no-date-now" | "date-now" | "dateNow" | "no-date-prototype-getyear-setyear" | "date-prototype-getyear-setyear" | "datePrototypeGetyearSetyear" | "no-date-prototype-togmtstring" | "date-prototype-togmtstring" | "datePrototypeTogmtstring" | "no-default-parameters" | "default-parameters" | "defaultParameters" | "no-destructuring" | "destructuring" | "no-dynamic-import" | "dynamic-import" | "dynamicImport" | "no-error-cause" | "error-cause" | "errorCause" | "no-escape-unescape" | "escape-unescape" | "escapeUnescape" | "no-exponential-operators" | "exponential-operators" | "exponentialOperators" | "no-export-ns-from" | "export-ns-from" | "exportNsFrom" | "no-for-of-loops" | "for-of-loops" | "forOfLoops" | "no-function-declarations-in-if-statement-clauses-without-block" | "function-declarations-in-if-statement-clauses-without-block" | "functionDeclarationsInIfStatementClausesWithoutBlock" | "no-function-prototype-bind" | "function-prototype-bind" | "functionPrototypeBind" | "no-generators" | "generators" | "no-global-this" | "global-this" | "globalThis" | "no-hashbang" | "hashbang" | "no-import-meta" | "import-meta" | "importMeta" | "no-initializers-in-for-in" | "initializers-in-for-in" | "initializersInForIn" | "no-intl-datetimeformat-prototype-formatrange" | "intl-datetimeformat-prototype-formatrange" | "intlDatetimeformatPrototypeFormatrange" | "no-intl-datetimeformat-prototype-formattoparts" | "intl-datetimeformat-prototype-formattoparts" | "intlDatetimeformatPrototypeFormattoparts" | "no-intl-displaynames" | "intl-displaynames" | "intlDisplaynames" | "no-intl-getcanonicallocales" | "intl-getcanonicallocales" | "intlGetcanonicallocales" | "no-intl-listformat" | "intl-listformat" | "intlListformat" | "no-intl-locale" | "intl-locale" | "intlLocale" | "no-intl-numberformat-prototype-formatrange" | "intl-numberformat-prototype-formatrange" | "intlNumberformatPrototypeFormatrange" | "no-intl-numberformat-prototype-formatrangetoparts" | "intl-numberformat-prototype-formatrangetoparts" | "intlNumberformatPrototypeFormatrangetoparts" | "no-intl-numberformat-prototype-formattoparts" | "intl-numberformat-prototype-formattoparts" | "intlNumberformatPrototypeFormattoparts" | "no-intl-pluralrules-prototype-selectrange" | "intl-pluralrules-prototype-selectrange" | "intlPluralrulesPrototypeSelectrange" | "no-intl-pluralrules" | "intl-pluralrules" | "intlPluralrules" | "no-intl-relativetimeformat" | "intl-relativetimeformat" | "intlRelativetimeformat" | "no-intl-segmenter" | "intl-segmenter" | "intlSegmenter" | "no-intl-supportedvaluesof" | "intl-supportedvaluesof" | "intlSupportedvaluesof" | "no-json-superset" | "json-superset" | "jsonSuperset" | "no-json" | "json" | "no-keyword-properties" | "keyword-properties" | "keywordProperties" | "no-labelled-function-declarations" | "labelled-function-declarations" | "labelledFunctionDeclarations" | "no-legacy-object-prototype-accessor-methods" | "legacy-object-prototype-accessor-methods" | "legacyObjectPrototypeAccessorMethods" | "no-logical-assignment-operators" | "logical-assignment-operators" | "logicalAssignmentOperators" | "no-malformed-template-literals" | "malformed-template-literals" | "malformedTemplateLiterals" | "no-map" | "map" | "no-math-acosh" | "math-acosh" | "mathAcosh" | "no-math-asinh" | "math-asinh" | "mathAsinh" | "no-math-atanh" | "math-atanh" | "mathAtanh" | "no-math-cbrt" | "math-cbrt" | "mathCbrt" | "no-math-clz32" | "math-clz32" | "mathClz32" | "no-math-cosh" | "math-cosh" | "mathCosh" | "no-math-expm1" | "math-expm1" | "mathExpm1" | "no-math-fround" | "math-fround" | "mathFround" | "no-math-hypot" | "math-hypot" | "mathHypot" | "no-math-imul" | "math-imul" | "mathImul" | "no-math-log10" | "math-log10" | "mathLog10" | "no-math-log1p" | "math-log1p" | "mathLog1p" | "no-math-log2" | "math-log2" | "mathLog2" | "no-math-sign" | "math-sign" | "mathSign" | "no-math-sinh" | "math-sinh" | "mathSinh" | "no-math-tanh" | "math-tanh" | "mathTanh" | "no-math-trunc" | "math-trunc" | "mathTrunc" | "no-modules" | "modules" | "no-new-target" | "new-target" | "newTarget" | "new.target" | "no-nullish-coalescing-operators" | "nullish-coalescing-operators" | "nullishCoalescingOperators" | "no-number-epsilon" | "number-epsilon" | "numberEpsilon" | "no-number-isfinite" | "number-isfinite" | "numberIsfinite" | "no-number-isinteger" | "number-isinteger" | "numberIsinteger" | "no-number-isnan" | "number-isnan" | "numberIsnan" | "no-number-issafeinteger" | "number-issafeinteger" | "numberIssafeinteger" | "no-number-maxsafeinteger" | "number-maxsafeinteger" | "numberMaxsafeinteger" | "no-number-minsafeinteger" | "number-minsafeinteger" | "numberMinsafeinteger" | "no-number-parsefloat" | "number-parsefloat" | "numberParsefloat" | "no-number-parseint" | "number-parseint" | "numberParseint" | "no-numeric-separators" | "numeric-separators" | "numericSeparators" | "no-object-assign" | "object-assign" | "objectAssign" | "no-object-create" | "object-create" | "objectCreate" | "no-object-defineproperties" | "object-defineproperties" | "objectDefineproperties" | "no-object-defineproperty" | "object-defineproperty" | "objectDefineproperty" | "no-object-entries" | "object-entries" | "objectEntries" | "no-object-freeze" | "object-freeze" | "objectFreeze" | "no-object-fromentries" | "object-fromentries" | "objectFromentries" | "no-object-getownpropertydescriptor" | "object-getownpropertydescriptor" | "objectGetownpropertydescriptor" | "no-object-getownpropertydescriptors" | "object-getownpropertydescriptors" | "objectGetownpropertydescriptors" | "no-object-getownpropertynames" | "object-getownpropertynames" | "objectGetownpropertynames" | "no-object-getownpropertysymbols" | "object-getownpropertysymbols" | "objectGetownpropertysymbols" | "no-object-getprototypeof" | "object-getprototypeof" | "objectGetprototypeof" | "no-object-hasown" | "object-hasown" | "objectHasown" | "no-object-is" | "object-is" | "objectIs" | "no-object-isextensible" | "object-isextensible" | "objectIsextensible" | "no-object-isfrozen" | "object-isfrozen" | "objectIsfrozen" | "no-object-issealed" | "object-issealed" | "objectIssealed" | "no-object-keys" | "object-keys" | "objectKeys" | "no-object-map-groupby" | "object-map-groupby" | "objectMapGroupby" | "no-object-preventextensions" | "object-preventextensions" | "objectPreventextensions" | "no-object-seal" | "object-seal" | "objectSeal" | "no-object-setprototypeof" | "object-setprototypeof" | "objectSetprototypeof" | "no-object-super-properties" | "object-super-properties" | "objectSuperProperties" | "no-object-values" | "object-values" | "objectValues" | "no-octal-numeric-literals" | "octal-numeric-literals" | "octalNumericLiterals" | "no-optional-catch-binding" | "optional-catch-binding" | "optionalCatchBinding" | "no-optional-chaining" | "optional-chaining" | "optionalChaining" | "no-private-in" | "private-in" | "privateIn" | "no-promise-all-settled" | "promise-all-settled" | "promiseAllSettled" | "no-promise-any" | "promise-any" | "promiseAny" | "no-promise-prototype-finally" | "promise-prototype-finally" | "promisePrototypeFinally" | "no-promise-withresolvers" | "promise-withresolvers" | "promiseWithresolvers" | "no-promise" | "promise" | "no-property-shorthands" | "property-shorthands" | "propertyShorthands" | "no-proxy" | "proxy" | "no-reflect" | "reflect" | "no-regexp-d-flag" | "regexp-d-flag" | "regexpDFlag" | "no-regexp-lookbehind-assertions" | "regexp-lookbehind-assertions" | "regexpLookbehindAssertions" | "regexpLookbehind" | "no-regexp-named-capture-groups" | "regexp-named-capture-groups" | "regexpNamedCaptureGroups" | "no-regexp-prototype-compile" | "regexp-prototype-compile" | "regexpPrototypeCompile" | "no-regexp-prototype-flags" | "regexp-prototype-flags" | "regexpPrototypeFlags" | "no-regexp-s-flag" | "regexp-s-flag" | "regexpSFlag" | "regexpS" | "no-regexp-u-flag" | "regexp-u-flag" | "regexpUFlag" | "regexpU" | "no-regexp-unicode-property-escapes-2019" | "regexp-unicode-property-escapes-2019" | "regexpUnicodePropertyEscapes2019" | "no-regexp-unicode-property-escapes-2020" | "regexp-unicode-property-escapes-2020" | "regexpUnicodePropertyEscapes2020" | "no-regexp-unicode-property-escapes-2021" | "regexp-unicode-property-escapes-2021" | "regexpUnicodePropertyEscapes2021" | "no-regexp-unicode-property-escapes-2022" | "regexp-unicode-property-escapes-2022" | "regexpUnicodePropertyEscapes2022" | "no-regexp-unicode-property-escapes-2023" | "regexp-unicode-property-escapes-2023" | "regexpUnicodePropertyEscapes2023" | "no-regexp-unicode-property-escapes" | "regexp-unicode-property-escapes" | "regexpUnicodePropertyEscapes" | "regexpUnicodeProperties" | "no-regexp-v-flag" | "regexp-v-flag" | "regexpVFlag" | "no-regexp-y-flag" | "regexp-y-flag" | "regexpYFlag" | "regexpY" | "no-resizable-and-growable-arraybuffers" | "resizable-and-growable-arraybuffers" | "resizableAndGrowableArraybuffers" | "no-rest-parameters" | "rest-parameters" | "restParameters" | "no-rest-spread-properties" | "rest-spread-properties" | "restSpreadProperties" | "no-set" | "set" | "no-shadow-catch-param" | "shadow-catch-param" | "shadowCatchParam" | "no-shared-array-buffer" | "shared-array-buffer" | "sharedArrayBuffer" | "no-spread-elements" | "spread-elements" | "spreadElements" | "no-string-create-html-methods" | "string-create-html-methods" | "stringCreateHtmlMethods" | "no-string-fromcodepoint" | "string-fromcodepoint" | "stringFromcodepoint" | "no-string-prototype-codepointat" | "string-prototype-codepointat" | "stringPrototypeCodepointat" | "no-string-prototype-endswith" | "string-prototype-endswith" | "stringPrototypeEndswith" | "no-string-prototype-includes" | "string-prototype-includes" | "stringPrototypeIncludes" | "no-string-prototype-iswellformed-towellformed" | "string-prototype-iswellformed-towellformed" | "stringPrototypeIswellformedTowellformed" | "no-string-prototype-matchall" | "string-prototype-matchall" | "stringPrototypeMatchall" | "no-string-prototype-normalize" | "string-prototype-normalize" | "stringPrototypeNormalize" | "no-string-prototype-padstart-padend" | "string-prototype-padstart-padend" | "stringPrototypePadstartPadend" | "no-string-prototype-repeat" | "string-prototype-repeat" | "stringPrototypeRepeat" | "no-string-prototype-replaceall" | "string-prototype-replaceall" | "stringPrototypeReplaceall" | "no-string-prototype-startswith" | "string-prototype-startswith" | "stringPrototypeStartswith" | "no-string-prototype-substr" | "string-prototype-substr" | "stringPrototypeSubstr" | "no-string-prototype-trim" | "string-prototype-trim" | "stringPrototypeTrim" | "no-string-prototype-trimleft-trimright" | "string-prototype-trimleft-trimright" | "stringPrototypeTrimleftTrimright" | "no-string-prototype-trimstart-trimend" | "string-prototype-trimstart-trimend" | "stringPrototypeTrimstartTrimend" | "no-string-raw" | "string-raw" | "stringRaw" | "no-subclassing-builtins" | "subclassing-builtins" | "subclassingBuiltins" | "no-symbol-prototype-description" | "symbol-prototype-description" | "symbolPrototypeDescription" | "no-symbol" | "symbol" | "no-template-literals" | "template-literals" | "templateLiterals" | "no-top-level-await" | "top-level-await" | "topLevelAwait" | "no-trailing-commas" | "trailing-commas" | "trailingCommas" | "no-trailing-function-commas" | "trailing-function-commas" | "trailingFunctionCommas" | "trailingCommasInFunctions" | "no-typed-arrays" | "typed-arrays" | "typedArrays" | "no-unicode-codepoint-escapes" | "unicode-codepoint-escapes" | "unicodeCodepointEscapes" | "unicodeCodePointEscapes" | "no-weak-map" | "weak-map" | "weakMap" | "no-weak-set" | "weak-set" | "weakSet" | "no-weakrefs" | "weakrefs")[]
|
|
9015
9047
|
}]
|
|
9016
9048
|
// ----- node/no-unsupported-features/node-builtins -----
|
|
9017
9049
|
type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
9018
9050
|
version?: string
|
|
9019
|
-
ignores?: ("queueMicrotask" | "require.resolve.paths" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.from" | "TextDecoder" | "TextEncoder" | "URL" | "URLSearchParams" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dirxml" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.table" | "console.markTimeline" | "console.profile" | "console.profileEnd" | "console.timeLog" | "console.timeStamp" | "console.timeline" | "console.timelineEnd" | "process.allowedNodeEnvironmentFlags" | "process.argv0" | "process.channel" | "process.cpuUsage" | "process.emitWarning" | "process.getegid" | "process.geteuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime.bigint" | "process.ppid" | "process.release" | "process.report" | "process.resourceUsage" | "process.setegid" | "process.seteuid" | "process.setUncaughtExceptionCaptureCallback" | "process.stdout.getColorDepth" | "process.stdout.hasColor" | "process.stderr.getColorDepth" | "process.stderr.hasColor" | "assert.strict" | "assert.strict.doesNotReject" | "assert.strict.rejects" | "assert.deepStrictEqual" | "assert.doesNotReject" | "assert.notDeepStrictEqual" | "assert.rejects" | "assert.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.AsyncLocalStorage" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.from" | "buffer.kMaxLength" | "buffer.transcode" | "buffer.constants" | "buffer.Blob" | "child_process.ChildProcess" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.ECDH" | "crypto.KeyObject" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.constants" | "crypto.fips" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.getCurves" | "crypto.getFips" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "dns.Resolver" | "dns.resolvePtr" | "dns.promises" | "events.EventEmitter.once" | "events.once" | "fs.Dirent" | "fs.copyFile" | "fs.copyFileSync" | "fs.mkdtemp" | "fs.mkdtempSync" | "fs.realpath.native" | "fs.realpathSync.native" | "fs.promises" | "fs.writev" | "fs.writevSync" | "fs.readv" | "fs.readvSync" | "fs.lutimes" | "fs.lutimesSync" | "fs.opendir" | "fs.opendirSync" | "fs.rm" | "fs.rmSync" | "fs.read" | "fs.readSync" | "fs.Dir" | "fs.StatWatcher" | "fs/promises" | "http2" | "inspector" | "module.Module.builtinModules" | "module.Module.createRequireFromPath" | "module.Module.createRequire" | "module.Module.syncBuiltinESMExports" | "module.builtinModules" | "module.createRequireFromPath" | "module.createRequire" | "module.syncBuiltinESMExports" | "os.constants" | "os.constants.priority" | "os.getPriority" | "os.homedir" | "os.setPriority" | "os.userInfo" | "path.toNamespacedPath" | "perf_hooks" | "perf_hooks.monitorEventLoopDelay" | "stream.Readable.from" | "stream.finished" | "stream.pipeline" | "trace_events" | "url.URL" | "url.URLSearchParams" | "url.domainToASCII" | "url.domainToUnicode" | "util.callbackify" | "util.formatWithOptions" | "util.getSystemErrorName" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.promisify" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isBoxedPrimitive" | "v8" | "v8.DefaultDeserializer" | "v8.DefaultSerializer" | "v8.Deserializer" | "v8.Serializer" | "v8.cachedDataVersionTag" | "v8.deserialize" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.serialize" | "v8.writeHeapSnapshot" | "vm.Module" | "vm.compileFunction" | "worker_threads")[]
|
|
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")[]
|
|
9020
9052
|
}]
|
|
9021
9053
|
// ----- node/prefer-global/buffer -----
|
|
9022
9054
|
type NodePreferGlobalBuffer = []|[("always" | "never")]
|
|
@@ -9032,6 +9064,10 @@ type NodePreferGlobalTextEncoder = []|[("always" | "never")]
|
|
|
9032
9064
|
type NodePreferGlobalUrl = []|[("always" | "never")]
|
|
9033
9065
|
// ----- node/prefer-global/url-search-params -----
|
|
9034
9066
|
type NodePreferGlobalUrlSearchParams = []|[("always" | "never")]
|
|
9067
|
+
// ----- node/prefer-node-protocol -----
|
|
9068
|
+
type NodePreferNodeProtocol = []|[{
|
|
9069
|
+
version?: string
|
|
9070
|
+
}]
|
|
9035
9071
|
// ----- node/shebang -----
|
|
9036
9072
|
type NodeShebang = []|[{
|
|
9037
9073
|
convertPath?: ({
|
|
@@ -9050,6 +9086,8 @@ type NodeShebang = []|[{
|
|
|
9050
9086
|
|
|
9051
9087
|
replace: [string, string]
|
|
9052
9088
|
})[]])
|
|
9089
|
+
ignoreUnpublished?: boolean
|
|
9090
|
+
additionalExecutables?: string[]
|
|
9053
9091
|
}]
|
|
9054
9092
|
// ----- nonblock-statement-body-position -----
|
|
9055
9093
|
type NonblockStatementBodyPosition = []|[("beside" | "below" | "any")]|[("beside" | "below" | "any"), {
|
|
@@ -9215,6 +9253,7 @@ type PerfectionistSortInterfaces = []|[{
|
|
|
9215
9253
|
"custom-groups"?: {
|
|
9216
9254
|
[k: string]: unknown | undefined
|
|
9217
9255
|
}
|
|
9256
|
+
"optionality-order"?: ("ignore" | "optional-first" | "required-first")
|
|
9218
9257
|
type?: ("alphabetical" | "natural" | "line-length")
|
|
9219
9258
|
order?: ("asc" | "desc")
|
|
9220
9259
|
"ignore-case"?: boolean
|
|
@@ -9808,16 +9847,6 @@ type ReactStylePropObject = []|[{
|
|
|
9808
9847
|
type RequireAtomicUpdates = []|[{
|
|
9809
9848
|
allowProperties?: boolean
|
|
9810
9849
|
}]
|
|
9811
|
-
// ----- require-jsdoc -----
|
|
9812
|
-
type RequireJsdoc = []|[{
|
|
9813
|
-
require?: {
|
|
9814
|
-
ClassDeclaration?: boolean
|
|
9815
|
-
MethodDefinition?: boolean
|
|
9816
|
-
FunctionDeclaration?: boolean
|
|
9817
|
-
ArrowFunctionExpression?: boolean
|
|
9818
|
-
FunctionExpression?: boolean
|
|
9819
|
-
}
|
|
9820
|
-
}]
|
|
9821
9850
|
// ----- rest-spread-spacing -----
|
|
9822
9851
|
type RestSpreadSpacing = []|[("always" | "never")]
|
|
9823
9852
|
// ----- semi -----
|
|
@@ -12054,6 +12083,7 @@ type TsNoRestrictedImports = ((string | {
|
|
|
12054
12083
|
name: string
|
|
12055
12084
|
message?: string
|
|
12056
12085
|
importNames?: string[]
|
|
12086
|
+
allowImportNames?: string[]
|
|
12057
12087
|
|
|
12058
12088
|
allowTypeImports?: boolean
|
|
12059
12089
|
})[] | []|[{
|
|
@@ -12061,6 +12091,7 @@ type TsNoRestrictedImports = ((string | {
|
|
|
12061
12091
|
name: string
|
|
12062
12092
|
message?: string
|
|
12063
12093
|
importNames?: string[]
|
|
12094
|
+
allowImportNames?: string[]
|
|
12064
12095
|
|
|
12065
12096
|
allowTypeImports?: boolean
|
|
12066
12097
|
})[]
|
|
@@ -12068,8 +12099,11 @@ type TsNoRestrictedImports = ((string | {
|
|
|
12068
12099
|
|
|
12069
12100
|
importNames?: [string, ...(string)[]]
|
|
12070
12101
|
|
|
12102
|
+
allowImportNames?: [string, ...(string)[]]
|
|
12103
|
+
|
|
12071
12104
|
group: [string, ...(string)[]]
|
|
12072
12105
|
importNamePattern?: string
|
|
12106
|
+
allowImportNamePattern?: string
|
|
12073
12107
|
message?: string
|
|
12074
12108
|
caseSensitive?: boolean
|
|
12075
12109
|
|
|
@@ -12470,6 +12504,7 @@ type UnicornExplicitLengthCheck = []|[{
|
|
|
12470
12504
|
type UnicornFilenameCase = []|[({
|
|
12471
12505
|
case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase")
|
|
12472
12506
|
ignore?: unknown[]
|
|
12507
|
+
multipleFileExtensions?: boolean
|
|
12473
12508
|
} | {
|
|
12474
12509
|
cases?: {
|
|
12475
12510
|
camelCase?: boolean
|
|
@@ -12478,6 +12513,7 @@ type UnicornFilenameCase = []|[({
|
|
|
12478
12513
|
pascalCase?: boolean
|
|
12479
12514
|
}
|
|
12480
12515
|
ignore?: unknown[]
|
|
12516
|
+
multipleFileExtensions?: boolean
|
|
12481
12517
|
})]
|
|
12482
12518
|
// ----- unicorn/import-style -----
|
|
12483
12519
|
type UnicornImportStyle = []|[{
|
|
@@ -12686,21 +12722,6 @@ type UseIsnan = []|[{
|
|
|
12686
12722
|
enforceForSwitchCase?: boolean
|
|
12687
12723
|
enforceForIndexOf?: boolean
|
|
12688
12724
|
}]
|
|
12689
|
-
// ----- valid-jsdoc -----
|
|
12690
|
-
type ValidJsdoc = []|[{
|
|
12691
|
-
prefer?: {
|
|
12692
|
-
[k: string]: string | undefined
|
|
12693
|
-
}
|
|
12694
|
-
preferType?: {
|
|
12695
|
-
[k: string]: string | undefined
|
|
12696
|
-
}
|
|
12697
|
-
requireReturn?: boolean
|
|
12698
|
-
requireParamDescription?: boolean
|
|
12699
|
-
requireReturnDescription?: boolean
|
|
12700
|
-
matchDescription?: string
|
|
12701
|
-
requireReturnType?: boolean
|
|
12702
|
-
requireParamType?: boolean
|
|
12703
|
-
}]
|
|
12704
12725
|
// ----- valid-typeof -----
|
|
12705
12726
|
type ValidTypeof = []|[{
|
|
12706
12727
|
requireStringLiterals?: boolean
|
|
@@ -12821,7 +12842,7 @@ type VueCamelcase = []|[{
|
|
|
12821
12842
|
ignoreGlobals?: boolean
|
|
12822
12843
|
properties?: ("always" | "never")
|
|
12823
12844
|
|
|
12824
|
-
allow?: []
|
|
12845
|
+
allow?: string[]
|
|
12825
12846
|
}]
|
|
12826
12847
|
// ----- vue/comma-dangle -----
|
|
12827
12848
|
type VueCommaDangle = []|[(_VueCommaDangleValue | {
|
|
@@ -14470,7 +14491,7 @@ declare const defaultPluginRenaming: {
|
|
|
14470
14491
|
vitest: string;
|
|
14471
14492
|
yml: string;
|
|
14472
14493
|
};
|
|
14473
|
-
declare function vinicuncaESLint(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Array<Awaitable<Array<TypedFlatConfigItem> | TypedFlatConfigItem>>):
|
|
14494
|
+
declare function vinicuncaESLint(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Array<Awaitable<Array<TypedFlatConfigItem> | TypedFlatConfigItem>>): FlatConfigComposer<TypedFlatConfigItem>;
|
|
14474
14495
|
|
|
14475
14496
|
declare function comments(): Promise<Array<TypedFlatConfigItem>>;
|
|
14476
14497
|
|