@coderwyd/eslint-config 2.6.4 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +16 -15
- package/dist/cli.js +16 -15
- package/dist/index.cjs +55 -19
- package/dist/index.d.cts +151 -74
- package/dist/index.d.ts +151 -74
- package/dist/index.js +48 -19
- package/package.json +32 -30
package/dist/index.d.cts
CHANGED
|
@@ -231,47 +231,47 @@ interface RuleOptions {
|
|
|
231
231
|
'eqeqeq'?: Linter.RuleEntry<Eqeqeq>
|
|
232
232
|
/**
|
|
233
233
|
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
234
|
-
* @see https://
|
|
234
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
235
235
|
*/
|
|
236
236
|
'eslint-comments/disable-enable-pair'?: Linter.RuleEntry<EslintCommentsDisableEnablePair>
|
|
237
237
|
/**
|
|
238
238
|
* disallow a `eslint-enable` comment for multiple `eslint-disable` comments
|
|
239
|
-
* @see https://
|
|
239
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
240
240
|
*/
|
|
241
241
|
'eslint-comments/no-aggregating-enable'?: Linter.RuleEntry<[]>
|
|
242
242
|
/**
|
|
243
243
|
* disallow duplicate `eslint-disable` comments
|
|
244
|
-
* @see https://
|
|
244
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
245
245
|
*/
|
|
246
246
|
'eslint-comments/no-duplicate-disable'?: Linter.RuleEntry<[]>
|
|
247
247
|
/**
|
|
248
248
|
* disallow `eslint-disable` comments about specific rules
|
|
249
|
-
* @see https://
|
|
249
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
250
250
|
*/
|
|
251
251
|
'eslint-comments/no-restricted-disable'?: Linter.RuleEntry<EslintCommentsNoRestrictedDisable>
|
|
252
252
|
/**
|
|
253
253
|
* disallow `eslint-disable` comments without rule names
|
|
254
|
-
* @see https://
|
|
254
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
255
255
|
*/
|
|
256
256
|
'eslint-comments/no-unlimited-disable'?: Linter.RuleEntry<[]>
|
|
257
257
|
/**
|
|
258
258
|
* disallow unused `eslint-disable` comments
|
|
259
|
-
* @see https://
|
|
259
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
260
260
|
*/
|
|
261
261
|
'eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>
|
|
262
262
|
/**
|
|
263
263
|
* disallow unused `eslint-enable` comments
|
|
264
|
-
* @see https://
|
|
264
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
265
265
|
*/
|
|
266
266
|
'eslint-comments/no-unused-enable'?: Linter.RuleEntry<[]>
|
|
267
267
|
/**
|
|
268
268
|
* disallow ESLint directive-comments
|
|
269
|
-
* @see https://
|
|
269
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
270
270
|
*/
|
|
271
271
|
'eslint-comments/no-use'?: Linter.RuleEntry<EslintCommentsNoUse>
|
|
272
272
|
/**
|
|
273
273
|
* require include descriptions in ESLint directive-comments
|
|
274
|
-
* @see https://
|
|
274
|
+
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
275
275
|
*/
|
|
276
276
|
'eslint-comments/require-description'?: Linter.RuleEntry<EslintCommentsRequireDescription>
|
|
277
277
|
/**
|
|
@@ -382,228 +382,233 @@ interface RuleOptions {
|
|
|
382
382
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
383
383
|
/**
|
|
384
384
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
385
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
385
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/consistent-type-specifier-style.md
|
|
386
386
|
*/
|
|
387
387
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
388
388
|
/**
|
|
389
389
|
* Ensure a default export is present, given a default import.
|
|
390
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
390
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/default.md
|
|
391
391
|
*/
|
|
392
392
|
'import/default'?: Linter.RuleEntry<[]>
|
|
393
393
|
/**
|
|
394
394
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
395
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
395
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/dynamic-import-chunkname.md
|
|
396
396
|
*/
|
|
397
397
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
398
398
|
/**
|
|
399
399
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
400
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
400
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/export.md
|
|
401
401
|
*/
|
|
402
402
|
'import/export'?: Linter.RuleEntry<[]>
|
|
403
403
|
/**
|
|
404
404
|
* Ensure all exports appear after other statements.
|
|
405
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
405
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/exports-last.md
|
|
406
406
|
*/
|
|
407
407
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
408
408
|
/**
|
|
409
409
|
* Ensure consistent use of file extension within the import path.
|
|
410
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
410
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/extensions.md
|
|
411
411
|
*/
|
|
412
412
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
413
413
|
/**
|
|
414
414
|
* Ensure all imports appear before other statements.
|
|
415
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
415
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/first.md
|
|
416
416
|
*/
|
|
417
417
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
418
418
|
/**
|
|
419
419
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
420
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
420
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/group-exports.md
|
|
421
421
|
*/
|
|
422
422
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
423
423
|
/**
|
|
424
424
|
* Replaced by `import-x/first`.
|
|
425
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
425
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/imports-first.md
|
|
426
426
|
* @deprecated
|
|
427
427
|
*/
|
|
428
428
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
429
429
|
/**
|
|
430
430
|
* Enforce the maximum number of dependencies a module can have.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/max-dependencies.md
|
|
432
432
|
*/
|
|
433
433
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
434
434
|
/**
|
|
435
435
|
* Ensure named imports correspond to a named export in the remote file.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/named.md
|
|
437
437
|
*/
|
|
438
438
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
439
439
|
/**
|
|
440
440
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/namespace.md
|
|
442
442
|
*/
|
|
443
443
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
444
444
|
/**
|
|
445
445
|
* Enforce a newline after import statements.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/newline-after-import.md
|
|
447
447
|
*/
|
|
448
448
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
449
449
|
/**
|
|
450
450
|
* Forbid import of modules using absolute paths.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-absolute-path.md
|
|
452
452
|
*/
|
|
453
453
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
454
454
|
/**
|
|
455
455
|
* Forbid AMD `require` and `define` calls.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-amd.md
|
|
457
457
|
*/
|
|
458
458
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
459
459
|
/**
|
|
460
460
|
* Forbid anonymous values as default exports.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-anonymous-default-export.md
|
|
462
462
|
*/
|
|
463
463
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
464
464
|
/**
|
|
465
465
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-commonjs.md
|
|
467
467
|
*/
|
|
468
468
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
469
469
|
/**
|
|
470
470
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-cycle.md
|
|
472
472
|
*/
|
|
473
473
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
474
474
|
/**
|
|
475
475
|
* Forbid default exports.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-default-export.md
|
|
477
477
|
*/
|
|
478
478
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
479
479
|
/**
|
|
480
480
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-deprecated.md
|
|
482
482
|
*/
|
|
483
483
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
484
484
|
/**
|
|
485
485
|
* Forbid repeated import of the same module in multiple places.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-duplicates.md
|
|
487
487
|
*/
|
|
488
488
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
489
489
|
/**
|
|
490
490
|
* Forbid `require()` calls with expressions.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-dynamic-require.md
|
|
492
492
|
*/
|
|
493
493
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
494
494
|
/**
|
|
495
495
|
* Forbid empty named import blocks.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-empty-named-blocks.md
|
|
497
497
|
*/
|
|
498
498
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
499
499
|
/**
|
|
500
500
|
* Forbid the use of extraneous packages.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-extraneous-dependencies.md
|
|
502
502
|
*/
|
|
503
503
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
504
504
|
/**
|
|
505
505
|
* Forbid import statements with CommonJS module.exports.
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-import-module-exports.md
|
|
507
507
|
*/
|
|
508
508
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
509
509
|
/**
|
|
510
510
|
* Forbid importing the submodules of other modules.
|
|
511
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
511
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-internal-modules.md
|
|
512
512
|
*/
|
|
513
513
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
514
514
|
/**
|
|
515
515
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
516
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
516
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-mutable-exports.md
|
|
517
517
|
*/
|
|
518
518
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
519
519
|
/**
|
|
520
520
|
* Forbid use of exported name as identifier of default export.
|
|
521
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
521
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default.md
|
|
522
522
|
*/
|
|
523
523
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
524
524
|
/**
|
|
525
525
|
* Forbid use of exported name as property of default export.
|
|
526
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
526
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default-member.md
|
|
527
527
|
*/
|
|
528
528
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
529
529
|
/**
|
|
530
530
|
* Forbid named default exports.
|
|
531
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
531
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-default.md
|
|
532
532
|
*/
|
|
533
533
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
534
534
|
/**
|
|
535
535
|
* Forbid named exports.
|
|
536
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
536
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-export.md
|
|
537
537
|
*/
|
|
538
538
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
539
539
|
/**
|
|
540
540
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
541
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
541
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-namespace.md
|
|
542
542
|
*/
|
|
543
543
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
544
544
|
/**
|
|
545
545
|
* Forbid Node.js builtin modules.
|
|
546
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
546
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-nodejs-modules.md
|
|
547
547
|
*/
|
|
548
548
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
549
549
|
/**
|
|
550
550
|
* Forbid importing packages through relative paths.
|
|
551
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
551
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-packages.md
|
|
552
552
|
*/
|
|
553
553
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
554
554
|
/**
|
|
555
555
|
* Forbid importing modules from parent directories.
|
|
556
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
556
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-parent-imports.md
|
|
557
557
|
*/
|
|
558
558
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
559
|
+
/**
|
|
560
|
+
* Forbid importing a default export by a different name.
|
|
561
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-rename-default.md
|
|
562
|
+
*/
|
|
563
|
+
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
559
564
|
/**
|
|
560
565
|
* Enforce which files can be imported in a given folder.
|
|
561
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
566
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-restricted-paths.md
|
|
562
567
|
*/
|
|
563
568
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
564
569
|
/**
|
|
565
570
|
* Forbid a module from importing itself.
|
|
566
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
571
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-self-import.md
|
|
567
572
|
*/
|
|
568
573
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
569
574
|
/**
|
|
570
575
|
* Forbid unassigned imports.
|
|
571
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
576
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unassigned-import.md
|
|
572
577
|
*/
|
|
573
578
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
574
579
|
/**
|
|
575
580
|
* Ensure imports point to a file/module that can be resolved.
|
|
576
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
581
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unresolved.md
|
|
577
582
|
*/
|
|
578
583
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
579
584
|
/**
|
|
580
585
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
581
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
586
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unused-modules.md
|
|
582
587
|
*/
|
|
583
588
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
584
589
|
/**
|
|
585
590
|
* Forbid unnecessary path segments in import and require statements.
|
|
586
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
591
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-useless-path-segments.md
|
|
587
592
|
*/
|
|
588
593
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
589
594
|
/**
|
|
590
595
|
* Forbid webpack loader syntax in imports.
|
|
591
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
596
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-webpack-loader-syntax.md
|
|
592
597
|
*/
|
|
593
598
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
594
599
|
/**
|
|
595
600
|
* Enforce a convention in module import order.
|
|
596
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
601
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/order.md
|
|
597
602
|
*/
|
|
598
603
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
599
604
|
/**
|
|
600
605
|
* Prefer a default export if module exports a single name or multiple names.
|
|
601
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
606
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/prefer-default-export.md
|
|
602
607
|
*/
|
|
603
608
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
604
609
|
/**
|
|
605
610
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
606
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
611
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/unambiguous.md
|
|
607
612
|
*/
|
|
608
613
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
609
614
|
/**
|
|
@@ -2633,12 +2638,12 @@ interface RuleOptions {
|
|
|
2633
2638
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2634
2639
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2635
2640
|
/**
|
|
2636
|
-
*
|
|
2641
|
+
* disallow using shorthand boolean attributes
|
|
2637
2642
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2638
2643
|
*/
|
|
2639
2644
|
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2640
2645
|
/**
|
|
2641
|
-
*
|
|
2646
|
+
* disallow using shorthand fragment syntax
|
|
2642
2647
|
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2643
2648
|
*/
|
|
2644
2649
|
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
@@ -4242,11 +4247,6 @@ interface RuleOptions {
|
|
|
4242
4247
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
4243
4248
|
*/
|
|
4244
4249
|
'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
|
|
4245
|
-
/**
|
|
4246
|
-
* Enforce padding around afterAll blocks
|
|
4247
|
-
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/index.md
|
|
4248
|
-
*/
|
|
4249
|
-
'test/index'?: Linter.RuleEntry<[]>
|
|
4250
4250
|
/**
|
|
4251
4251
|
* enforce a maximum number of expect per test
|
|
4252
4252
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
@@ -4363,6 +4363,46 @@ interface RuleOptions {
|
|
|
4363
4363
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4364
4364
|
*/
|
|
4365
4365
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
4366
|
+
/**
|
|
4367
|
+
* Enforce padding around `afterAll` blocks
|
|
4368
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
4369
|
+
*/
|
|
4370
|
+
'test/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>
|
|
4371
|
+
/**
|
|
4372
|
+
* Enforce padding around `afterEach` blocks
|
|
4373
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
|
|
4374
|
+
*/
|
|
4375
|
+
'test/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>
|
|
4376
|
+
/**
|
|
4377
|
+
* Enforce padding around vitest functions
|
|
4378
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
|
|
4379
|
+
*/
|
|
4380
|
+
'test/padding-around-all'?: Linter.RuleEntry<[]>
|
|
4381
|
+
/**
|
|
4382
|
+
* Enforce padding around `beforeAll` blocks
|
|
4383
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
|
|
4384
|
+
*/
|
|
4385
|
+
'test/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>
|
|
4386
|
+
/**
|
|
4387
|
+
* Enforce padding around `beforeEach` blocks
|
|
4388
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
|
|
4389
|
+
*/
|
|
4390
|
+
'test/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>
|
|
4391
|
+
/**
|
|
4392
|
+
* Enforce padding around `describe` blocks
|
|
4393
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
|
|
4394
|
+
*/
|
|
4395
|
+
'test/padding-around-describe-blocks'?: Linter.RuleEntry<[]>
|
|
4396
|
+
/**
|
|
4397
|
+
* Enforce padding around `expect` groups
|
|
4398
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
|
|
4399
|
+
*/
|
|
4400
|
+
'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
4401
|
+
/**
|
|
4402
|
+
* Enforce padding around afterAll blocks
|
|
4403
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4404
|
+
*/
|
|
4405
|
+
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
4366
4406
|
/**
|
|
4367
4407
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
4368
4408
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
@@ -4643,6 +4683,11 @@ interface RuleOptions {
|
|
|
4643
4683
|
* @see https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
4644
4684
|
*/
|
|
4645
4685
|
'ts/no-confusing-void-expression'?: Linter.RuleEntry<TsNoConfusingVoidExpression>
|
|
4686
|
+
/**
|
|
4687
|
+
* Disallow using code marked as `@deprecated`
|
|
4688
|
+
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
4689
|
+
*/
|
|
4690
|
+
'ts/no-deprecated'?: Linter.RuleEntry<[]>
|
|
4646
4691
|
/**
|
|
4647
4692
|
* Disallow duplicate class members
|
|
4648
4693
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -4867,7 +4912,7 @@ interface RuleOptions {
|
|
|
4867
4912
|
*/
|
|
4868
4913
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
4869
4914
|
/**
|
|
4870
|
-
* Disallow type parameters that
|
|
4915
|
+
* Disallow type parameters that aren't used multiple times
|
|
4871
4916
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
4872
4917
|
*/
|
|
4873
4918
|
'ts/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
@@ -5130,7 +5175,7 @@ interface RuleOptions {
|
|
|
5130
5175
|
*/
|
|
5131
5176
|
'ts/unified-signatures'?: Linter.RuleEntry<TsUnifiedSignatures>
|
|
5132
5177
|
/**
|
|
5133
|
-
* Enforce typing arguments in
|
|
5178
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
5134
5179
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
5135
5180
|
*/
|
|
5136
5181
|
'ts/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>
|
|
@@ -6081,7 +6126,7 @@ interface RuleOptions {
|
|
|
6081
6126
|
*/
|
|
6082
6127
|
'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
6083
6128
|
/**
|
|
6084
|
-
* Enforce consistent spacing between
|
|
6129
|
+
* Enforce consistent spacing between property names and type annotations in types and interfaces in `<template>`
|
|
6085
6130
|
* @see https://eslint.vuejs.org/rules/key-spacing.html
|
|
6086
6131
|
*/
|
|
6087
6132
|
'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
|
|
@@ -6754,7 +6799,7 @@ interface RuleOptions {
|
|
|
6754
6799
|
*/
|
|
6755
6800
|
'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
|
|
6756
6801
|
/**
|
|
6757
|
-
* Require quotes around object literal property names in `<template>`
|
|
6802
|
+
* Require quotes around object literal, type literal, interfaces and enums property names in `<template>`
|
|
6758
6803
|
* @see https://eslint.vuejs.org/rules/quote-props.html
|
|
6759
6804
|
*/
|
|
6760
6805
|
'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
|
|
@@ -7115,24 +7160,25 @@ type AccessorPairs = []|[{
|
|
|
7115
7160
|
// ----- antfu/consistent-list-newline -----
|
|
7116
7161
|
type AntfuConsistentListNewline = []|[{
|
|
7117
7162
|
ArrayExpression?: boolean
|
|
7163
|
+
ArrayPattern?: boolean
|
|
7118
7164
|
ArrowFunctionExpression?: boolean
|
|
7119
7165
|
CallExpression?: boolean
|
|
7120
7166
|
ExportNamedDeclaration?: boolean
|
|
7121
7167
|
FunctionDeclaration?: boolean
|
|
7122
7168
|
FunctionExpression?: boolean
|
|
7123
7169
|
ImportDeclaration?: boolean
|
|
7170
|
+
JSONArrayExpression?: boolean
|
|
7171
|
+
JSONObjectExpression?: boolean
|
|
7172
|
+
JSXOpeningElement?: boolean
|
|
7124
7173
|
NewExpression?: boolean
|
|
7125
7174
|
ObjectExpression?: boolean
|
|
7175
|
+
ObjectPattern?: boolean
|
|
7176
|
+
TSFunctionType?: boolean
|
|
7126
7177
|
TSInterfaceDeclaration?: boolean
|
|
7127
7178
|
TSTupleType?: boolean
|
|
7128
7179
|
TSTypeLiteral?: boolean
|
|
7129
7180
|
TSTypeParameterDeclaration?: boolean
|
|
7130
7181
|
TSTypeParameterInstantiation?: boolean
|
|
7131
|
-
ObjectPattern?: boolean
|
|
7132
|
-
ArrayPattern?: boolean
|
|
7133
|
-
JSXOpeningElement?: boolean
|
|
7134
|
-
JSONArrayExpression?: boolean
|
|
7135
|
-
JSONObjectExpression?: boolean
|
|
7136
7182
|
}]
|
|
7137
7183
|
// ----- antfu/indent-unindent -----
|
|
7138
7184
|
type AntfuIndentUnindent = []|[{
|
|
@@ -7526,6 +7572,11 @@ type ImportNoRelativeParentImports = []|[{
|
|
|
7526
7572
|
|
|
7527
7573
|
ignore?: [string, ...(string)[]]
|
|
7528
7574
|
}]
|
|
7575
|
+
// ----- import/no-rename-default -----
|
|
7576
|
+
type ImportNoRenameDefault = []|[{
|
|
7577
|
+
commonjs?: boolean
|
|
7578
|
+
preventRenamingBindings?: boolean
|
|
7579
|
+
}]
|
|
7529
7580
|
// ----- import/no-restricted-paths -----
|
|
7530
7581
|
type ImportNoRestrictedPaths = []|[{
|
|
7531
7582
|
|
|
@@ -9669,6 +9720,10 @@ type PerfectionistSortEnums = []|[{
|
|
|
9669
9720
|
|
|
9670
9721
|
ignoreCase?: boolean
|
|
9671
9722
|
|
|
9723
|
+
sortByValue?: boolean
|
|
9724
|
+
|
|
9725
|
+
forceNumericSort?: boolean
|
|
9726
|
+
|
|
9672
9727
|
partitionByComment?: (string[] | boolean | string)
|
|
9673
9728
|
}]
|
|
9674
9729
|
// ----- perfectionist/sort-exports -----
|
|
@@ -9971,6 +10026,9 @@ type ReactHooksExhaustiveDeps = []|[{
|
|
|
9971
10026
|
}]
|
|
9972
10027
|
// ----- react-naming-convention/component-name -----
|
|
9973
10028
|
type ReactNamingConventionComponentName = []|[(("PascalCase" | "CONSTANT_CASE") | {
|
|
10029
|
+
allowAllCaps?: boolean
|
|
10030
|
+
allowLeadingUnderscore?: boolean
|
|
10031
|
+
allowNamespace?: boolean
|
|
9974
10032
|
excepts?: string[]
|
|
9975
10033
|
rule?: ("PascalCase" | "CONSTANT_CASE")
|
|
9976
10034
|
})]
|
|
@@ -11083,7 +11141,7 @@ type StylePaddedBlocks = []|[(("always" | "never") | {
|
|
|
11083
11141
|
}]
|
|
11084
11142
|
// ----- style/padding-line-between-statements -----
|
|
11085
11143
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
11086
|
-
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]])
|
|
11144
|
+
type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]])
|
|
11087
11145
|
type StylePaddingLineBetweenStatements = {
|
|
11088
11146
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType
|
|
11089
11147
|
prev: _StylePaddingLineBetweenStatementsStatementType
|
|
@@ -11179,6 +11237,7 @@ type StyleTypeAnnotationSpacing = []|[{
|
|
|
11179
11237
|
parameter?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11180
11238
|
property?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11181
11239
|
returnType?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11240
|
+
operator?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11182
11241
|
}
|
|
11183
11242
|
}]
|
|
11184
11243
|
interface _StyleTypeAnnotationSpacing_SpacingConfig {
|
|
@@ -11480,6 +11539,7 @@ type TestNoLargeSnapshots = []|[{
|
|
|
11480
11539
|
type TestNoOnlyTests = []|[{
|
|
11481
11540
|
block?: string[]
|
|
11482
11541
|
focus?: string[]
|
|
11542
|
+
functions?: string[]
|
|
11483
11543
|
fix?: boolean
|
|
11484
11544
|
}]
|
|
11485
11545
|
// ----- test/no-restricted-matchers -----
|
|
@@ -12124,6 +12184,7 @@ type TsNoMisusedPromises = []|[{
|
|
|
12124
12184
|
checksVoidReturn?: (boolean | {
|
|
12125
12185
|
arguments?: boolean
|
|
12126
12186
|
attributes?: boolean
|
|
12187
|
+
inheritedMethods?: boolean
|
|
12127
12188
|
properties?: boolean
|
|
12128
12189
|
returns?: boolean
|
|
12129
12190
|
variables?: boolean
|
|
@@ -14118,6 +14179,10 @@ interface OptionsTypeScriptWithTypes {
|
|
|
14118
14179
|
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
14119
14180
|
*/
|
|
14120
14181
|
tsconfigPath?: string;
|
|
14182
|
+
/**
|
|
14183
|
+
* Override type aware rules.
|
|
14184
|
+
*/
|
|
14185
|
+
overridesTypeAware?: TypedFlatConfigItem['rules'];
|
|
14121
14186
|
}
|
|
14122
14187
|
interface OptionsHasTypeScript {
|
|
14123
14188
|
typescript?: boolean;
|
|
@@ -14369,6 +14434,7 @@ declare function toArray<T>(value: T | T[]): T[];
|
|
|
14369
14434
|
declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
14370
14435
|
default: infer U;
|
|
14371
14436
|
} ? U : T>;
|
|
14437
|
+
declare function isPackageInScope(name: string): boolean;
|
|
14372
14438
|
declare function ensurePackages(packages: string[]): Promise<void>;
|
|
14373
14439
|
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
14374
14440
|
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): {
|
|
@@ -14634,6 +14700,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
14634
14700
|
'import/no-nodejs-modules'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14635
14701
|
'import/no-relative-packages'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14636
14702
|
'import/no-relative-parent-imports'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14703
|
+
'import/no-rename-default'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14637
14704
|
'import/no-restricted-paths'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14638
14705
|
'import/no-self-import'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14639
14706
|
'import/no-unassigned-import'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
@@ -15295,7 +15362,6 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
15295
15362
|
'test/consistent-test-filename'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15296
15363
|
'test/consistent-test-it'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15297
15364
|
'test/expect-expect'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15298
|
-
'test/index'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15299
15365
|
'test/max-expects'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15300
15366
|
'test/max-nested-describe'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15301
15367
|
'test/no-alias-methods'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
@@ -15319,6 +15385,14 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
15319
15385
|
'test/no-standalone-expect'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15320
15386
|
'test/no-test-prefixes'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15321
15387
|
'test/no-test-return-statement'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15388
|
+
'test/padding-around-after-all-blocks'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15389
|
+
'test/padding-around-after-each-blocks'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15390
|
+
'test/padding-around-all'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15391
|
+
'test/padding-around-before-all-blocks'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15392
|
+
'test/padding-around-before-each-blocks'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15393
|
+
'test/padding-around-describe-blocks'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15394
|
+
'test/padding-around-expect-groups'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15395
|
+
'test/padding-around-test-blocks'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15322
15396
|
'test/prefer-called-with'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15323
15397
|
'test/prefer-comparison-matcher'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15324
15398
|
'test/prefer-each'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
@@ -15375,6 +15449,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
15375
15449
|
'ts/no-base-to-string'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15376
15450
|
'ts/no-confusing-non-null-assertion'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15377
15451
|
'ts/no-confusing-void-expression'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15452
|
+
'ts/no-deprecated'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15378
15453
|
'ts/no-dupe-class-members'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15379
15454
|
'ts/no-duplicate-enum-values'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15380
15455
|
'ts/no-duplicate-type-constituents'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
@@ -15865,6 +15940,8 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
15865
15940
|
'yield-star-spacing'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15866
15941
|
yoda?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15867
15942
|
};
|
|
15943
|
+
declare function isInEditorEnv(): boolean;
|
|
15944
|
+
declare function isInGitHooksOrLintStaged(): boolean;
|
|
15868
15945
|
|
|
15869
15946
|
declare const defaultPluginRenaming: {
|
|
15870
15947
|
'@eslint-react': string;
|
|
@@ -15888,6 +15965,6 @@ declare const defaultPluginRenaming: {
|
|
|
15888
15965
|
* @returns {Promise<TypedFlatConfigItem[]>}
|
|
15889
15966
|
* The merged ESLint configurations.
|
|
15890
15967
|
*/
|
|
15891
|
-
declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.Config[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
15968
|
+
declare function defineConfig(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'files'>, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.Config[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
15892
15969
|
|
|
15893
|
-
export { type Awaitable, type BuiltInParserName, type ConfigNames, type LiteralUnion, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type PartialPrettierExtendedOptions, type PrettierOptions, type PrettierParser, type ResolvedOptions, type Rules, type StylisticConfig, type TypedFlatConfigItem, combine, defaultPluginRenaming, defineConfig, ensurePackages, getOverrides, getVueVersion, interopDefault, parserPlain, renamePluginInConfigs, renameRules, resolveSubOptions, toArray };
|
|
15970
|
+
export { type Awaitable, type BuiltInParserName, type ConfigNames, type LiteralUnion, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnoCSS, type OptionsVue, type PartialPrettierExtendedOptions, type PrettierOptions, type PrettierParser, type ResolvedOptions, type Rules, type StylisticConfig, type TypedFlatConfigItem, combine, defaultPluginRenaming, defineConfig, ensurePackages, getOverrides, getVueVersion, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renamePluginInConfigs, renameRules, resolveSubOptions, toArray };
|