@ivanmaxlogiudice/eslint-config 3.0.0-beta.7 → 3.0.0-beta.8
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.js +8 -8
- package/dist/index.d.ts +100 -50
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import c from "picocolors";
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@ivanmaxlogiudice/eslint-config",
|
|
14
|
-
version: "3.0.0-beta.
|
|
14
|
+
version: "3.0.0-beta.8",
|
|
15
15
|
packageManager: "bun@1.1.26",
|
|
16
16
|
description: "Personal ESLint config",
|
|
17
17
|
type: "module",
|
|
@@ -87,16 +87,16 @@ var package_default = {
|
|
|
87
87
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
88
88
|
"@ivanmaxlogiudice/gitignore": "^0.0.2",
|
|
89
89
|
"@stylistic/eslint-plugin": "^2.6.4",
|
|
90
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
91
|
-
"@typescript-eslint/parser": "^8.
|
|
92
|
-
"@vitest/eslint-plugin": "^1.0
|
|
90
|
+
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
91
|
+
"@typescript-eslint/parser": "^8.3.0",
|
|
92
|
+
"@vitest/eslint-plugin": "^1.1.0",
|
|
93
93
|
"eslint-plugin-antfu": "^2.3.6",
|
|
94
|
-
"eslint-plugin-import-x": "^
|
|
94
|
+
"eslint-plugin-import-x": "^4.1.0",
|
|
95
95
|
"eslint-plugin-jsdoc": "^50.2.2",
|
|
96
96
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
97
97
|
"eslint-plugin-n": "^17.10.2",
|
|
98
98
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
99
|
-
"eslint-plugin-perfectionist": "^3.
|
|
99
|
+
"eslint-plugin-perfectionist": "^3.3.0",
|
|
100
100
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
101
101
|
"eslint-plugin-unused-imports": "^4.1.3",
|
|
102
102
|
globals: "^15.9.0",
|
|
@@ -108,8 +108,8 @@ var package_default = {
|
|
|
108
108
|
devDependencies: {
|
|
109
109
|
"@eslint/config-inspector": "^0.5.4",
|
|
110
110
|
"@stylistic/eslint-plugin-migrate": "^2.6.4",
|
|
111
|
-
"@types/eslint": "^9.6.
|
|
112
|
-
"@types/node": "^22.5.
|
|
111
|
+
"@types/eslint": "^9.6.1",
|
|
112
|
+
"@types/node": "^22.5.1",
|
|
113
113
|
"@types/yargs": "^17.0.33",
|
|
114
114
|
"@unocss/eslint-plugin": "^0.62.3",
|
|
115
115
|
bumpp: "^9.5.2",
|
package/dist/index.d.ts
CHANGED
|
@@ -366,228 +366,233 @@ interface RuleOptions {
|
|
|
366
366
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
367
367
|
/**
|
|
368
368
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
369
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
369
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/consistent-type-specifier-style.md
|
|
370
370
|
*/
|
|
371
371
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
372
372
|
/**
|
|
373
373
|
* Ensure a default export is present, given a default import.
|
|
374
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
374
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/default.md
|
|
375
375
|
*/
|
|
376
376
|
'import/default'?: Linter.RuleEntry<[]>
|
|
377
377
|
/**
|
|
378
378
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
379
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
379
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/dynamic-import-chunkname.md
|
|
380
380
|
*/
|
|
381
381
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
382
382
|
/**
|
|
383
383
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
384
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
384
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/export.md
|
|
385
385
|
*/
|
|
386
386
|
'import/export'?: Linter.RuleEntry<[]>
|
|
387
387
|
/**
|
|
388
388
|
* Ensure all exports appear after other statements.
|
|
389
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
389
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/exports-last.md
|
|
390
390
|
*/
|
|
391
391
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
392
392
|
/**
|
|
393
393
|
* Ensure consistent use of file extension within the import path.
|
|
394
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
394
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/extensions.md
|
|
395
395
|
*/
|
|
396
396
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
397
397
|
/**
|
|
398
398
|
* Ensure all imports appear before other statements.
|
|
399
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/first.md
|
|
400
400
|
*/
|
|
401
401
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
402
402
|
/**
|
|
403
403
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
404
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/group-exports.md
|
|
405
405
|
*/
|
|
406
406
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
407
407
|
/**
|
|
408
408
|
* Replaced by `import-x/first`.
|
|
409
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/imports-first.md
|
|
410
410
|
* @deprecated
|
|
411
411
|
*/
|
|
412
412
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
413
413
|
/**
|
|
414
414
|
* Enforce the maximum number of dependencies a module can have.
|
|
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.0/docs/rules/max-dependencies.md
|
|
416
416
|
*/
|
|
417
417
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
418
418
|
/**
|
|
419
419
|
* Ensure named imports correspond to a named export in the remote file.
|
|
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.0/docs/rules/named.md
|
|
421
421
|
*/
|
|
422
422
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
423
423
|
/**
|
|
424
424
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
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.0/docs/rules/namespace.md
|
|
426
426
|
*/
|
|
427
427
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
428
428
|
/**
|
|
429
429
|
* Enforce a newline after import statements.
|
|
430
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
430
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/newline-after-import.md
|
|
431
431
|
*/
|
|
432
432
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
433
433
|
/**
|
|
434
434
|
* Forbid import of modules using absolute paths.
|
|
435
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
435
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-absolute-path.md
|
|
436
436
|
*/
|
|
437
437
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
438
438
|
/**
|
|
439
439
|
* Forbid AMD `require` and `define` calls.
|
|
440
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
440
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-amd.md
|
|
441
441
|
*/
|
|
442
442
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
443
443
|
/**
|
|
444
444
|
* Forbid anonymous values as default exports.
|
|
445
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
445
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-anonymous-default-export.md
|
|
446
446
|
*/
|
|
447
447
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
448
448
|
/**
|
|
449
449
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
450
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
450
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-commonjs.md
|
|
451
451
|
*/
|
|
452
452
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
453
453
|
/**
|
|
454
454
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
455
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
455
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-cycle.md
|
|
456
456
|
*/
|
|
457
457
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
458
458
|
/**
|
|
459
459
|
* Forbid default exports.
|
|
460
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
460
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-default-export.md
|
|
461
461
|
*/
|
|
462
462
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
463
463
|
/**
|
|
464
464
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
465
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
465
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-deprecated.md
|
|
466
466
|
*/
|
|
467
467
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
468
468
|
/**
|
|
469
469
|
* Forbid repeated import of the same module in multiple places.
|
|
470
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
470
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-duplicates.md
|
|
471
471
|
*/
|
|
472
472
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
473
473
|
/**
|
|
474
474
|
* Forbid `require()` calls with expressions.
|
|
475
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
475
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-dynamic-require.md
|
|
476
476
|
*/
|
|
477
477
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
478
478
|
/**
|
|
479
479
|
* Forbid empty named import blocks.
|
|
480
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
480
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-empty-named-blocks.md
|
|
481
481
|
*/
|
|
482
482
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
483
483
|
/**
|
|
484
484
|
* Forbid the use of extraneous packages.
|
|
485
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-extraneous-dependencies.md
|
|
486
486
|
*/
|
|
487
487
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
488
488
|
/**
|
|
489
489
|
* Forbid import statements with CommonJS module.exports.
|
|
490
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-import-module-exports.md
|
|
491
491
|
*/
|
|
492
492
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
493
493
|
/**
|
|
494
494
|
* Forbid importing the submodules of other modules.
|
|
495
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-internal-modules.md
|
|
496
496
|
*/
|
|
497
497
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
498
498
|
/**
|
|
499
499
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
500
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-mutable-exports.md
|
|
501
501
|
*/
|
|
502
502
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
503
503
|
/**
|
|
504
504
|
* Forbid use of exported name as identifier of default export.
|
|
505
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default.md
|
|
506
506
|
*/
|
|
507
507
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
508
508
|
/**
|
|
509
509
|
* Forbid use of exported name as property of default export.
|
|
510
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-as-default-member.md
|
|
511
511
|
*/
|
|
512
512
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
513
513
|
/**
|
|
514
514
|
* Forbid named default exports.
|
|
515
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
515
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-default.md
|
|
516
516
|
*/
|
|
517
517
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
518
518
|
/**
|
|
519
519
|
* Forbid named exports.
|
|
520
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
520
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-named-export.md
|
|
521
521
|
*/
|
|
522
522
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
523
523
|
/**
|
|
524
524
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
525
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
525
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-namespace.md
|
|
526
526
|
*/
|
|
527
527
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
528
528
|
/**
|
|
529
529
|
* Forbid Node.js builtin modules.
|
|
530
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-nodejs-modules.md
|
|
531
531
|
*/
|
|
532
532
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
533
533
|
/**
|
|
534
534
|
* Forbid importing packages through relative paths.
|
|
535
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-packages.md
|
|
536
536
|
*/
|
|
537
537
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
538
538
|
/**
|
|
539
539
|
* Forbid importing modules from parent directories.
|
|
540
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-relative-parent-imports.md
|
|
541
541
|
*/
|
|
542
542
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
543
|
+
/**
|
|
544
|
+
* Forbid importing a default export by a different name.
|
|
545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-rename-default.md
|
|
546
|
+
*/
|
|
547
|
+
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
543
548
|
/**
|
|
544
549
|
* Enforce which files can be imported in a given folder.
|
|
545
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-restricted-paths.md
|
|
546
551
|
*/
|
|
547
552
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
548
553
|
/**
|
|
549
554
|
* Forbid a module from importing itself.
|
|
550
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-self-import.md
|
|
551
556
|
*/
|
|
552
557
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
553
558
|
/**
|
|
554
559
|
* Forbid unassigned imports.
|
|
555
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unassigned-import.md
|
|
556
561
|
*/
|
|
557
562
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
558
563
|
/**
|
|
559
564
|
* Ensure imports point to a file/module that can be resolved.
|
|
560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unresolved.md
|
|
561
566
|
*/
|
|
562
567
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
563
568
|
/**
|
|
564
569
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
565
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-unused-modules.md
|
|
566
571
|
*/
|
|
567
572
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
568
573
|
/**
|
|
569
574
|
* Forbid unnecessary path segments in import and require statements.
|
|
570
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-useless-path-segments.md
|
|
571
576
|
*/
|
|
572
577
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
573
578
|
/**
|
|
574
579
|
* Forbid webpack loader syntax in imports.
|
|
575
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/no-webpack-loader-syntax.md
|
|
576
581
|
*/
|
|
577
582
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
578
583
|
/**
|
|
579
584
|
* Enforce a convention in module import order.
|
|
580
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/order.md
|
|
581
586
|
*/
|
|
582
587
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
583
588
|
/**
|
|
584
589
|
* Prefer a default export if module exports a single name or multiple names.
|
|
585
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/prefer-default-export.md
|
|
586
591
|
*/
|
|
587
592
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
588
593
|
/**
|
|
589
594
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
590
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/
|
|
595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.0/docs/rules/unambiguous.md
|
|
591
596
|
*/
|
|
592
597
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
593
598
|
/**
|
|
@@ -3524,11 +3529,6 @@ interface RuleOptions {
|
|
|
3524
3529
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
3525
3530
|
*/
|
|
3526
3531
|
'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
|
|
3527
|
-
/**
|
|
3528
|
-
* Enforce padding around afterAll blocks
|
|
3529
|
-
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/index.md
|
|
3530
|
-
*/
|
|
3531
|
-
'test/index'?: Linter.RuleEntry<[]>
|
|
3532
3532
|
/**
|
|
3533
3533
|
* enforce a maximum number of expect per test
|
|
3534
3534
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
@@ -3645,6 +3645,46 @@ interface RuleOptions {
|
|
|
3645
3645
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
3646
3646
|
*/
|
|
3647
3647
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
3648
|
+
/**
|
|
3649
|
+
* Enforce padding around `afterAll` blocks
|
|
3650
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
3651
|
+
*/
|
|
3652
|
+
'test/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>
|
|
3653
|
+
/**
|
|
3654
|
+
* Enforce padding around `afterEach` blocks
|
|
3655
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
|
|
3656
|
+
*/
|
|
3657
|
+
'test/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>
|
|
3658
|
+
/**
|
|
3659
|
+
* Enforce padding around vitest functions
|
|
3660
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
|
|
3661
|
+
*/
|
|
3662
|
+
'test/padding-around-all'?: Linter.RuleEntry<[]>
|
|
3663
|
+
/**
|
|
3664
|
+
* Enforce padding around `beforeAll` blocks
|
|
3665
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
|
|
3666
|
+
*/
|
|
3667
|
+
'test/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>
|
|
3668
|
+
/**
|
|
3669
|
+
* Enforce padding around `beforeEach` blocks
|
|
3670
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
|
|
3671
|
+
*/
|
|
3672
|
+
'test/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>
|
|
3673
|
+
/**
|
|
3674
|
+
* Enforce padding around `describe` blocks
|
|
3675
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
|
|
3676
|
+
*/
|
|
3677
|
+
'test/padding-around-describe-blocks'?: Linter.RuleEntry<[]>
|
|
3678
|
+
/**
|
|
3679
|
+
* Enforce padding around `expect` groups
|
|
3680
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
|
|
3681
|
+
*/
|
|
3682
|
+
'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
3683
|
+
/**
|
|
3684
|
+
* Enforce padding around afterAll blocks
|
|
3685
|
+
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
3686
|
+
*/
|
|
3687
|
+
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
3648
3688
|
/**
|
|
3649
3689
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
3650
3690
|
* @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
@@ -3925,6 +3965,11 @@ interface RuleOptions {
|
|
|
3925
3965
|
* @see https://typescript-eslint.io/rules/no-confusing-void-expression
|
|
3926
3966
|
*/
|
|
3927
3967
|
'ts/no-confusing-void-expression'?: Linter.RuleEntry<TsNoConfusingVoidExpression>
|
|
3968
|
+
/**
|
|
3969
|
+
* Disallow using code marked as `@deprecated`
|
|
3970
|
+
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
3971
|
+
*/
|
|
3972
|
+
'ts/no-deprecated'?: Linter.RuleEntry<[]>
|
|
3928
3973
|
/**
|
|
3929
3974
|
* Disallow duplicate class members
|
|
3930
3975
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -6936,6 +6981,11 @@ type ImportNoRelativeParentImports = []|[{
|
|
|
6936
6981
|
|
|
6937
6982
|
ignore?: [string, ...(string)[]]
|
|
6938
6983
|
}]
|
|
6984
|
+
// ----- import/no-rename-default -----
|
|
6985
|
+
type ImportNoRenameDefault = []|[{
|
|
6986
|
+
commonjs?: boolean
|
|
6987
|
+
preventRenamingBindings?: boolean
|
|
6988
|
+
}]
|
|
6939
6989
|
// ----- import/no-restricted-paths -----
|
|
6940
6990
|
type ImportNoRestrictedPaths = []|[{
|
|
6941
6991
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivanmaxlogiudice/eslint-config",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.8",
|
|
4
4
|
"packageManager": "bun@1.1.26",
|
|
5
5
|
"description": "Personal ESLint config",
|
|
6
6
|
"type": "module",
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
77
77
|
"@ivanmaxlogiudice/gitignore": "^0.0.2",
|
|
78
78
|
"@stylistic/eslint-plugin": "^2.6.4",
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
80
|
-
"@typescript-eslint/parser": "^8.
|
|
81
|
-
"@vitest/eslint-plugin": "^1.0
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
80
|
+
"@typescript-eslint/parser": "^8.3.0",
|
|
81
|
+
"@vitest/eslint-plugin": "^1.1.0",
|
|
82
82
|
"eslint-plugin-antfu": "^2.3.6",
|
|
83
|
-
"eslint-plugin-import-x": "^
|
|
83
|
+
"eslint-plugin-import-x": "^4.1.0",
|
|
84
84
|
"eslint-plugin-jsdoc": "^50.2.2",
|
|
85
85
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
86
86
|
"eslint-plugin-n": "^17.10.2",
|
|
87
87
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
88
|
-
"eslint-plugin-perfectionist": "^3.
|
|
88
|
+
"eslint-plugin-perfectionist": "^3.3.0",
|
|
89
89
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
90
90
|
"eslint-plugin-unused-imports": "^4.1.3",
|
|
91
91
|
"globals": "^15.9.0",
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@eslint/config-inspector": "^0.5.4",
|
|
99
99
|
"@stylistic/eslint-plugin-migrate": "^2.6.4",
|
|
100
|
-
"@types/eslint": "^9.6.
|
|
101
|
-
"@types/node": "^22.5.
|
|
100
|
+
"@types/eslint": "^9.6.1",
|
|
101
|
+
"@types/node": "^22.5.1",
|
|
102
102
|
"@types/yargs": "^17.0.33",
|
|
103
103
|
"@unocss/eslint-plugin": "^0.62.3",
|
|
104
104
|
"bumpp": "^9.5.2",
|