@ntnyq/eslint-config 3.9.4 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
3
3
  import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
4
4
  import { RecommendedOptions } from 'eslint-plugin-github-action';
5
5
  export { default as pluginGitHubAction } from 'eslint-plugin-github-action';
6
+ import { Rules } from 'eslint-plugin-svgo/rule-options';
6
7
  import { Options } from 'eslint-processor-vue-blocks';
7
8
  export { default as processorVueBlocks } from 'eslint-processor-vue-blocks';
8
9
  import { Linter } from 'eslint';
@@ -12,10 +13,13 @@ import { RequiredOptions, BuiltInParserName } from 'prettier';
12
13
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
13
14
  import * as eslintPluginRegexp from 'eslint-plugin-regexp';
14
15
  export { eslintPluginRegexp as pluginRegexp };
16
+ import * as eslintPluginDepend from 'eslint-plugin-depend';
17
+ export { eslintPluginDepend as pluginDepend };
15
18
  export { default as pluginNode } from 'eslint-plugin-n';
16
19
  export { default as pluginVue } from 'eslint-plugin-vue';
17
20
  export { default as pluginEsX } from 'eslint-plugin-es-x';
18
21
  export { default as pluginYaml } from 'eslint-plugin-yml';
22
+ export { default as pluginSvgo } from 'eslint-plugin-svgo';
19
23
  export { default as pluginToml } from 'eslint-plugin-toml';
20
24
  export { default as pluginPinia } from 'eslint-plugin-pinia';
21
25
  export { default as pluginNtnyq } from 'eslint-plugin-ntnyq';
@@ -1450,6 +1454,11 @@ interface RuleOptions {
1450
1454
  * @see https://eslint.org/docs/latest/rules/default-param-last
1451
1455
  */
1452
1456
  'default-param-last'?: Linter.RuleEntry<[]>;
1457
+ /**
1458
+ * Bans a list of dependencies from being used
1459
+ * @see https://github.com/es-tooling/eslint-plugin-depend/blob/main/docs/rules/ban-dependencies.md
1460
+ */
1461
+ 'depend/ban-dependencies'?: Linter.RuleEntry<DependBanDependencies>;
1453
1462
  /**
1454
1463
  * Enforce consistent newlines before and after dots
1455
1464
  * @see https://eslint.org/docs/latest/rules/dot-location
@@ -5887,6 +5896,11 @@ interface RuleOptions {
5887
5896
  * @see https://eslint.org/docs/latest/rules/strict
5888
5897
  */
5889
5898
  'strict'?: Linter.RuleEntry<Strict>;
5899
+ /**
5900
+ * Use SVGO to optimize SVG files
5901
+ * @see https://github.com/ntnyq/eslint-plugin-svgo
5902
+ */
5903
+ 'svgo/svgo'?: Linter.RuleEntry<SvgoSvgo>;
5890
5904
  /**
5891
5905
  * Enforce spacing around colons of switch statements
5892
5906
  * @see https://eslint.org/docs/latest/rules/switch-colon-spacing
@@ -10893,6 +10907,13 @@ type DefaultCase = [] | [
10893
10907
  commentPattern?: string;
10894
10908
  }
10895
10909
  ];
10910
+ type DependBanDependencies = [] | [
10911
+ {
10912
+ presets?: string[];
10913
+ modules?: string[];
10914
+ allowed?: string[];
10915
+ }
10916
+ ];
10896
10917
  type DotLocation = [] | [("object" | "property")];
10897
10918
  type DotNotation = [] | [
10898
10919
  {
@@ -14233,19 +14254,36 @@ type PaddingLineBetweenStatements = {
14233
14254
  prev: _PaddingLineBetweenStatementsStatementType;
14234
14255
  next: _PaddingLineBetweenStatementsStatementType;
14235
14256
  }[];
14236
- type PerfectionistSortArrayIncludes = [] | [
14237
- {
14238
- partitionByComment?: (string[] | boolean | string);
14239
- groupKind?: ("mixed" | "literals-first" | "spreads-first");
14240
- partitionByNewLine?: boolean;
14241
- specialCharacters?: ("remove" | "trim" | "keep");
14242
- ignoreCase?: boolean;
14243
- alphabet?: string;
14244
- locales?: (string | string[]);
14245
- order?: ("asc" | "desc");
14246
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14247
- }
14248
- ];
14257
+ type PerfectionistSortArrayIncludes = {
14258
+ partitionByComment?: (string[] | boolean | string);
14259
+ groupKind?: ("mixed" | "literals-first" | "spreads-first");
14260
+ customGroups?: ({
14261
+ groupName?: string;
14262
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14263
+ order?: ("desc" | "asc");
14264
+ anyOf?: {
14265
+ selector?: ("literal" | "spread");
14266
+ elementNamePattern?: string;
14267
+ }[];
14268
+ } | {
14269
+ groupName?: string;
14270
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14271
+ order?: ("desc" | "asc");
14272
+ selector?: ("literal" | "spread");
14273
+ elementNamePattern?: string;
14274
+ })[];
14275
+ useConfigurationIf?: {
14276
+ allNamesMatchPattern?: string;
14277
+ };
14278
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14279
+ partitionByNewLine?: boolean;
14280
+ specialCharacters?: ("remove" | "trim" | "keep");
14281
+ ignoreCase?: boolean;
14282
+ alphabet?: string;
14283
+ locales?: (string | string[]);
14284
+ groups?: (string | string[])[];
14285
+ order?: ("asc" | "desc");
14286
+ }[];
14249
14287
  type PerfectionistSortClasses = [] | [
14250
14288
  {
14251
14289
  ignoreCallbackDependenciesPatterns?: string[];
@@ -14276,10 +14314,10 @@ type PerfectionistSortClasses = [] | [
14276
14314
  newlinesBetween?: ("ignore" | "always" | "never");
14277
14315
  ignoreCase?: boolean;
14278
14316
  alphabet?: string;
14317
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14279
14318
  locales?: (string | string[]);
14280
14319
  groups?: (string | string[])[];
14281
14320
  order?: ("asc" | "desc");
14282
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14283
14321
  }
14284
14322
  ];
14285
14323
  type PerfectionistSortDecorators = [] | [
@@ -14296,10 +14334,10 @@ type PerfectionistSortDecorators = [] | [
14296
14334
  };
14297
14335
  ignoreCase?: boolean;
14298
14336
  alphabet?: string;
14337
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14299
14338
  locales?: (string | string[]);
14300
14339
  groups?: (string | string[])[];
14301
14340
  order?: ("asc" | "desc");
14302
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14303
14341
  }
14304
14342
  ];
14305
14343
  type PerfectionistSortEnums = [] | [
@@ -14311,9 +14349,9 @@ type PerfectionistSortEnums = [] | [
14311
14349
  specialCharacters?: ("remove" | "trim" | "keep");
14312
14350
  ignoreCase?: boolean;
14313
14351
  alphabet?: string;
14352
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14314
14353
  locales?: (string | string[]);
14315
14354
  order?: ("asc" | "desc");
14316
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14317
14355
  }
14318
14356
  ];
14319
14357
  type PerfectionistSortExports = [] | [
@@ -14324,9 +14362,9 @@ type PerfectionistSortExports = [] | [
14324
14362
  specialCharacters?: ("remove" | "trim" | "keep");
14325
14363
  ignoreCase?: boolean;
14326
14364
  alphabet?: string;
14365
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14327
14366
  locales?: (string | string[]);
14328
14367
  order?: ("asc" | "desc");
14329
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14330
14368
  }
14331
14369
  ];
14332
14370
  type PerfectionistSortHeritageClauses = [] | [
@@ -14337,10 +14375,10 @@ type PerfectionistSortHeritageClauses = [] | [
14337
14375
  };
14338
14376
  ignoreCase?: boolean;
14339
14377
  alphabet?: string;
14378
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14340
14379
  locales?: (string | string[]);
14341
14380
  groups?: (string | string[])[];
14342
14381
  order?: ("asc" | "desc");
14343
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14344
14382
  }
14345
14383
  ];
14346
14384
  type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
@@ -14364,10 +14402,10 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
14364
14402
  newlinesBetween?: ("ignore" | "always" | "never");
14365
14403
  ignoreCase?: boolean;
14366
14404
  alphabet?: string;
14405
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14367
14406
  locales?: (string | string[]);
14368
14407
  groups?: (string | string[])[];
14369
14408
  order?: ("asc" | "desc");
14370
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14371
14409
  });
14372
14410
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
14373
14411
  [k: string]: unknown | undefined;
@@ -14376,41 +14414,43 @@ interface _PerfectionistSortImports_IsLineLength {
14376
14414
  type: "line-length";
14377
14415
  [k: string]: unknown | undefined;
14378
14416
  }
14379
- type PerfectionistSortInterfaces = [] | [
14380
- {
14381
- ignorePattern?: string[];
14382
- partitionByComment?: (string[] | boolean | string);
14383
- customGroups?: ({
14384
- [k: string]: (string | string[]) | undefined;
14385
- } | ({
14386
- groupName?: string;
14387
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14388
- order?: ("desc" | "asc");
14389
- anyOf?: {
14390
- modifiers?: ("optional" | "required" | "multiline")[];
14391
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
14392
- elementNamePattern?: string;
14393
- }[];
14394
- } | {
14395
- groupName?: string;
14396
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14397
- order?: ("desc" | "asc");
14417
+ type PerfectionistSortInterfaces = {
14418
+ ignorePattern?: string[];
14419
+ useConfigurationIf?: {
14420
+ allNamesMatchPattern?: string;
14421
+ declarationMatchesPattern?: string;
14422
+ };
14423
+ partitionByComment?: (string[] | boolean | string);
14424
+ customGroups?: ({
14425
+ [k: string]: (string | string[]) | undefined;
14426
+ } | ({
14427
+ groupName?: string;
14428
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14429
+ order?: ("desc" | "asc");
14430
+ anyOf?: {
14398
14431
  modifiers?: ("optional" | "required" | "multiline")[];
14399
14432
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
14400
14433
  elementNamePattern?: string;
14401
- })[]);
14402
- groupKind?: ("mixed" | "required-first" | "optional-first");
14403
- partitionByNewLine?: boolean;
14404
- specialCharacters?: ("remove" | "trim" | "keep");
14405
- newlinesBetween?: ("ignore" | "always" | "never");
14406
- ignoreCase?: boolean;
14407
- alphabet?: string;
14408
- locales?: (string | string[]);
14409
- groups?: (string | string[])[];
14410
- order?: ("asc" | "desc");
14411
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14412
- }
14413
- ];
14434
+ }[];
14435
+ } | {
14436
+ groupName?: string;
14437
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14438
+ order?: ("desc" | "asc");
14439
+ modifiers?: ("optional" | "required" | "multiline")[];
14440
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
14441
+ elementNamePattern?: string;
14442
+ })[]);
14443
+ groupKind?: ("mixed" | "required-first" | "optional-first");
14444
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14445
+ partitionByNewLine?: boolean;
14446
+ specialCharacters?: ("remove" | "trim" | "keep");
14447
+ newlinesBetween?: ("ignore" | "always" | "never");
14448
+ ignoreCase?: boolean;
14449
+ alphabet?: string;
14450
+ locales?: (string | string[]);
14451
+ groups?: (string | string[])[];
14452
+ order?: ("asc" | "desc");
14453
+ }[];
14414
14454
  type PerfectionistSortIntersectionTypes = [] | [
14415
14455
  {
14416
14456
  partitionByComment?: (string[] | boolean | string);
@@ -14419,10 +14459,10 @@ type PerfectionistSortIntersectionTypes = [] | [
14419
14459
  newlinesBetween?: ("ignore" | "always" | "never");
14420
14460
  ignoreCase?: boolean;
14421
14461
  alphabet?: string;
14462
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14422
14463
  locales?: (string | string[]);
14423
14464
  groups?: (string | string[])[];
14424
14465
  order?: ("asc" | "desc");
14425
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14426
14466
  }
14427
14467
  ];
14428
14468
  type PerfectionistSortJsxProps = [] | [
@@ -14434,10 +14474,10 @@ type PerfectionistSortJsxProps = [] | [
14434
14474
  };
14435
14475
  ignoreCase?: boolean;
14436
14476
  alphabet?: string;
14477
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14437
14478
  locales?: (string | string[]);
14438
14479
  groups?: (string | string[])[];
14439
14480
  order?: ("asc" | "desc");
14440
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14441
14481
  }
14442
14482
  ];
14443
14483
  type PerfectionistSortMaps = [] | [
@@ -14447,9 +14487,9 @@ type PerfectionistSortMaps = [] | [
14447
14487
  specialCharacters?: ("remove" | "trim" | "keep");
14448
14488
  ignoreCase?: boolean;
14449
14489
  alphabet?: string;
14490
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14450
14491
  locales?: (string | string[]);
14451
14492
  order?: ("asc" | "desc");
14452
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14453
14493
  }
14454
14494
  ];
14455
14495
  type PerfectionistSortModules = [] | [
@@ -14479,10 +14519,10 @@ type PerfectionistSortModules = [] | [
14479
14519
  newlinesBetween?: ("ignore" | "always" | "never");
14480
14520
  ignoreCase?: boolean;
14481
14521
  alphabet?: string;
14522
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14482
14523
  locales?: (string | string[]);
14483
14524
  groups?: (string | string[])[];
14484
14525
  order?: ("asc" | "desc");
14485
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14486
14526
  }
14487
14527
  ];
14488
14528
  type PerfectionistSortNamedExports = [] | [
@@ -14493,9 +14533,9 @@ type PerfectionistSortNamedExports = [] | [
14493
14533
  specialCharacters?: ("remove" | "trim" | "keep");
14494
14534
  ignoreCase?: boolean;
14495
14535
  alphabet?: string;
14536
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14496
14537
  locales?: (string | string[]);
14497
14538
  order?: ("asc" | "desc");
14498
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14499
14539
  }
14500
14540
  ];
14501
14541
  type PerfectionistSortNamedImports = [] | [
@@ -14507,59 +14547,63 @@ type PerfectionistSortNamedImports = [] | [
14507
14547
  specialCharacters?: ("remove" | "trim" | "keep");
14508
14548
  ignoreCase?: boolean;
14509
14549
  alphabet?: string;
14550
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14510
14551
  locales?: (string | string[]);
14511
14552
  order?: ("asc" | "desc");
14512
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14513
14553
  }
14514
14554
  ];
14515
- type PerfectionistSortObjectTypes = [] | [
14516
- {
14517
- ignorePattern?: string[];
14518
- partitionByComment?: (string[] | boolean | string);
14519
- customGroups?: ({
14520
- [k: string]: (string | string[]) | undefined;
14521
- } | ({
14522
- groupName?: string;
14523
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14524
- order?: ("desc" | "asc");
14525
- anyOf?: {
14526
- modifiers?: ("optional" | "required" | "multiline")[];
14527
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
14528
- elementNamePattern?: string;
14529
- }[];
14530
- } | {
14531
- groupName?: string;
14532
- type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14533
- order?: ("desc" | "asc");
14555
+ type PerfectionistSortObjectTypes = {
14556
+ ignorePattern?: string[];
14557
+ useConfigurationIf?: {
14558
+ allNamesMatchPattern?: string;
14559
+ declarationMatchesPattern?: string;
14560
+ };
14561
+ partitionByComment?: (string[] | boolean | string);
14562
+ customGroups?: ({
14563
+ [k: string]: (string | string[]) | undefined;
14564
+ } | ({
14565
+ groupName?: string;
14566
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14567
+ order?: ("desc" | "asc");
14568
+ anyOf?: {
14534
14569
  modifiers?: ("optional" | "required" | "multiline")[];
14535
14570
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
14536
14571
  elementNamePattern?: string;
14537
- })[]);
14538
- groupKind?: ("mixed" | "required-first" | "optional-first");
14539
- partitionByNewLine?: boolean;
14540
- specialCharacters?: ("remove" | "trim" | "keep");
14541
- newlinesBetween?: ("ignore" | "always" | "never");
14542
- ignoreCase?: boolean;
14543
- alphabet?: string;
14544
- locales?: (string | string[]);
14545
- groups?: (string | string[])[];
14546
- order?: ("asc" | "desc");
14547
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14548
- }
14549
- ];
14572
+ }[];
14573
+ } | {
14574
+ groupName?: string;
14575
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14576
+ order?: ("desc" | "asc");
14577
+ modifiers?: ("optional" | "required" | "multiline")[];
14578
+ selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
14579
+ elementNamePattern?: string;
14580
+ })[]);
14581
+ groupKind?: ("mixed" | "required-first" | "optional-first");
14582
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14583
+ partitionByNewLine?: boolean;
14584
+ specialCharacters?: ("remove" | "trim" | "keep");
14585
+ newlinesBetween?: ("ignore" | "always" | "never");
14586
+ ignoreCase?: boolean;
14587
+ alphabet?: string;
14588
+ locales?: (string | string[]);
14589
+ groups?: (string | string[])[];
14590
+ order?: ("asc" | "desc");
14591
+ }[];
14550
14592
  type PerfectionistSortObjects = {
14551
14593
  destructuredObjects?: (boolean | {
14552
14594
  groups?: boolean;
14553
14595
  });
14554
14596
  ignorePattern?: string[];
14597
+ useConfigurationIf?: {
14598
+ allNamesMatchPattern?: string;
14599
+ callingFunctionNamePattern?: string;
14600
+ };
14555
14601
  partitionByComment?: (string[] | boolean | string);
14556
14602
  destructureOnly?: boolean;
14557
14603
  objectDeclarations?: boolean;
14558
14604
  styledComponents?: boolean;
14605
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14559
14606
  partitionByNewLine?: boolean;
14560
- useConfigurationIf?: {
14561
- allNamesMatchPattern?: string;
14562
- };
14563
14607
  specialCharacters?: ("remove" | "trim" | "keep");
14564
14608
  newlinesBetween?: ("ignore" | "always" | "never");
14565
14609
  customGroups?: {
@@ -14570,29 +14614,45 @@ type PerfectionistSortObjects = {
14570
14614
  locales?: (string | string[]);
14571
14615
  groups?: (string | string[])[];
14572
14616
  order?: ("asc" | "desc");
14573
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14574
14617
  }[];
14575
- type PerfectionistSortSets = [] | [
14576
- {
14577
- partitionByComment?: (string[] | boolean | string);
14578
- groupKind?: ("mixed" | "literals-first" | "spreads-first");
14579
- partitionByNewLine?: boolean;
14580
- specialCharacters?: ("remove" | "trim" | "keep");
14581
- ignoreCase?: boolean;
14582
- alphabet?: string;
14583
- locales?: (string | string[]);
14584
- order?: ("asc" | "desc");
14585
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14586
- }
14587
- ];
14618
+ type PerfectionistSortSets = {
14619
+ partitionByComment?: (string[] | boolean | string);
14620
+ groupKind?: ("mixed" | "literals-first" | "spreads-first");
14621
+ customGroups?: ({
14622
+ groupName?: string;
14623
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14624
+ order?: ("desc" | "asc");
14625
+ anyOf?: {
14626
+ selector?: ("literal" | "spread");
14627
+ elementNamePattern?: string;
14628
+ }[];
14629
+ } | {
14630
+ groupName?: string;
14631
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
14632
+ order?: ("desc" | "asc");
14633
+ selector?: ("literal" | "spread");
14634
+ elementNamePattern?: string;
14635
+ })[];
14636
+ useConfigurationIf?: {
14637
+ allNamesMatchPattern?: string;
14638
+ };
14639
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
14640
+ partitionByNewLine?: boolean;
14641
+ specialCharacters?: ("remove" | "trim" | "keep");
14642
+ ignoreCase?: boolean;
14643
+ alphabet?: string;
14644
+ locales?: (string | string[]);
14645
+ groups?: (string | string[])[];
14646
+ order?: ("asc" | "desc");
14647
+ }[];
14588
14648
  type PerfectionistSortSwitchCase = [] | [
14589
14649
  {
14590
14650
  specialCharacters?: ("remove" | "trim" | "keep");
14591
14651
  ignoreCase?: boolean;
14592
14652
  alphabet?: string;
14653
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14593
14654
  locales?: (string | string[]);
14594
14655
  order?: ("asc" | "desc");
14595
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14596
14656
  }
14597
14657
  ];
14598
14658
  type PerfectionistSortUnionTypes = [] | [
@@ -14603,10 +14663,10 @@ type PerfectionistSortUnionTypes = [] | [
14603
14663
  newlinesBetween?: ("ignore" | "always" | "never");
14604
14664
  ignoreCase?: boolean;
14605
14665
  alphabet?: string;
14666
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14606
14667
  locales?: (string | string[]);
14607
14668
  groups?: (string | string[])[];
14608
14669
  order?: ("asc" | "desc");
14609
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14610
14670
  }
14611
14671
  ];
14612
14672
  type PerfectionistSortVariableDeclarations = [] | [
@@ -14616,9 +14676,9 @@ type PerfectionistSortVariableDeclarations = [] | [
14616
14676
  specialCharacters?: ("remove" | "trim" | "keep");
14617
14677
  ignoreCase?: boolean;
14618
14678
  alphabet?: string;
14679
+ type?: ("alphabetical" | "natural" | "line-length" | "custom");
14619
14680
  locales?: (string | string[]);
14620
14681
  order?: ("asc" | "desc");
14621
- type?: ("alphabetical" | "natural" | "line-length" | "custom");
14622
14682
  }
14623
14683
  ];
14624
14684
  type PiniaPreferUseStoreNamingConvention = [] | [
@@ -14963,6 +15023,472 @@ type SpacedComment = [] | [("always" | "never")] | [
14963
15023
  }
14964
15024
  ];
14965
15025
  type Strict = [] | [("never" | "global" | "function" | "safe")];
15026
+ type SvgoSvgo = [] | [
15027
+ {
15028
+ path?: string;
15029
+ multipass?: boolean;
15030
+ floatPrecision?: number;
15031
+ datauri?: ("base64" | "enc" | "unenc");
15032
+ js2svg?: {
15033
+ attrEnd?: string;
15034
+ attrStart?: string;
15035
+ cdataEnd?: string;
15036
+ cdataStart?: string;
15037
+ commentEnd?: string;
15038
+ commentStart?: string;
15039
+ doctypeEnd?: string;
15040
+ doctypeStart?: string;
15041
+ eol?: ("lf" | "crlf");
15042
+ finalNewline?: boolean;
15043
+ indent?: number;
15044
+ pretty?: boolean;
15045
+ procInstEnd?: string;
15046
+ procInstStart?: string;
15047
+ tagCloseEnd?: string;
15048
+ tagCloseStart?: string;
15049
+ tagOpenEnd?: string;
15050
+ tagOpenStart?: string;
15051
+ tagShortEnd?: string;
15052
+ tagShortStart?: string;
15053
+ textEnd?: string;
15054
+ textStart?: string;
15055
+ useShortTags?: boolean;
15056
+ [k: string]: unknown | undefined;
15057
+ };
15058
+ plugins?: (("preset-default" | "cleanupAttrs" | "cleanupEnableBackground" | "cleanupIds" | "cleanupNumericValues" | "collapseGroups" | "convertColors" | "convertEllipseToCircle" | "convertPathData" | "convertShapeToPath" | "convertTransform" | "inlineStyles" | "mergePaths" | "mergeStyles" | "minifyStyles" | "moveElemsAttrsToGroup" | "moveGroupAttrsToElems" | "removeComments" | "removeDesc" | "removeDoctype" | "removeEditorsNSData" | "removeEmptyAttrs" | "removeEmptyContainers" | "removeEmptyText" | "removeHiddenElems" | "removeMetadata" | "removeNonInheritableGroupAttrs" | "removeTitle" | "removeUnknownsAndDefaults" | "removeUnusedNS" | "removeUselessDefs" | "removeUselessStrokeAndFill" | "removeViewBox" | "removeXMLProcInst" | "sortAttrs" | "sortDefsChildren" | "addAttributesToSVGElement" | "addClassesToSVGElement" | "cleanupListOfValues" | "convertOneStopGradients" | "convertStyleToAttrs" | "prefixIds" | "removeAttributesBySelector" | "removeAttrs" | "removeDimensions" | "removeElementsByAttr" | "removeOffCanvasPaths" | "removeRasterImages" | "removeScriptElement" | "removeStyleElement" | "removeXlink" | "removeXMLNS" | "reusePaths") | {
15059
+ name?: "addAttributesToSVGElement";
15060
+ params?: {
15061
+ attributes?: ({
15062
+ [k: string]: unknown | undefined;
15063
+ } | string[]);
15064
+ };
15065
+ } | {
15066
+ name?: "addClassesToSVGElement";
15067
+ params?: {
15068
+ classNames?: string[];
15069
+ className?: string;
15070
+ };
15071
+ } | {
15072
+ name?: "cleanupAttrs";
15073
+ params?: {
15074
+ newlines?: boolean;
15075
+ trim?: boolean;
15076
+ spaces?: boolean;
15077
+ };
15078
+ } | {
15079
+ name?: "cleanupEnableBackground";
15080
+ params?: {};
15081
+ } | {
15082
+ name?: "cleanupIds";
15083
+ params?: {
15084
+ remove?: boolean;
15085
+ minify?: boolean;
15086
+ force?: boolean;
15087
+ preserve?: string[];
15088
+ preservePrefixes?: string[];
15089
+ };
15090
+ } | {
15091
+ name?: "cleanupListOfValues";
15092
+ params?: {
15093
+ floatPrecision?: number;
15094
+ leadingZero?: boolean;
15095
+ defaultPx?: boolean;
15096
+ convertToPx?: boolean;
15097
+ };
15098
+ } | {
15099
+ name?: "cleanupNumericValues";
15100
+ params?: {
15101
+ floatPrecision?: number;
15102
+ leadingZero?: boolean;
15103
+ defaultPx?: boolean;
15104
+ convertToPx?: boolean;
15105
+ };
15106
+ } | {
15107
+ name?: "collapseGroups";
15108
+ params?: {};
15109
+ } | {
15110
+ name?: "convertColors";
15111
+ params?: {
15112
+ currentColor?: boolean;
15113
+ names2hex?: boolean;
15114
+ rgb2hex?: boolean;
15115
+ convertCase?: (boolean | ("lower" | "upper"));
15116
+ shorthex?: boolean;
15117
+ shortname?: boolean;
15118
+ };
15119
+ } | {
15120
+ name?: "convertEllipseToCircle";
15121
+ params?: {};
15122
+ } | {
15123
+ name?: "convertOneStopGradients";
15124
+ params?: {};
15125
+ } | {
15126
+ name?: "convertPathData";
15127
+ params?: {
15128
+ applyTransforms?: boolean;
15129
+ applyTransformsStroked?: boolean;
15130
+ straightCurves?: boolean;
15131
+ convertToQ?: boolean;
15132
+ lineShorthands?: boolean;
15133
+ convertToZ?: boolean;
15134
+ curveSmoothShorthands?: boolean;
15135
+ floatPrecision?: number;
15136
+ transformPrecision?: number;
15137
+ smartArcRounding?: boolean;
15138
+ removeUseless?: boolean;
15139
+ collapseRepeated?: boolean;
15140
+ utilizeAbsolute?: boolean;
15141
+ negativeExtraSpace?: boolean;
15142
+ forceAbsolutePath?: boolean;
15143
+ };
15144
+ } | {
15145
+ name?: "convertShapeToPath";
15146
+ params?: {
15147
+ convertArcs?: boolean;
15148
+ floatPrecision?: number;
15149
+ };
15150
+ } | {
15151
+ name?: "convertStyleToAttrs";
15152
+ params?: {
15153
+ keepImportant?: boolean;
15154
+ };
15155
+ } | {
15156
+ name?: "convertTransform";
15157
+ params?: {
15158
+ convertToShorts?: boolean;
15159
+ floatPrecision?: number;
15160
+ transformPrecision?: number;
15161
+ matrixToTransform?: boolean;
15162
+ shortTranslate?: boolean;
15163
+ shortScale?: boolean;
15164
+ shortRotate?: boolean;
15165
+ removeUseless?: boolean;
15166
+ collapseIntoOne?: boolean;
15167
+ };
15168
+ } | {
15169
+ name?: "inlineStyles";
15170
+ params?: {
15171
+ onlyMatchedOnce?: boolean;
15172
+ removeMatchedSelectors?: boolean;
15173
+ };
15174
+ } | {
15175
+ name?: "mergePaths";
15176
+ params?: {
15177
+ force?: boolean;
15178
+ floatPrecision?: number;
15179
+ noSpaceAfterFlags?: boolean;
15180
+ };
15181
+ } | {
15182
+ name?: "mergeStyles";
15183
+ params?: {};
15184
+ } | {
15185
+ name?: "minifyStyles";
15186
+ params?: {
15187
+ usage?: boolean;
15188
+ };
15189
+ } | {
15190
+ name?: "moveElemsAttrsToGroup";
15191
+ params?: {};
15192
+ } | {
15193
+ name?: "moveGroupAttrsToElems";
15194
+ params?: {};
15195
+ } | {
15196
+ name?: "prefixIds";
15197
+ params?: {
15198
+ delim?: string;
15199
+ prefix?: string;
15200
+ prefixIds?: boolean;
15201
+ prefixClassNames?: boolean;
15202
+ };
15203
+ } | {
15204
+ name?: "preset-default";
15205
+ params?: {
15206
+ overrides?: {
15207
+ cleanupAttrs?: (boolean | {
15208
+ newlines?: boolean;
15209
+ trim?: boolean;
15210
+ spaces?: boolean;
15211
+ });
15212
+ cleanupEnableBackground?: (boolean | {});
15213
+ cleanupIds?: (boolean | {
15214
+ remove?: boolean;
15215
+ minify?: boolean;
15216
+ force?: boolean;
15217
+ preserve?: string[];
15218
+ preservePrefixes?: string[];
15219
+ });
15220
+ cleanupNumericValues?: (boolean | {
15221
+ floatPrecision?: number;
15222
+ leadingZero?: boolean;
15223
+ defaultPx?: boolean;
15224
+ convertToPx?: boolean;
15225
+ });
15226
+ collapseGroups?: (boolean | {});
15227
+ convertColors?: (boolean | {
15228
+ currentColor?: boolean;
15229
+ names2hex?: boolean;
15230
+ rgb2hex?: boolean;
15231
+ convertCase?: (boolean | ("lower" | "upper"));
15232
+ shorthex?: boolean;
15233
+ shortname?: boolean;
15234
+ });
15235
+ convertEllipseToCircle?: (boolean | {});
15236
+ convertPathData?: (boolean | {
15237
+ currentColor?: boolean;
15238
+ names2hex?: boolean;
15239
+ rgb2hex?: boolean;
15240
+ convertCase?: (boolean | ("lower" | "upper"));
15241
+ shorthex?: boolean;
15242
+ shortname?: boolean;
15243
+ });
15244
+ convertShapeToPath?: (boolean | {
15245
+ convertArcs?: boolean;
15246
+ floatPrecision?: number;
15247
+ });
15248
+ convertTransform?: (boolean | {
15249
+ convertToShorts?: boolean;
15250
+ floatPrecision?: number;
15251
+ transformPrecision?: number;
15252
+ matrixToTransform?: boolean;
15253
+ shortTranslate?: boolean;
15254
+ shortScale?: boolean;
15255
+ shortRotate?: boolean;
15256
+ removeUseless?: boolean;
15257
+ collapseIntoOne?: boolean;
15258
+ });
15259
+ inlineStyles?: (boolean | {
15260
+ onlyMatchedOnce?: boolean;
15261
+ removeMatchedSelectors?: boolean;
15262
+ });
15263
+ mergePaths?: (boolean | {
15264
+ force?: boolean;
15265
+ floatPrecision?: number;
15266
+ noSpaceAfterFlags?: boolean;
15267
+ });
15268
+ mergeStyles?: (boolean | {});
15269
+ minifyStyles?: (boolean | {
15270
+ usage?: boolean;
15271
+ });
15272
+ moveElemsAttrsToGroup?: (boolean | {});
15273
+ moveGroupAttrsToElems?: (boolean | {});
15274
+ removeComments?: (boolean | {
15275
+ preservePatterns?: (boolean | string[]);
15276
+ });
15277
+ removeDesc?: (boolean | {
15278
+ removeAny?: boolean;
15279
+ });
15280
+ removeDoctype?: (boolean | {});
15281
+ removeEditorsNSData?: (boolean | {
15282
+ additionalNamespaces?: string[];
15283
+ });
15284
+ removeEmptyAttrs?: (boolean | {});
15285
+ removeEmptyContainers?: (boolean | {});
15286
+ removeEmptyText?: (boolean | {
15287
+ text?: boolean;
15288
+ tspan?: boolean;
15289
+ tref?: boolean;
15290
+ });
15291
+ removeHiddenElems?: (boolean | {
15292
+ isHidden?: boolean;
15293
+ displayNone?: boolean;
15294
+ opacity0?: boolean;
15295
+ circleR0?: boolean;
15296
+ ellipseRX0?: boolean;
15297
+ ellipseRY0?: boolean;
15298
+ rectWidth0?: boolean;
15299
+ rectHeight0?: boolean;
15300
+ patternWidth0?: boolean;
15301
+ patternHeight0?: boolean;
15302
+ imageWidth0?: boolean;
15303
+ imageHeight0?: boolean;
15304
+ pathEmptyD?: boolean;
15305
+ polylineEmptyPoints?: boolean;
15306
+ polygonEmptyPoints?: boolean;
15307
+ });
15308
+ removeMetadata?: (boolean | {});
15309
+ removeNonInheritableGroupAttrs?: (boolean | {});
15310
+ removeTitle?: (boolean | {});
15311
+ removeUnknownsAndDefaults?: (boolean | {
15312
+ unknownContent?: boolean;
15313
+ unknownAttrs?: boolean;
15314
+ defaultAttrs?: boolean;
15315
+ defaultMarkupDeclarations?: boolean;
15316
+ uselessOverrides?: boolean;
15317
+ keepDataAttrs?: boolean;
15318
+ keepAriaAttrs?: boolean;
15319
+ keepRoleAttr?: boolean;
15320
+ });
15321
+ removeUnusedNS?: (boolean | {});
15322
+ removeUselessDefs?: (boolean | {});
15323
+ removeUselessStrokeAndFill?: (boolean | {
15324
+ stroke?: boolean;
15325
+ fill?: boolean;
15326
+ removeNone?: boolean;
15327
+ });
15328
+ removeViewBox?: (boolean | {});
15329
+ removeXMLProcInst?: (boolean | {});
15330
+ sortAttrs?: (boolean | {
15331
+ order?: string[];
15332
+ xmlnsOrder?: "front";
15333
+ });
15334
+ sortDefsChildren?: (boolean | {});
15335
+ };
15336
+ };
15337
+ } | {
15338
+ name?: "removeAttributesBySelector";
15339
+ params?: {
15340
+ selectors?: {
15341
+ selector?: string;
15342
+ attributes?: string[];
15343
+ [k: string]: unknown | undefined;
15344
+ }[];
15345
+ };
15346
+ } | {
15347
+ name?: "removeAttrs";
15348
+ params?: {
15349
+ attrs?: string;
15350
+ elemSeparator?: string;
15351
+ preserveCurrentColor?: boolean;
15352
+ };
15353
+ } | {
15354
+ name?: "removeComments";
15355
+ params?: {
15356
+ preservePatterns?: (boolean | string[]);
15357
+ };
15358
+ } | {
15359
+ name?: "removeDeprecatedAttrs";
15360
+ params?: {
15361
+ removeAny?: boolean;
15362
+ };
15363
+ } | {
15364
+ name?: "removeDesc";
15365
+ params?: {
15366
+ removeAny?: boolean;
15367
+ };
15368
+ } | {
15369
+ name?: "removeDimensions";
15370
+ params?: {};
15371
+ } | {
15372
+ name?: "removeDoctype";
15373
+ params?: {};
15374
+ } | {
15375
+ name?: "removeEditorsNSData";
15376
+ params?: {
15377
+ additionalNamespaces?: string[];
15378
+ };
15379
+ } | {
15380
+ name?: "removeElementsByAttr";
15381
+ params?: {
15382
+ id?: string[];
15383
+ class?: string[];
15384
+ };
15385
+ } | {
15386
+ name?: "removeEmptyAttrs";
15387
+ params?: {};
15388
+ } | {
15389
+ name?: "removeEmptyContainers";
15390
+ params?: {};
15391
+ } | {
15392
+ name?: "removeEmptyText";
15393
+ params?: {
15394
+ text?: boolean;
15395
+ tspan?: boolean;
15396
+ tref?: boolean;
15397
+ };
15398
+ } | {
15399
+ name?: "removeHiddenElems";
15400
+ params?: {
15401
+ isHidden?: boolean;
15402
+ displayNone?: boolean;
15403
+ opacity0?: boolean;
15404
+ circleR0?: boolean;
15405
+ ellipseRX0?: boolean;
15406
+ ellipseRY0?: boolean;
15407
+ rectWidth0?: boolean;
15408
+ rectHeight0?: boolean;
15409
+ patternWidth0?: boolean;
15410
+ patternHeight0?: boolean;
15411
+ imageWidth0?: boolean;
15412
+ imageHeight0?: boolean;
15413
+ pathEmptyD?: boolean;
15414
+ polylineEmptyPoints?: boolean;
15415
+ polygonEmptyPoints?: boolean;
15416
+ };
15417
+ } | {
15418
+ name?: "removeMetadata";
15419
+ params?: {};
15420
+ } | {
15421
+ name?: "removeNonInheritableGroupAttrs";
15422
+ params?: {};
15423
+ } | {
15424
+ name?: "removeOffCanvasPaths";
15425
+ params?: {};
15426
+ } | {
15427
+ name?: "removeRasterImages";
15428
+ params?: {};
15429
+ } | {
15430
+ name?: "removeScriptElement";
15431
+ params?: {};
15432
+ } | {
15433
+ name?: "removeStyleElement";
15434
+ params?: {};
15435
+ } | {
15436
+ name?: "removeTitle";
15437
+ params?: {};
15438
+ } | {
15439
+ name?: "removeUnknownsAndDefaults";
15440
+ params?: {
15441
+ unknownContent?: boolean;
15442
+ unknownAttrs?: boolean;
15443
+ defaultAttrs?: boolean;
15444
+ defaultMarkupDeclarations?: boolean;
15445
+ uselessOverrides?: boolean;
15446
+ keepDataAttrs?: boolean;
15447
+ keepAriaAttrs?: boolean;
15448
+ keepRoleAttr?: boolean;
15449
+ };
15450
+ } | {
15451
+ name?: "removeUnusedNS";
15452
+ params?: {};
15453
+ } | {
15454
+ name?: "removeUselessDefs";
15455
+ params?: {};
15456
+ } | {
15457
+ name?: "removeUselessStrokeAndFill";
15458
+ params?: {
15459
+ stroke?: boolean;
15460
+ fill?: boolean;
15461
+ removeNone?: boolean;
15462
+ };
15463
+ } | {
15464
+ name?: "removeViewBox";
15465
+ params?: {};
15466
+ } | {
15467
+ name?: "removeXlink";
15468
+ params?: {
15469
+ includeLegacy?: boolean;
15470
+ };
15471
+ } | {
15472
+ name?: "removeXMLNS";
15473
+ params?: {};
15474
+ } | {
15475
+ name?: "removeXMLProcInst";
15476
+ params?: {};
15477
+ } | {
15478
+ name?: "reusePaths";
15479
+ params?: {};
15480
+ } | {
15481
+ name?: "sortAttrs";
15482
+ params?: {
15483
+ order?: string[];
15484
+ xmlnsOrder?: "front";
15485
+ };
15486
+ } | {
15487
+ name?: "sortDefsChildren";
15488
+ params?: {};
15489
+ })[];
15490
+ }
15491
+ ];
14966
15492
  type SwitchColonSpacing = [] | [
14967
15493
  {
14968
15494
  before?: boolean;
@@ -17050,12 +17576,16 @@ type Yoda = [] | [("always" | "never")] | [
17050
17576
  onlyEquality?: boolean;
17051
17577
  }
17052
17578
  ];
17053
- type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/es-x' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/import-x' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/ntnyq' | 'ntnyq/pinia' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/stylistic' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vitest' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yaml';
17579
+ type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/es-x' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/import-x' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/ntnyq' | 'ntnyq/pinia' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/stylistic' | 'ntnyq/svgo' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vitest' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yaml';
17054
17580
 
17581
+ /**
17582
+ * ESLint rules
17583
+ */
17584
+ type ESLintRulesRecord = Linter.RulesRecord;
17055
17585
  /**
17056
17586
  * ESLint config
17057
17587
  */
17058
- type ESLintConfig = Linter.Config;
17588
+ type ESLintConfig<Rules extends ESLintRulesRecord = ESLintRulesRecord> = Linter.Config<Rules>;
17059
17589
  /**
17060
17590
  * ESLint parser
17061
17591
  */
@@ -17081,7 +17611,7 @@ type TSESLintParserOptions = Pretty<Required<Required<ConfigWithExtends>['langua
17081
17611
  /**
17082
17612
  * Typed flat config item
17083
17613
  */
17084
- type TypedConfigItem = Omit<Linter.Config<Linter.RulesRecord & RuleOptions>, 'plugins'> & {
17614
+ type TypedConfigItem = Omit<Linter.Config<ESLintRulesRecord & RuleOptions>, 'plugins'> & {
17085
17615
  /**
17086
17616
  * Most plugin are not properly typed
17087
17617
  */
@@ -17092,64 +17622,21 @@ type TypedConfigItem = Omit<Linter.Config<Linter.RulesRecord & RuleOptions>, 'pl
17092
17622
  * @file Config options
17093
17623
  */
17094
17624
 
17095
- type ConfigIgnoresOptions = string[];
17096
- /**
17097
- * Options for overrides `files`
17098
- */
17099
- type ConfigCommandOptions = ESLintPluginCommandOptions;
17100
- interface ConfigYmlOptions extends OptionsOverrides {
17101
- }
17102
- interface OptionsFiles {
17103
- files?: string[];
17104
- }
17105
- /**
17106
- * Options for add `extensions` support
17107
- */
17108
17625
  interface ConfigAntfuOptions extends OptionsOverrides {
17109
17626
  }
17627
+ type ConfigCommandOptions = ESLintPluginCommandOptions;
17110
17628
  interface ConfigCommentsOptions extends OptionsOverrides {
17111
17629
  }
17112
- interface ConfigEsXOptions extends OptionsOverrides {
17113
- }
17114
- interface ConfigGitHubActionOptions extends RecommendedOptions, OptionsOverrides {
17115
- }
17116
- interface ConfigImportXOptions extends OptionsOverrides {
17117
- }
17118
- interface ConfigJsdocOptions extends OptionsFeatures, OptionsOverrides {
17119
- }
17120
- interface ConfigJsoncOptions extends OptionsOverrides {
17121
- }
17122
- interface ConfigNodeOptions extends OptionsOverrides {
17123
- }
17124
- interface ConfigNtnyqOptions extends OptionsOverrides {
17125
- }
17126
- interface ConfigPiniaOptions extends OptionsFiles, OptionsOverrides {
17127
- }
17128
- interface ConfigStylisticOptions extends OptionsOverrides {
17129
- }
17130
- interface ConfigTomlOptions extends OptionsOverrides {
17131
- }
17132
- interface ConfigUnicornOptions extends OptionsOverrides {
17133
- }
17134
- interface ConfigUnusedImportsOptions extends OptionsOverrides {
17135
- }
17136
- interface OptionsExtensions {
17137
- extensions?: string[];
17138
- }
17139
- /**
17140
- * Options for add `features` support
17141
- */
17142
- interface ConfigMarkdownOptions extends OptionsExtensions, OptionsFiles, OptionsOverrides {
17143
- }
17144
- type OptionsFeatures = {
17630
+ interface ConfigDependOptions extends OptionsFiles, OptionsOverrides {
17145
17631
  /**
17146
- * Enable typescript support
17632
+ * Check deps in package.json
17633
+ *
17634
+ * @default true
17147
17635
  */
17148
- typescript?: boolean;
17149
- };
17150
- /**
17151
- * Options for overrides `rules`
17152
- */
17636
+ packageJson?: boolean;
17637
+ }
17638
+ interface ConfigEsXOptions extends OptionsOverrides {
17639
+ }
17153
17640
  interface ConfigFormatOptions {
17154
17641
  /**
17155
17642
  * Enable formatter support for css, less, scss, sass and etc.
@@ -17178,6 +17665,8 @@ interface ConfigFormatOptions {
17178
17665
  */
17179
17666
  dprintOptions?: boolean;
17180
17667
  }
17668
+ interface ConfigGitHubActionOptions extends RecommendedOptions, OptionsOverrides {
17669
+ }
17181
17670
  type ConfigGitIgnoreOptions = Omit<FlatGitignoreOptions, 'strict'> & {
17182
17671
  /**
17183
17672
  * Throw an error if gitignore file not found.
@@ -17186,6 +17675,9 @@ type ConfigGitIgnoreOptions = Omit<FlatGitignoreOptions, 'strict'> & {
17186
17675
  */
17187
17676
  strict?: boolean;
17188
17677
  };
17678
+ type ConfigIgnoresOptions = string[];
17679
+ interface ConfigImportXOptions extends OptionsOverrides {
17680
+ }
17189
17681
  interface ConfigJavaScriptOptions extends OptionsOverrides {
17190
17682
  /**
17191
17683
  * Enable strict checking for JavaScript files
@@ -17194,6 +17686,16 @@ interface ConfigJavaScriptOptions extends OptionsOverrides {
17194
17686
  */
17195
17687
  strict?: boolean;
17196
17688
  }
17689
+ interface ConfigJsdocOptions extends OptionsFeatures, OptionsOverrides {
17690
+ }
17691
+ interface ConfigJsoncOptions extends OptionsOverrides {
17692
+ }
17693
+ interface ConfigMarkdownOptions extends OptionsExtensions, OptionsFiles, OptionsOverrides {
17694
+ }
17695
+ interface ConfigNodeOptions extends OptionsOverrides {
17696
+ }
17697
+ interface ConfigNtnyqOptions extends OptionsOverrides {
17698
+ }
17197
17699
  interface ConfigPerfectionistOptions extends OptionsOverrides {
17198
17700
  /**
17199
17701
  * Enable sort `constants`
@@ -17226,6 +17728,8 @@ interface ConfigPerfectionistOptions extends OptionsOverrides {
17226
17728
  */
17227
17729
  overridesTypesRules?: TypedConfigItem['rules'];
17228
17730
  }
17731
+ interface ConfigPiniaOptions extends OptionsFiles, OptionsOverrides {
17732
+ }
17229
17733
  interface ConfigPrettierOptions extends OptionsOverrides {
17230
17734
  /**
17231
17735
  * TODO: remove in next major version
@@ -17304,12 +17808,17 @@ interface ConfigSpecialsOptions {
17304
17808
  */
17305
17809
  specialCaseConfigs?: TypedConfigItem[];
17306
17810
  }
17811
+ interface ConfigStylisticOptions extends OptionsOverrides {
17812
+ }
17813
+ type ConfigSVGOOptions = ESLintConfig<Rules>;
17307
17814
  interface ConfigTestOptions extends OptionsOverrides {
17308
17815
  /**
17309
17816
  * Overrides built-in vitest rules
17310
17817
  */
17311
17818
  overridesVitestRules?: TypedConfigItem['rules'];
17312
17819
  }
17820
+ interface ConfigTomlOptions extends OptionsOverrides {
17821
+ }
17313
17822
  interface ConfigTypeScriptOptions extends OptionsExtensions, OptionsFiles, OptionsOverrides {
17314
17823
  /**
17315
17824
  * Enable type aware check for TypeScript files
@@ -17334,6 +17843,8 @@ interface ConfigTypeScriptOptions extends OptionsExtensions, OptionsFiles, Optio
17334
17843
  */
17335
17844
  overridesTypeAwareRules?: TypedConfigItem['rules'];
17336
17845
  }
17846
+ interface ConfigUnicornOptions extends OptionsOverrides {
17847
+ }
17337
17848
  interface ConfigUnoCSSOptions extends OptionsOverrides {
17338
17849
  /**
17339
17850
  * Enable attributify sort order
@@ -17342,6 +17853,8 @@ interface ConfigUnoCSSOptions extends OptionsOverrides {
17342
17853
  */
17343
17854
  attributify?: boolean;
17344
17855
  }
17856
+ interface ConfigUnusedImportsOptions extends OptionsOverrides {
17857
+ }
17345
17858
  interface ConfigVueOptions extends OptionsFeatures, OptionsFiles, OptionsOverrides {
17346
17859
  /**
17347
17860
  * Create virtual files for Vue SFC blocks to enable linting.
@@ -17358,6 +17871,32 @@ interface ConfigVueOptions extends OptionsFeatures, OptionsFiles, OptionsOverrid
17358
17871
  */
17359
17872
  vueVersion?: 2 | 3;
17360
17873
  }
17874
+ interface ConfigYmlOptions extends OptionsOverrides {
17875
+ }
17876
+ /**
17877
+ * Options for overrides `files`
17878
+ */
17879
+ interface OptionsFiles {
17880
+ files?: string[];
17881
+ }
17882
+ /**
17883
+ * Options for add `extensions` support
17884
+ */
17885
+ interface OptionsExtensions {
17886
+ extensions?: string[];
17887
+ }
17888
+ /**
17889
+ * Options for add `features` support
17890
+ */
17891
+ type OptionsFeatures = {
17892
+ /**
17893
+ * Enable typescript support
17894
+ */
17895
+ typescript?: boolean;
17896
+ };
17897
+ /**
17898
+ * Options for overrides `rules`
17899
+ */
17361
17900
  interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigItem['rules']> {
17362
17901
  overrides?: Rules;
17363
17902
  }
@@ -17386,6 +17925,7 @@ interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions {
17386
17925
  * bellow can be disabled
17387
17926
  */
17388
17927
  antfu?: boolean | ConfigAntfuOptions;
17928
+ depend?: boolean | ConfigDependOptions;
17389
17929
  githubAction?: boolean | ConfigGitHubActionOptions;
17390
17930
  gitignore?: boolean | ConfigGitIgnoreOptions;
17391
17931
  jsonc?: boolean | ConfigJsoncOptions;
@@ -17396,6 +17936,7 @@ interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions {
17396
17936
  regexp?: boolean | ConfigRegexpOptions;
17397
17937
  sort?: boolean | ConfigSortOptions;
17398
17938
  stylistic?: boolean | ConfigStylisticOptions;
17939
+ svgo?: boolean | ConfigSVGOOptions;
17399
17940
  test?: boolean | ConfigTestOptions;
17400
17941
  toml?: boolean | ConfigTomlOptions;
17401
17942
  typescript?: boolean | ConfigTypeScriptOptions;
@@ -17441,6 +17982,7 @@ declare const GLOB_POSTCSS = "**/*.{p,post}css";
17441
17982
  declare const GLOB_JSON = "**/*.json";
17442
17983
  declare const GLOB_JSON5 = "**/*.json5";
17443
17984
  declare const GLOB_JSONC = "**/*.jsonc";
17985
+ declare const GLOB_PACKAGE_JSON = "**/package.json";
17444
17986
  declare const GLOB_VUE = "**/*.vue";
17445
17987
  declare const GLOB_YAML = "**/*.y?(a)ml";
17446
17988
  declare const GLOB_TOML = "**/*.toml";
@@ -17519,6 +18061,8 @@ declare const toml: (options?: ConfigTomlOptions) => TypedConfigItem[];
17519
18061
  declare const test: (options?: ConfigTestOptions) => TypedConfigItem[];
17520
18062
  declare const vitest: (options?: ConfigTestOptions) => TypedConfigItem[];
17521
18063
 
18064
+ declare const svgo: (options?: ConfigSVGOOptions) => TypedConfigItem[];
18065
+
17522
18066
  declare const antfu: (options?: ConfigAntfuOptions) => TypedConfigItem[];
17523
18067
 
17524
18068
  declare const jsdoc: (options?: ConfigJsdocOptions) => TypedConfigItem[];
@@ -17529,6 +18073,11 @@ declare const pinia: (options?: ConfigPiniaOptions) => TypedConfigItem[];
17529
18073
 
17530
18074
  declare const ntnyq: (options?: ConfigNtnyqOptions) => TypedConfigItem[];
17531
18075
 
18076
+ /**
18077
+ * @see {@link https://github.com/es-tooling/module-replacements}
18078
+ */
18079
+ declare const depend: (options?: ConfigDependOptions) => TypedConfigItem[];
18080
+
17532
18081
  /**
17533
18082
  * @file config for plugin regexp
17534
18083
  * @see {@link https://github.com/ota-meshi/eslint-plugin-regexp}
@@ -17582,4 +18131,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
17582
18131
  */
17583
18132
  declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
17584
18133
 
17585
- export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigEsXOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportXOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPiniaOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSortOptions, type ConfigSpecialsOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, type ESLintRuleSeverity, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PINIA_STORE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_TYPES, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, type TypedConfigItem, antfu, command, comments, defineESLintConfig, esX, format, getOverrides, githubAction, gitignore, hasPinia, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, importX, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, mergePrettierOptions, node, ntnyq, parserPlain, parserTypeScript, perfectionist, pinia, prettier, regexp, resolveSubOptions, sort, specials, stylistic, test, toArray, toml, typescript, unicorn, unocss, unusedImports, vitest, vue, yml };
18134
+ export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigDependOptions, type ConfigEsXOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportXOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPiniaOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSVGOOptions, type ConfigSortOptions, type ConfigSpecialsOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, type ESLintRuleSeverity, type ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_TYPES, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, type TypedConfigItem, antfu, command, comments, defineESLintConfig, depend, esX, format, getOverrides, githubAction, gitignore, hasPinia, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, importX, interopDefault, javascript, jsdoc, jsonc, jsx, loadPlugin, markdown, mergePrettierOptions, node, ntnyq, parserPlain, parserTypeScript, perfectionist, pinia, prettier, regexp, resolveSubOptions, sort, specials, stylistic, svgo, test, toArray, toml, typescript, unicorn, unocss, unusedImports, vitest, vue, yml };