@jsse/eslint-config 0.7.0 → 0.7.2

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
@@ -10,15 +10,15 @@ import pluginPerfectionist from "eslint-plugin-perfectionist";
10
10
  import pluginPnpm from "eslint-plugin-pnpm";
11
11
  import pluginUnicorn from "eslint-plugin-unicorn";
12
12
  import pluginUnusedImports from "eslint-plugin-unused-imports";
13
- import * as _eslint_markdown0 from "@eslint/markdown";
14
- import * as _stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
13
+ import * as _$eslint from "eslint";
14
+ import { Linter } from "eslint";
15
15
  import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
16
- import * as eslint_plugin_react0 from "eslint-plugin-react";
17
- import * as eslint from "eslint";
18
- import { Linter, Rule } from "eslint";
16
+ import * as _$eslint_plugin_react0 from "eslint-plugin-react";
17
+ import * as _$_eslint_markdown0 from "@eslint/markdown";
18
+ import * as _$_stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
19
19
 
20
20
  //#region src/_generated/version.d.ts
21
- declare const VERSION = "0.7.0";
21
+ declare const VERSION = "0.7.2";
22
22
  //#endregion
23
23
  //#region src/_generated/dts/builtins.d.ts
24
24
  interface BuiltinsRuleOptions {
@@ -4528,6 +4528,11 @@ interface MarkdownRuleOptions {
4528
4528
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
4529
4529
  */
4530
4530
  "markdown/fenced-code-language"?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
4531
+ /**
4532
+ * Require or disallow metadata for fenced code blocks
4533
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
4534
+ */
4535
+ "markdown/fenced-code-meta"?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
4531
4536
  /**
4532
4537
  * Enforce heading levels increment by one
4533
4538
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
@@ -4628,13 +4633,15 @@ interface MarkdownRuleOptions {
4628
4633
  // ----- markdown/fenced-code-language -----
4629
4634
  type MarkdownFencedCodeLanguage = [] | [{
4630
4635
  required?: string[];
4631
- }]; // ----- markdown/heading-increment -----
4636
+ }]; // ----- markdown/fenced-code-meta -----
4637
+ type MarkdownFencedCodeMeta = [] | ["always" | "never"]; // ----- markdown/heading-increment -----
4632
4638
  type MarkdownHeadingIncrement = [] | [{
4633
4639
  frontmatterTitle?: string;
4634
4640
  }]; // ----- markdown/no-duplicate-definitions -----
4635
4641
  type MarkdownNoDuplicateDefinitions = [] | [{
4636
4642
  allowDefinitions?: string[];
4637
4643
  allowFootnoteDefinitions?: string[];
4644
+ checkFootnoteDefinitions?: boolean;
4638
4645
  }]; // ----- markdown/no-duplicate-headings -----
4639
4646
  type MarkdownNoDuplicateHeadings = [] | [{
4640
4647
  checkSiblingsOnly?: boolean;
@@ -4667,6 +4674,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
4667
4674
  type MarkdownNoUnusedDefinitions = [] | [{
4668
4675
  allowDefinitions?: string[];
4669
4676
  allowFootnoteDefinitions?: string[];
4677
+ checkFootnoteDefinitions?: boolean;
4670
4678
  }]; // ----- markdown/table-column-count -----
4671
4679
  type MarkdownTableColumnCount = [] | [{
4672
4680
  checkMissingCells?: boolean;
@@ -5156,6 +5164,11 @@ interface PerfectionistRuleOptions {
5156
5164
  * @see https://perfectionist.dev/rules/sort-array-includes
5157
5165
  */
5158
5166
  "perfectionist/sort-array-includes"?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
5167
+ /**
5168
+ * Enforce sorted arrays.
5169
+ * @see https://perfectionist.dev/rules/sort-arrays
5170
+ */
5171
+ "perfectionist/sort-arrays"?: Linter.RuleEntry<PerfectionistSortArrays>;
5159
5172
  /**
5160
5173
  * Enforce sorted classes.
5161
5174
  * @see https://perfectionist.dev/rules/sort-classes
@@ -5344,6 +5357,113 @@ type PerfectionistSortArrayIncludes = {
5344
5357
  pattern: string;
5345
5358
  flags?: string;
5346
5359
  } | string);
5360
+ matchesAstSelector?: string;
5361
+ };
5362
+ partitionByComment?: boolean | (({
5363
+ pattern: string;
5364
+ flags?: string;
5365
+ } | string)[] | ({
5366
+ pattern: string;
5367
+ flags?: string;
5368
+ } | string)) | {
5369
+ block?: boolean | (({
5370
+ pattern: string;
5371
+ flags?: string;
5372
+ } | string)[] | ({
5373
+ pattern: string;
5374
+ flags?: string;
5375
+ } | string));
5376
+ line?: boolean | (({
5377
+ pattern: string;
5378
+ flags?: string;
5379
+ } | string)[] | ({
5380
+ pattern: string;
5381
+ flags?: string;
5382
+ } | string));
5383
+ };
5384
+ partitionByNewLine?: boolean;
5385
+ }[]; // ----- perfectionist/sort-arrays -----
5386
+ type PerfectionistSortArrays = {
5387
+ fallbackSort?: {
5388
+ type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5389
+ order?: "asc" | "desc";
5390
+ };
5391
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5392
+ specialCharacters?: "remove" | "trim" | "keep";
5393
+ ignoreCase?: boolean;
5394
+ alphabet?: string;
5395
+ locales?: string | string[];
5396
+ order?: "asc" | "desc";
5397
+ customGroups?: ({
5398
+ fallbackSort?: {
5399
+ type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5400
+ order?: "asc" | "desc";
5401
+ };
5402
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5403
+ groupName: string;
5404
+ newlinesInside?: "ignore" | number;
5405
+ order?: "asc" | "desc";
5406
+ anyOf: [{
5407
+ elementNamePattern?: ({
5408
+ pattern: string;
5409
+ flags?: string;
5410
+ } | string)[] | ({
5411
+ pattern: string;
5412
+ flags?: string;
5413
+ } | string);
5414
+ selector?: "literal";
5415
+ }, ...{
5416
+ elementNamePattern?: ({
5417
+ pattern: string;
5418
+ flags?: string;
5419
+ } | string)[] | ({
5420
+ pattern: string;
5421
+ flags?: string;
5422
+ } | string);
5423
+ selector?: "literal";
5424
+ }[]];
5425
+ } | {
5426
+ fallbackSort?: {
5427
+ type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5428
+ order?: "asc" | "desc";
5429
+ };
5430
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5431
+ groupName: string;
5432
+ newlinesInside?: "ignore" | number;
5433
+ order?: "asc" | "desc";
5434
+ elementNamePattern?: ({
5435
+ pattern: string;
5436
+ flags?: string;
5437
+ } | string)[] | ({
5438
+ pattern: string;
5439
+ flags?: string;
5440
+ } | string);
5441
+ selector?: "literal";
5442
+ })[];
5443
+ newlinesInside?: ("ignore" | number) | "newlinesBetween";
5444
+ groups?: (string | [string, ...string[]] | {
5445
+ newlinesBetween: "ignore" | number;
5446
+ } | {
5447
+ group: string | [string, ...string[]];
5448
+ fallbackSort?: {
5449
+ type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5450
+ order?: "asc" | "desc";
5451
+ };
5452
+ commentAbove?: string;
5453
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5454
+ newlinesInside?: "ignore" | number;
5455
+ order?: "asc" | "desc";
5456
+ })[];
5457
+ newlinesBetween?: "ignore" | number;
5458
+ useConfigurationIf: {
5459
+ allNamesMatchPattern?: ({
5460
+ pattern: string;
5461
+ flags?: string;
5462
+ } | string)[] | ({
5463
+ pattern: string;
5464
+ flags?: string;
5465
+ } | string);
5466
+ matchesAstSelector?: string;
5347
5467
  };
5348
5468
  partitionByComment?: boolean | (({
5349
5469
  pattern: string;
@@ -5369,7 +5489,7 @@ type PerfectionistSortArrayIncludes = {
5369
5489
  };
5370
5490
  partitionByNewLine?: boolean;
5371
5491
  }[]; // ----- perfectionist/sort-classes -----
5372
- type PerfectionistSortClasses = [] | [{
5492
+ type PerfectionistSortClasses = {
5373
5493
  fallbackSort?: {
5374
5494
  type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5375
5495
  order?: "asc" | "desc";
@@ -5486,7 +5606,18 @@ type PerfectionistSortClasses = [] | [{
5486
5606
  order?: "asc" | "desc";
5487
5607
  })[];
5488
5608
  newlinesBetween?: "ignore" | number;
5609
+ useConfigurationIf?: {
5610
+ allNamesMatchPattern?: ({
5611
+ pattern: string;
5612
+ flags?: string;
5613
+ } | string)[] | ({
5614
+ pattern: string;
5615
+ flags?: string;
5616
+ } | string);
5617
+ matchesAstSelector?: string;
5618
+ };
5489
5619
  useExperimentalDependencyDetection?: boolean;
5620
+ newlinesBetweenOverloadSignatures?: "ignore" | number;
5490
5621
  ignoreCallbackDependenciesPatterns?: ({
5491
5622
  pattern: string;
5492
5623
  flags?: string;
@@ -5517,7 +5648,7 @@ type PerfectionistSortClasses = [] | [{
5517
5648
  } | string));
5518
5649
  };
5519
5650
  partitionByNewLine?: boolean;
5520
- }]; // ----- perfectionist/sort-decorators -----
5651
+ }[]; // ----- perfectionist/sort-decorators -----
5521
5652
  type PerfectionistSortDecorators = {
5522
5653
  fallbackSort?: {
5523
5654
  type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
@@ -5616,7 +5747,7 @@ type PerfectionistSortDecorators = {
5616
5747
  };
5617
5748
  partitionByNewLine?: boolean;
5618
5749
  }[]; // ----- perfectionist/sort-enums -----
5619
- type PerfectionistSortEnums = [] | [{
5750
+ type PerfectionistSortEnums = {
5620
5751
  fallbackSort?: {
5621
5752
  type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
5622
5753
  order?: "asc" | "desc";
@@ -5706,6 +5837,16 @@ type PerfectionistSortEnums = [] | [{
5706
5837
  order?: "asc" | "desc";
5707
5838
  })[];
5708
5839
  newlinesBetween?: "ignore" | number;
5840
+ useConfigurationIf?: {
5841
+ allNamesMatchPattern?: ({
5842
+ pattern: string;
5843
+ flags?: string;
5844
+ } | string)[] | ({
5845
+ pattern: string;
5846
+ flags?: string;
5847
+ } | string);
5848
+ matchesAstSelector?: string;
5849
+ };
5709
5850
  sortByValue?: "always" | "ifNumericEnum" | "never";
5710
5851
  useExperimentalDependencyDetection?: boolean;
5711
5852
  partitionByComment?: boolean | (({
@@ -5731,7 +5872,7 @@ type PerfectionistSortEnums = [] | [{
5731
5872
  } | string));
5732
5873
  };
5733
5874
  partitionByNewLine?: boolean;
5734
- }]; // ----- perfectionist/sort-export-attributes -----
5875
+ }[]; // ----- perfectionist/sort-export-attributes -----
5735
5876
  type PerfectionistSortExportAttributes = {
5736
5877
  fallbackSort?: {
5737
5878
  type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
@@ -5801,6 +5942,16 @@ type PerfectionistSortExportAttributes = {
5801
5942
  order?: "asc" | "desc";
5802
5943
  })[];
5803
5944
  newlinesBetween?: "ignore" | number;
5945
+ useConfigurationIf?: {
5946
+ allNamesMatchPattern?: ({
5947
+ pattern: string;
5948
+ flags?: string;
5949
+ } | string)[] | ({
5950
+ pattern: string;
5951
+ flags?: string;
5952
+ } | string);
5953
+ matchesAstSelector?: string;
5954
+ };
5804
5955
  partitionByComment?: boolean | (({
5805
5956
  pattern: string;
5806
5957
  flags?: string;
@@ -5993,6 +6144,16 @@ type PerfectionistSortHeritageClauses = {
5993
6144
  order?: "asc" | "desc";
5994
6145
  })[];
5995
6146
  newlinesBetween?: "ignore" | number;
6147
+ useConfigurationIf?: {
6148
+ allNamesMatchPattern?: ({
6149
+ pattern: string;
6150
+ flags?: string;
6151
+ } | string)[] | ({
6152
+ pattern: string;
6153
+ flags?: string;
6154
+ } | string);
6155
+ matchesAstSelector?: string;
6156
+ };
5996
6157
  partitionByNewLine?: boolean;
5997
6158
  partitionByComment?: boolean | (({
5998
6159
  pattern: string;
@@ -6086,6 +6247,16 @@ type PerfectionistSortImportAttributes = {
6086
6247
  order?: "asc" | "desc";
6087
6248
  })[];
6088
6249
  newlinesBetween?: "ignore" | number;
6250
+ useConfigurationIf?: {
6251
+ allNamesMatchPattern?: ({
6252
+ pattern: string;
6253
+ flags?: string;
6254
+ } | string)[] | ({
6255
+ pattern: string;
6256
+ flags?: string;
6257
+ } | string);
6258
+ matchesAstSelector?: string;
6259
+ };
6089
6260
  partitionByComment?: boolean | (({
6090
6261
  pattern: string;
6091
6262
  flags?: string;
@@ -6354,6 +6525,7 @@ type PerfectionistSortInterfaces = {
6354
6525
  pattern: string;
6355
6526
  flags?: string;
6356
6527
  } | string);
6528
+ matchesAstSelector?: string;
6357
6529
  declarationMatchesPattern?: ({
6358
6530
  scope?: "shallow" | "deep";
6359
6531
  pattern: string;
@@ -6460,6 +6632,16 @@ type PerfectionistSortIntersectionTypes = {
6460
6632
  order?: "asc" | "desc";
6461
6633
  })[];
6462
6634
  newlinesBetween?: "ignore" | number;
6635
+ useConfigurationIf?: {
6636
+ allNamesMatchPattern?: ({
6637
+ pattern: string;
6638
+ flags?: string;
6639
+ } | string)[] | ({
6640
+ pattern: string;
6641
+ flags?: string;
6642
+ } | string);
6643
+ matchesAstSelector?: string;
6644
+ };
6463
6645
  partitionByComment?: boolean | (({
6464
6646
  pattern: string;
6465
6647
  flags?: string;
@@ -6588,6 +6770,7 @@ type PerfectionistSortJsxProps = {
6588
6770
  pattern: string;
6589
6771
  flags?: string;
6590
6772
  } | string);
6773
+ matchesAstSelector?: string;
6591
6774
  tagMatchesPattern?: ({
6592
6775
  pattern: string;
6593
6776
  flags?: string;
@@ -6675,6 +6858,7 @@ type PerfectionistSortMaps = {
6675
6858
  pattern: string;
6676
6859
  flags?: string;
6677
6860
  } | string);
6861
+ matchesAstSelector?: string;
6678
6862
  };
6679
6863
  partitionByComment?: boolean | (({
6680
6864
  pattern: string;
@@ -6797,6 +6981,7 @@ type PerfectionistSortModules = [] | [{
6797
6981
  })[];
6798
6982
  newlinesBetween?: "ignore" | number;
6799
6983
  useExperimentalDependencyDetection?: boolean;
6984
+ newlinesBetweenOverloadSignatures?: "ignore" | number;
6800
6985
  partitionByComment?: boolean | (({
6801
6986
  pattern: string;
6802
6987
  flags?: string;
@@ -6896,6 +7081,16 @@ type PerfectionistSortNamedExports = {
6896
7081
  order?: "asc" | "desc";
6897
7082
  })[];
6898
7083
  newlinesBetween?: "ignore" | number;
7084
+ useConfigurationIf?: {
7085
+ allNamesMatchPattern?: ({
7086
+ pattern: string;
7087
+ flags?: string;
7088
+ } | string)[] | ({
7089
+ pattern: string;
7090
+ flags?: string;
7091
+ } | string);
7092
+ matchesAstSelector?: string;
7093
+ };
6899
7094
  ignoreAlias?: boolean;
6900
7095
  partitionByComment?: boolean | (({
6901
7096
  pattern: string;
@@ -6996,6 +7191,16 @@ type PerfectionistSortNamedImports = {
6996
7191
  order?: "asc" | "desc";
6997
7192
  })[];
6998
7193
  newlinesBetween?: "ignore" | number;
7194
+ useConfigurationIf?: {
7195
+ allNamesMatchPattern?: ({
7196
+ pattern: string;
7197
+ flags?: string;
7198
+ } | string)[] | ({
7199
+ pattern: string;
7200
+ flags?: string;
7201
+ } | string);
7202
+ matchesAstSelector?: string;
7203
+ };
6999
7204
  ignoreAlias?: boolean;
7000
7205
  partitionByComment?: boolean | (({
7001
7206
  pattern: string;
@@ -7143,6 +7348,7 @@ type PerfectionistSortObjectTypes = {
7143
7348
  pattern: string;
7144
7349
  flags?: string;
7145
7350
  } | string);
7351
+ matchesAstSelector?: string;
7146
7352
  declarationMatchesPattern?: ({
7147
7353
  scope?: "shallow" | "deep";
7148
7354
  pattern: string;
@@ -7309,6 +7515,7 @@ type PerfectionistSortObjects = {
7309
7515
  pattern: string;
7310
7516
  flags?: string;
7311
7517
  } | string);
7518
+ matchesAstSelector?: string;
7312
7519
  declarationMatchesPattern?: ({
7313
7520
  scope?: "shallow" | "deep";
7314
7521
  pattern: string;
@@ -7319,6 +7526,7 @@ type PerfectionistSortObjects = {
7319
7526
  flags?: string;
7320
7527
  } | string);
7321
7528
  };
7529
+ partitionByComputedKey?: boolean;
7322
7530
  styledComponents?: boolean;
7323
7531
  useExperimentalDependencyDetection?: boolean;
7324
7532
  partitionByComment?: boolean | (({
@@ -7425,6 +7633,7 @@ type PerfectionistSortSets = {
7425
7633
  pattern: string;
7426
7634
  flags?: string;
7427
7635
  } | string);
7636
+ matchesAstSelector?: string;
7428
7637
  };
7429
7638
  partitionByComment?: boolean | (({
7430
7639
  pattern: string;
@@ -7534,6 +7743,16 @@ type PerfectionistSortUnionTypes = {
7534
7743
  order?: "asc" | "desc";
7535
7744
  })[];
7536
7745
  newlinesBetween?: "ignore" | number;
7746
+ useConfigurationIf?: {
7747
+ allNamesMatchPattern?: ({
7748
+ pattern: string;
7749
+ flags?: string;
7750
+ } | string)[] | ({
7751
+ pattern: string;
7752
+ flags?: string;
7753
+ } | string);
7754
+ matchesAstSelector?: string;
7755
+ };
7537
7756
  partitionByComment?: boolean | (({
7538
7757
  pattern: string;
7539
7758
  flags?: string;
@@ -7558,7 +7777,7 @@ type PerfectionistSortUnionTypes = {
7558
7777
  };
7559
7778
  partitionByNewLine?: boolean;
7560
7779
  }[]; // ----- perfectionist/sort-variable-declarations -----
7561
- type PerfectionistSortVariableDeclarations = [] | [{
7780
+ type PerfectionistSortVariableDeclarations = {
7562
7781
  fallbackSort?: {
7563
7782
  type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
7564
7783
  order?: "asc" | "desc";
@@ -7630,6 +7849,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
7630
7849
  order?: "asc" | "desc";
7631
7850
  })[];
7632
7851
  newlinesBetween?: "ignore" | number;
7852
+ useConfigurationIf?: {
7853
+ allNamesMatchPattern?: ({
7854
+ pattern: string;
7855
+ flags?: string;
7856
+ } | string)[] | ({
7857
+ pattern: string;
7858
+ flags?: string;
7859
+ } | string);
7860
+ matchesAstSelector?: string;
7861
+ };
7633
7862
  useExperimentalDependencyDetection?: boolean;
7634
7863
  partitionByComment?: boolean | (({
7635
7864
  pattern: string;
@@ -7654,7 +7883,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
7654
7883
  } | string));
7655
7884
  };
7656
7885
  partitionByNewLine?: boolean;
7657
- }];
7886
+ }[];
7658
7887
  //#endregion
7659
7888
  //#region src/_generated/dts/pnpm.d.ts
7660
7889
  interface PnpmRuleOptions {
@@ -7733,24 +7962,24 @@ interface PrettierRuleOptions {}
7733
7962
  //#endregion
7734
7963
  //#region src/_generated/dts/react.d.ts
7735
7964
  interface ReactRuleOptions {
7736
- /**
7737
- * Verifies that automatic effect dependencies are compiled if opted-in
7738
- */
7739
- "react-hooks/automatic-effect-dependencies"?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies$1>;
7740
7965
  /**
7741
7966
  * Validates against calling capitalized functions/methods instead of using JSX
7967
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/capitalized-calls
7742
7968
  */
7743
7969
  "react-hooks/capitalized-calls"?: Linter.RuleEntry<ReactHooksCapitalizedCalls$1>;
7744
7970
  /**
7745
- * Validates against higher order functions defining nested components or hooks. Components and hooks should be defined at the module level
7971
+ * Deprecated: this rule has been removed in 7.1.0.
7972
+ * @deprecated
7746
7973
  */
7747
- "react-hooks/component-hook-factories"?: Linter.RuleEntry<ReactHooksComponentHookFactories$1>;
7974
+ "react-hooks/component-hook-factories"?: Linter.RuleEntry<[]>;
7748
7975
  /**
7749
7976
  * Validates the compiler configuration options
7977
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/config
7750
7978
  */
7751
7979
  "react-hooks/config"?: Linter.RuleEntry<ReactHooksConfig$1>;
7752
7980
  /**
7753
7981
  * Validates usage of error boundaries instead of try/catch for errors in child components
7982
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/error-boundaries
7754
7983
  */
7755
7984
  "react-hooks/error-boundaries"?: Linter.RuleEntry<ReactHooksErrorBoundaries$1>;
7756
7985
  /**
@@ -7759,59 +7988,78 @@ interface ReactRuleOptions {
7759
7988
  */
7760
7989
  "react-hooks/exhaustive-deps"?: Linter.RuleEntry<ReactHooksExhaustiveDeps$1>;
7761
7990
  /**
7762
- * Validates usage of fbt
7991
+ * Validates that effect dependencies are exhaustive and without extraneous values
7992
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-effect-dependencies
7763
7993
  */
7764
- "react-hooks/fbt"?: Linter.RuleEntry<ReactHooksFbt$1>;
7994
+ "react-hooks/exhaustive-effect-dependencies"?: Linter.RuleEntry<ReactHooksExhaustiveEffectDependencies$1>;
7765
7995
  /**
7766
- * Validates usage of `fire`
7996
+ * Validates usage of fbt
7997
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/fbt
7767
7998
  */
7768
- "react-hooks/fire"?: Linter.RuleEntry<ReactHooksFire$1>;
7999
+ "react-hooks/fbt"?: Linter.RuleEntry<ReactHooksFbt$1>;
7769
8000
  /**
7770
8001
  * Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
8002
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/gating
7771
8003
  */
7772
8004
  "react-hooks/gating"?: Linter.RuleEntry<ReactHooksGating$1>;
7773
8005
  /**
7774
8006
  * Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
8007
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/globals
7775
8008
  */
7776
8009
  "react-hooks/globals"?: Linter.RuleEntry<ReactHooksGlobals$1>;
7777
8010
  /**
7778
8011
  * Validates the rules of hooks
8012
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/hooks
7779
8013
  */
7780
8014
  "react-hooks/hooks"?: Linter.RuleEntry<ReactHooksHooks$1>;
7781
8015
  /**
7782
8016
  * Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
8017
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
7783
8018
  */
7784
8019
  "react-hooks/immutability"?: Linter.RuleEntry<ReactHooksImmutability$1>;
7785
8020
  /**
7786
8021
  * Validates against usage of libraries which are incompatible with memoization (manual or automatic)
8022
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library
7787
8023
  */
7788
8024
  "react-hooks/incompatible-library"?: Linter.RuleEntry<ReactHooksIncompatibleLibrary$1>;
7789
8025
  /**
7790
8026
  * Internal invariants
8027
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/invariant
7791
8028
  */
7792
8029
  "react-hooks/invariant"?: Linter.RuleEntry<ReactHooksInvariant$1>;
8030
+ /**
8031
+ * Validates that useMemo() and useCallback() specify comprehensive dependencies without extraneous values. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
8032
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memo-dependencies
8033
+ */
8034
+ "react-hooks/memo-dependencies"?: Linter.RuleEntry<ReactHooksMemoDependencies$1>;
7793
8035
  /**
7794
8036
  * Validates that effect dependencies are memoized
8037
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memoized-effect-dependencies
7795
8038
  */
7796
8039
  "react-hooks/memoized-effect-dependencies"?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies$1>;
7797
8040
  /**
7798
8041
  * Validates against deriving values from state in an effect
8042
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/no-deriving-state-in-effects
7799
8043
  */
7800
8044
  "react-hooks/no-deriving-state-in-effects"?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects$1>;
7801
8045
  /**
7802
8046
  * Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
8047
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization
7803
8048
  */
7804
8049
  "react-hooks/preserve-manual-memoization"?: Linter.RuleEntry<ReactHooksPreserveManualMemoization$1>;
7805
8050
  /**
7806
8051
  * Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
8052
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
7807
8053
  */
7808
8054
  "react-hooks/purity"?: Linter.RuleEntry<ReactHooksPurity$1>;
7809
8055
  /**
7810
8056
  * Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
8057
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
7811
8058
  */
7812
8059
  "react-hooks/refs"?: Linter.RuleEntry<ReactHooksRefs$1>;
7813
8060
  /**
7814
8061
  * Validates against suppression of other rules
8062
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/rule-suppression
7815
8063
  */
7816
8064
  "react-hooks/rule-suppression"?: Linter.RuleEntry<ReactHooksRuleSuppression$1>;
7817
8065
  /**
@@ -7820,35 +8068,43 @@ interface ReactRuleOptions {
7820
8068
  */
7821
8069
  "react-hooks/rules-of-hooks"?: Linter.RuleEntry<ReactHooksRulesOfHooks$1>;
7822
8070
  /**
7823
- * Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance
8071
+ * Validates against calling setState synchronously in an effect. This can indicate non-local derived data, a derived event pattern, or improper external data synchronization.
8072
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
7824
8073
  */
7825
8074
  "react-hooks/set-state-in-effect"?: Linter.RuleEntry<ReactHooksSetStateInEffect$1>;
7826
8075
  /**
7827
8076
  * Validates against setting state during render, which can trigger additional renders and potential infinite render loops
8077
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-render
7828
8078
  */
7829
8079
  "react-hooks/set-state-in-render"?: Linter.RuleEntry<ReactHooksSetStateInRender$1>;
7830
8080
  /**
7831
8081
  * Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
8082
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
7832
8083
  */
7833
8084
  "react-hooks/static-components"?: Linter.RuleEntry<ReactHooksStaticComponents$1>;
7834
8085
  /**
7835
8086
  * Validates against invalid syntax
8087
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/syntax
7836
8088
  */
7837
8089
  "react-hooks/syntax"?: Linter.RuleEntry<ReactHooksSyntax$1>;
7838
8090
  /**
7839
8091
  * Unimplemented features
8092
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/todo
7840
8093
  */
7841
8094
  "react-hooks/todo"?: Linter.RuleEntry<ReactHooksTodo$1>;
7842
8095
  /**
7843
8096
  * Validates against syntax that we do not plan to support in React Compiler
8097
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax
7844
8098
  */
7845
8099
  "react-hooks/unsupported-syntax"?: Linter.RuleEntry<ReactHooksUnsupportedSyntax$1>;
7846
8100
  /**
7847
8101
  * Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
8102
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/use-memo
7848
8103
  */
7849
8104
  "react-hooks/use-memo"?: Linter.RuleEntry<ReactHooksUseMemo$1>;
7850
8105
  /**
7851
8106
  * Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
8107
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/void-use-memo
7852
8108
  */
7853
8109
  "react-hooks/void-use-memo"?: Linter.RuleEntry<ReactHooksVoidUseMemo$1>;
7854
8110
  "react-refresh/only-export-components"?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
@@ -8371,15 +8627,9 @@ interface ReactRuleOptions {
8371
8627
  "react/void-dom-elements-no-children"?: Linter.RuleEntry<[]>;
8372
8628
  }
8373
8629
  /* ======= Declarations ======= */
8374
- // ----- react-hooks/automatic-effect-dependencies -----
8375
- type ReactHooksAutomaticEffectDependencies$1 = [] | [{
8376
- [k: string]: unknown | undefined;
8377
- }]; // ----- react-hooks/capitalized-calls -----
8630
+ // ----- react-hooks/capitalized-calls -----
8378
8631
  type ReactHooksCapitalizedCalls$1 = [] | [{
8379
8632
  [k: string]: unknown | undefined;
8380
- }]; // ----- react-hooks/component-hook-factories -----
8381
- type ReactHooksComponentHookFactories$1 = [] | [{
8382
- [k: string]: unknown | undefined;
8383
8633
  }]; // ----- react-hooks/config -----
8384
8634
  type ReactHooksConfig$1 = [] | [{
8385
8635
  [k: string]: unknown | undefined;
@@ -8392,12 +8642,12 @@ type ReactHooksExhaustiveDeps$1 = [] | [{
8392
8642
  enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
8393
8643
  experimental_autoDependenciesHooks?: string[];
8394
8644
  requireExplicitEffectDeps?: boolean;
8645
+ }]; // ----- react-hooks/exhaustive-effect-dependencies -----
8646
+ type ReactHooksExhaustiveEffectDependencies$1 = [] | [{
8647
+ [k: string]: unknown | undefined;
8395
8648
  }]; // ----- react-hooks/fbt -----
8396
8649
  type ReactHooksFbt$1 = [] | [{
8397
8650
  [k: string]: unknown | undefined;
8398
- }]; // ----- react-hooks/fire -----
8399
- type ReactHooksFire$1 = [] | [{
8400
- [k: string]: unknown | undefined;
8401
8651
  }]; // ----- react-hooks/gating -----
8402
8652
  type ReactHooksGating$1 = [] | [{
8403
8653
  [k: string]: unknown | undefined;
@@ -8416,6 +8666,9 @@ type ReactHooksIncompatibleLibrary$1 = [] | [{
8416
8666
  }]; // ----- react-hooks/invariant -----
8417
8667
  type ReactHooksInvariant$1 = [] | [{
8418
8668
  [k: string]: unknown | undefined;
8669
+ }]; // ----- react-hooks/memo-dependencies -----
8670
+ type ReactHooksMemoDependencies$1 = [] | [{
8671
+ [k: string]: unknown | undefined;
8419
8672
  }]; // ----- react-hooks/memoized-effect-dependencies -----
8420
8673
  type ReactHooksMemoizedEffectDependencies$1 = [] | [{
8421
8674
  [k: string]: unknown | undefined;
@@ -8861,24 +9114,24 @@ type ReactStylePropObject = [] | [{
8861
9114
  //#endregion
8862
9115
  //#region src/_generated/dts/react-hooks.d.ts
8863
9116
  interface ReactHooksRuleOptions {
8864
- /**
8865
- * Verifies that automatic effect dependencies are compiled if opted-in
8866
- */
8867
- "react-hooks/automatic-effect-dependencies"?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies>;
8868
9117
  /**
8869
9118
  * Validates against calling capitalized functions/methods instead of using JSX
9119
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/capitalized-calls
8870
9120
  */
8871
9121
  "react-hooks/capitalized-calls"?: Linter.RuleEntry<ReactHooksCapitalizedCalls>;
8872
9122
  /**
8873
- * Validates against higher order functions defining nested components or hooks. Components and hooks should be defined at the module level
9123
+ * Deprecated: this rule has been removed in 7.1.0.
9124
+ * @deprecated
8874
9125
  */
8875
- "react-hooks/component-hook-factories"?: Linter.RuleEntry<ReactHooksComponentHookFactories>;
9126
+ "react-hooks/component-hook-factories"?: Linter.RuleEntry<[]>;
8876
9127
  /**
8877
9128
  * Validates the compiler configuration options
9129
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/config
8878
9130
  */
8879
9131
  "react-hooks/config"?: Linter.RuleEntry<ReactHooksConfig>;
8880
9132
  /**
8881
9133
  * Validates usage of error boundaries instead of try/catch for errors in child components
9134
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/error-boundaries
8882
9135
  */
8883
9136
  "react-hooks/error-boundaries"?: Linter.RuleEntry<ReactHooksErrorBoundaries>;
8884
9137
  /**
@@ -8887,59 +9140,78 @@ interface ReactHooksRuleOptions {
8887
9140
  */
8888
9141
  "react-hooks/exhaustive-deps"?: Linter.RuleEntry<ReactHooksExhaustiveDeps>;
8889
9142
  /**
8890
- * Validates usage of fbt
9143
+ * Validates that effect dependencies are exhaustive and without extraneous values
9144
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-effect-dependencies
8891
9145
  */
8892
- "react-hooks/fbt"?: Linter.RuleEntry<ReactHooksFbt>;
9146
+ "react-hooks/exhaustive-effect-dependencies"?: Linter.RuleEntry<ReactHooksExhaustiveEffectDependencies>;
8893
9147
  /**
8894
- * Validates usage of `fire`
9148
+ * Validates usage of fbt
9149
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/fbt
8895
9150
  */
8896
- "react-hooks/fire"?: Linter.RuleEntry<ReactHooksFire>;
9151
+ "react-hooks/fbt"?: Linter.RuleEntry<ReactHooksFbt>;
8897
9152
  /**
8898
9153
  * Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
9154
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/gating
8899
9155
  */
8900
9156
  "react-hooks/gating"?: Linter.RuleEntry<ReactHooksGating>;
8901
9157
  /**
8902
9158
  * Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
9159
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/globals
8903
9160
  */
8904
9161
  "react-hooks/globals"?: Linter.RuleEntry<ReactHooksGlobals>;
8905
9162
  /**
8906
9163
  * Validates the rules of hooks
9164
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/hooks
8907
9165
  */
8908
9166
  "react-hooks/hooks"?: Linter.RuleEntry<ReactHooksHooks>;
8909
9167
  /**
8910
9168
  * Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
9169
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
8911
9170
  */
8912
9171
  "react-hooks/immutability"?: Linter.RuleEntry<ReactHooksImmutability>;
8913
9172
  /**
8914
9173
  * Validates against usage of libraries which are incompatible with memoization (manual or automatic)
9174
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library
8915
9175
  */
8916
9176
  "react-hooks/incompatible-library"?: Linter.RuleEntry<ReactHooksIncompatibleLibrary>;
8917
9177
  /**
8918
9178
  * Internal invariants
9179
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/invariant
8919
9180
  */
8920
9181
  "react-hooks/invariant"?: Linter.RuleEntry<ReactHooksInvariant>;
9182
+ /**
9183
+ * Validates that useMemo() and useCallback() specify comprehensive dependencies without extraneous values. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
9184
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memo-dependencies
9185
+ */
9186
+ "react-hooks/memo-dependencies"?: Linter.RuleEntry<ReactHooksMemoDependencies>;
8921
9187
  /**
8922
9188
  * Validates that effect dependencies are memoized
9189
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memoized-effect-dependencies
8923
9190
  */
8924
9191
  "react-hooks/memoized-effect-dependencies"?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies>;
8925
9192
  /**
8926
9193
  * Validates against deriving values from state in an effect
9194
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/no-deriving-state-in-effects
8927
9195
  */
8928
9196
  "react-hooks/no-deriving-state-in-effects"?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>;
8929
9197
  /**
8930
9198
  * Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
9199
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization
8931
9200
  */
8932
9201
  "react-hooks/preserve-manual-memoization"?: Linter.RuleEntry<ReactHooksPreserveManualMemoization>;
8933
9202
  /**
8934
9203
  * Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
9204
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
8935
9205
  */
8936
9206
  "react-hooks/purity"?: Linter.RuleEntry<ReactHooksPurity>;
8937
9207
  /**
8938
9208
  * Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
9209
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
8939
9210
  */
8940
9211
  "react-hooks/refs"?: Linter.RuleEntry<ReactHooksRefs>;
8941
9212
  /**
8942
9213
  * Validates against suppression of other rules
9214
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/rule-suppression
8943
9215
  */
8944
9216
  "react-hooks/rule-suppression"?: Linter.RuleEntry<ReactHooksRuleSuppression>;
8945
9217
  /**
@@ -8948,48 +9220,50 @@ interface ReactHooksRuleOptions {
8948
9220
  */
8949
9221
  "react-hooks/rules-of-hooks"?: Linter.RuleEntry<ReactHooksRulesOfHooks>;
8950
9222
  /**
8951
- * Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance
9223
+ * Validates against calling setState synchronously in an effect. This can indicate non-local derived data, a derived event pattern, or improper external data synchronization.
9224
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
8952
9225
  */
8953
9226
  "react-hooks/set-state-in-effect"?: Linter.RuleEntry<ReactHooksSetStateInEffect>;
8954
9227
  /**
8955
9228
  * Validates against setting state during render, which can trigger additional renders and potential infinite render loops
9229
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-render
8956
9230
  */
8957
9231
  "react-hooks/set-state-in-render"?: Linter.RuleEntry<ReactHooksSetStateInRender>;
8958
9232
  /**
8959
9233
  * Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
9234
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
8960
9235
  */
8961
9236
  "react-hooks/static-components"?: Linter.RuleEntry<ReactHooksStaticComponents>;
8962
9237
  /**
8963
9238
  * Validates against invalid syntax
9239
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/syntax
8964
9240
  */
8965
9241
  "react-hooks/syntax"?: Linter.RuleEntry<ReactHooksSyntax>;
8966
9242
  /**
8967
9243
  * Unimplemented features
9244
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/todo
8968
9245
  */
8969
9246
  "react-hooks/todo"?: Linter.RuleEntry<ReactHooksTodo>;
8970
9247
  /**
8971
9248
  * Validates against syntax that we do not plan to support in React Compiler
9249
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax
8972
9250
  */
8973
9251
  "react-hooks/unsupported-syntax"?: Linter.RuleEntry<ReactHooksUnsupportedSyntax>;
8974
9252
  /**
8975
9253
  * Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
9254
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/use-memo
8976
9255
  */
8977
9256
  "react-hooks/use-memo"?: Linter.RuleEntry<ReactHooksUseMemo>;
8978
9257
  /**
8979
9258
  * Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
9259
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/void-use-memo
8980
9260
  */
8981
9261
  "react-hooks/void-use-memo"?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
8982
9262
  }
8983
9263
  /* ======= Declarations ======= */
8984
- // ----- react-hooks/automatic-effect-dependencies -----
8985
- type ReactHooksAutomaticEffectDependencies = [] | [{
8986
- [k: string]: unknown | undefined;
8987
- }]; // ----- react-hooks/capitalized-calls -----
9264
+ // ----- react-hooks/capitalized-calls -----
8988
9265
  type ReactHooksCapitalizedCalls = [] | [{
8989
9266
  [k: string]: unknown | undefined;
8990
- }]; // ----- react-hooks/component-hook-factories -----
8991
- type ReactHooksComponentHookFactories = [] | [{
8992
- [k: string]: unknown | undefined;
8993
9267
  }]; // ----- react-hooks/config -----
8994
9268
  type ReactHooksConfig = [] | [{
8995
9269
  [k: string]: unknown | undefined;
@@ -9002,12 +9276,12 @@ type ReactHooksExhaustiveDeps = [] | [{
9002
9276
  enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
9003
9277
  experimental_autoDependenciesHooks?: string[];
9004
9278
  requireExplicitEffectDeps?: boolean;
9279
+ }]; // ----- react-hooks/exhaustive-effect-dependencies -----
9280
+ type ReactHooksExhaustiveEffectDependencies = [] | [{
9281
+ [k: string]: unknown | undefined;
9005
9282
  }]; // ----- react-hooks/fbt -----
9006
9283
  type ReactHooksFbt = [] | [{
9007
9284
  [k: string]: unknown | undefined;
9008
- }]; // ----- react-hooks/fire -----
9009
- type ReactHooksFire = [] | [{
9010
- [k: string]: unknown | undefined;
9011
9285
  }]; // ----- react-hooks/gating -----
9012
9286
  type ReactHooksGating = [] | [{
9013
9287
  [k: string]: unknown | undefined;
@@ -9026,6 +9300,9 @@ type ReactHooksIncompatibleLibrary = [] | [{
9026
9300
  }]; // ----- react-hooks/invariant -----
9027
9301
  type ReactHooksInvariant = [] | [{
9028
9302
  [k: string]: unknown | undefined;
9303
+ }]; // ----- react-hooks/memo-dependencies -----
9304
+ type ReactHooksMemoDependencies = [] | [{
9305
+ [k: string]: unknown | undefined;
9029
9306
  }]; // ----- react-hooks/memoized-effect-dependencies -----
9030
9307
  type ReactHooksMemoizedEffectDependencies = [] | [{
9031
9308
  [k: string]: unknown | undefined;
@@ -10988,15 +11265,6 @@ type TomlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
10988
11265
  }]; // ----- toml/table-bracket-spacing -----
10989
11266
  type TomlTableBracketSpacing = [] | ["always" | "never"];
10990
11267
  //#endregion
10991
- //#region src/_generated/dts/tsdoc.d.ts
10992
- interface TsdocRuleOptions {
10993
- /**
10994
- * Validates that TypeScript documentation comments conform to the TSDoc standard
10995
- * @see https://tsdoc.org/pages/packages/eslint-plugin-tsdoc
10996
- */
10997
- "tsdoc/syntax"?: Linter.RuleEntry<[]>;
10998
- }
10999
- //#endregion
11000
11268
  //#region src/_generated/dts/typescript.d.ts
11001
11269
  interface TypescriptRuleOptions {
11002
11270
  /**
@@ -12637,730 +12905,750 @@ type ImportPreferDefaultExport = [] | [{
12637
12905
  interface UnicornRuleOptions {
12638
12906
  /**
12639
12907
  * Improve regexes by making them shorter, consistent, and safer.
12640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
12908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
12641
12909
  */
12642
12910
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
12643
12911
  /**
12644
12912
  * Enforce a specific parameter name in catch clauses.
12645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
12913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
12646
12914
  */
12647
12915
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
12648
12916
  /**
12649
12917
  * Enforce consistent assertion style with `node:assert`.
12650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
12918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
12651
12919
  */
12652
12920
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
12653
12921
  /**
12654
12922
  * Prefer passing `Date` directly to the constructor when cloning.
12655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
12923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
12656
12924
  */
12657
12925
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
12658
12926
  /**
12659
12927
  * Use destructured variables over properties.
12660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
12928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
12661
12929
  */
12662
12930
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
12663
12931
  /**
12664
12932
  * Prefer consistent types when spreading a ternary in an array literal.
12665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
12933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
12666
12934
  */
12667
12935
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
12668
12936
  /**
12669
12937
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
12670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
12938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
12671
12939
  */
12672
12940
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
12673
12941
  /**
12674
12942
  * Move function definitions to the highest possible scope.
12675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
12943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
12676
12944
  */
12677
12945
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
12946
+ /**
12947
+ * Enforce consistent style for escaping `${` in template literals.
12948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
12949
+ */
12950
+ "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
12678
12951
  /**
12679
12952
  * Enforce correct `Error` subclassing.
12680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
12953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
12681
12954
  */
12682
12955
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
12683
12956
  /**
12684
12957
  * Enforce no spaces between braces.
12685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
12958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
12686
12959
  */
12687
12960
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
12688
12961
  /**
12689
12962
  * Enforce passing a `message` value when creating a built-in error.
12690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
12963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
12691
12964
  */
12692
12965
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
12693
12966
  /**
12694
12967
  * Require escape sequences to use uppercase or lowercase values.
12695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
12968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
12696
12969
  */
12697
12970
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
12698
12971
  /**
12699
12972
  * Add expiration conditions to TODO comments.
12700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
12973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
12701
12974
  */
12702
12975
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
12703
12976
  /**
12704
12977
  * Enforce explicitly comparing the `length` or `size` property of a value.
12705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
12978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
12706
12979
  */
12707
12980
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
12708
12981
  /**
12709
12982
  * Enforce a case style for filenames.
12710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
12983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
12711
12984
  */
12712
12985
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
12713
12986
  /**
12714
12987
  * Enforce specific import styles per module.
12715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
12988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
12716
12989
  */
12717
12990
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
12718
12991
  /**
12719
12992
  * Prevent usage of variables from outside the scope of isolated functions.
12720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
12993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
12721
12994
  */
12722
12995
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
12723
12996
  /**
12724
12997
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
12725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
12998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
12726
12999
  */
12727
13000
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
12728
13001
  /**
12729
13002
  * Enforce specifying rules to disable in `eslint-disable` comments.
12730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
13003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
12731
13004
  */
12732
13005
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
12733
13006
  /**
12734
13007
  * Disallow recursive access to `this` within getters and setters.
12735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
13008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
12736
13009
  */
12737
13010
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
12738
13011
  /**
12739
13012
  * Disallow anonymous functions and classes as the default export.
12740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
13013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
12741
13014
  */
12742
13015
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
12743
13016
  /**
12744
13017
  * Prevent passing a function reference directly to iterator methods.
12745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
13018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
12746
13019
  */
12747
13020
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
12748
13021
  /**
12749
13022
  * Prefer `for…of` over the `forEach` method.
12750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
13023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
12751
13024
  */
12752
13025
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
12753
13026
  /**
12754
13027
  * Disallow using the `this` argument in array methods.
12755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
13028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
12756
13029
  */
12757
13030
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
12758
13031
  /**
12759
13032
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
12760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
12761
13034
  * @deprecated
12762
13035
  */
12763
13036
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
12764
13037
  /**
12765
13038
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
12766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
13039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
12767
13040
  */
12768
13041
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
12769
13042
  /**
12770
13043
  * Prefer `Array#toReversed()` over `Array#reverse()`.
12771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
13044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
12772
13045
  */
12773
13046
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
12774
13047
  /**
12775
13048
  * Prefer `Array#toSorted()` over `Array#sort()`.
12776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
13049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
12777
13050
  */
12778
13051
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
12779
13052
  /**
12780
13053
  * Disallow member access from await expression.
12781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
13054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
12782
13055
  */
12783
13056
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
12784
13057
  /**
12785
13058
  * Disallow using `await` in `Promise` method parameters.
12786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
13059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
12787
13060
  */
12788
13061
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
12789
13062
  /**
12790
13063
  * Do not use leading/trailing space between `console.log` parameters.
12791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
13064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
12792
13065
  */
12793
13066
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
12794
13067
  /**
12795
13068
  * Do not use `document.cookie` directly.
12796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
13069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
12797
13070
  */
12798
13071
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
12799
13072
  /**
12800
13073
  * Disallow empty files.
12801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
13074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
12802
13075
  */
12803
13076
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
12804
13077
  /**
12805
13078
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
12806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
13079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
12807
13080
  */
12808
13081
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
12809
13082
  /**
12810
13083
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
12811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
13084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
12812
13085
  */
12813
13086
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
12814
13087
  /**
12815
13088
  * Disallow immediate mutation after variable assignment.
12816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
13089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
12817
13090
  */
12818
13091
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
12819
13092
  /**
12820
13093
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
12821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
12822
13095
  * @deprecated
12823
13096
  */
12824
13097
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
12825
13098
  /**
12826
13099
  * Disallow `instanceof` with built-in objects
12827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
13100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
12828
13101
  */
12829
13102
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
12830
13103
  /**
12831
13104
  * Disallow invalid options in `fetch()` and `new Request()`.
12832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
13105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
12833
13106
  */
12834
13107
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
12835
13108
  /**
12836
13109
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
12837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
13110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
12838
13111
  */
12839
13112
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
12840
13113
  /**
12841
13114
  * Disallow identifiers starting with `new` or `class`.
12842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
13115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
12843
13116
  */
12844
13117
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
12845
13118
  /**
12846
13119
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
12847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
12848
13121
  * @deprecated
12849
13122
  */
12850
13123
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
12851
13124
  /**
12852
13125
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
12853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
13126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
12854
13127
  */
12855
13128
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
12856
13129
  /**
12857
13130
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
12858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
13131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
12859
13132
  */
12860
13133
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
12861
13134
  /**
12862
13135
  * Disallow named usage of default import and export.
12863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
13136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
12864
13137
  */
12865
13138
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
12866
13139
  /**
12867
13140
  * Disallow negated conditions.
12868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
13141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
12869
13142
  */
12870
13143
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
12871
13144
  /**
12872
13145
  * Disallow negated expression in equality check.
12873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
13146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
12874
13147
  */
12875
13148
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
12876
13149
  /**
12877
13150
  * Disallow nested ternary expressions.
12878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
13151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
12879
13152
  */
12880
13153
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
12881
13154
  /**
12882
13155
  * Disallow `new Array()`.
12883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
13156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
12884
13157
  */
12885
13158
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
12886
13159
  /**
12887
13160
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
12888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
13161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
12889
13162
  */
12890
13163
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
12891
13164
  /**
12892
13165
  * Disallow the use of the `null` literal.
12893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
13166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
12894
13167
  */
12895
13168
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
12896
13169
  /**
12897
13170
  * Disallow the use of objects as default parameters.
12898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
13171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
12899
13172
  */
12900
13173
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
12901
13174
  /**
12902
13175
  * Disallow `process.exit()`.
12903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
13176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
12904
13177
  */
12905
13178
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
12906
13179
  /**
12907
13180
  * Disallow passing single-element arrays to `Promise` methods.
12908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
13181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
12909
13182
  */
12910
13183
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
12911
13184
  /**
12912
13185
  * Disallow classes that only have static members.
12913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
13186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
12914
13187
  */
12915
13188
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
12916
13189
  /**
12917
13190
  * Disallow `then` property.
12918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
13191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
12919
13192
  */
12920
13193
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
12921
13194
  /**
12922
13195
  * Disallow assigning `this` to a variable.
12923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
13196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
12924
13197
  */
12925
13198
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
12926
13199
  /**
12927
13200
  * Disallow comparing `undefined` using `typeof`.
12928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
13201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
12929
13202
  */
12930
13203
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
12931
13204
  /**
12932
13205
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
12933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
13206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
12934
13207
  */
12935
13208
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
12936
13209
  /**
12937
13210
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
12938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
13211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
12939
13212
  */
12940
13213
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
12941
13214
  /**
12942
13215
  * Disallow awaiting non-promise values.
12943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
13216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
12944
13217
  */
12945
13218
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
12946
13219
  /**
12947
13220
  * Enforce the use of built-in methods instead of unnecessary polyfills.
12948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
13221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
12949
13222
  */
12950
13223
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
12951
13224
  /**
12952
13225
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
12953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
13226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
12954
13227
  */
12955
13228
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
12956
13229
  /**
12957
13230
  * Disallow unreadable array destructuring.
12958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
13231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
12959
13232
  */
12960
13233
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
12961
13234
  /**
12962
13235
  * Disallow unreadable IIFEs.
12963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
13236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
12964
13237
  */
12965
13238
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
12966
13239
  /**
12967
13240
  * Disallow unused object properties.
12968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
13241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
12969
13242
  */
12970
13243
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
12971
13244
  /**
12972
13245
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
12973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
13246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
12974
13247
  */
12975
13248
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
12976
13249
  /**
12977
13250
  * Disallow unnecessary `Error.captureStackTrace(…)`.
12978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
13251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
12979
13252
  */
12980
13253
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
12981
13254
  /**
12982
13255
  * Disallow useless fallback when spreading in object literals.
12983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
13256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
12984
13257
  */
12985
13258
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
13259
+ /**
13260
+ * Disallow unnecessary `.toArray()` on iterators.
13261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
13262
+ */
13263
+ "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
12986
13264
  /**
12987
13265
  * Disallow useless array length check.
12988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
13266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
12989
13267
  */
12990
13268
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
12991
13269
  /**
12992
13270
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
12993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
13271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
12994
13272
  */
12995
13273
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
12996
13274
  /**
12997
13275
  * Disallow unnecessary spread.
12998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
13276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
12999
13277
  */
13000
13278
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
13001
13279
  /**
13002
13280
  * Disallow useless case in switch statements.
13003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
13281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
13004
13282
  */
13005
13283
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
13006
13284
  /**
13007
13285
  * Disallow useless `undefined`.
13008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
13286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
13009
13287
  */
13010
13288
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
13011
13289
  /**
13012
13290
  * Disallow number literals with zero fractions or dangling dots.
13013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
13291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
13014
13292
  */
13015
13293
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
13016
13294
  /**
13017
13295
  * Enforce proper case for numeric literals.
13018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
13296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
13019
13297
  */
13020
13298
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
13021
13299
  /**
13022
13300
  * Enforce the style of numeric separators by correctly grouping digits.
13023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
13301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
13024
13302
  */
13025
13303
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
13026
13304
  /**
13027
13305
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
13028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
13306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
13029
13307
  */
13030
13308
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
13031
13309
  /**
13032
13310
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
13033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
13311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
13034
13312
  */
13035
13313
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
13036
13314
  /**
13037
13315
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
13038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
13316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
13039
13317
  */
13040
13318
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
13041
13319
  /**
13042
13320
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
13043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
13321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
13044
13322
  */
13045
13323
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
13046
13324
  /**
13047
13325
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
13048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
13326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
13049
13327
  */
13050
13328
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
13051
13329
  /**
13052
13330
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
13053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
13331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
13054
13332
  */
13055
13333
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
13056
13334
  /**
13057
13335
  * Prefer `.at()` method for index access and `String#charAt()`.
13058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
13336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
13059
13337
  */
13060
13338
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
13061
13339
  /**
13062
13340
  * Prefer `BigInt` literals over the constructor.
13063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
13341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
13064
13342
  */
13065
13343
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
13066
13344
  /**
13067
13345
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
13068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
13346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
13069
13347
  */
13070
13348
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
13071
13349
  /**
13072
13350
  * Prefer class field declarations over `this` assignments in constructors.
13073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
13351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
13074
13352
  */
13075
13353
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
13076
13354
  /**
13077
13355
  * Prefer using `Element#classList.toggle()` to toggle class names.
13078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
13356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
13079
13357
  */
13080
13358
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
13081
13359
  /**
13082
13360
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
13083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
13361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
13084
13362
  */
13085
13363
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
13086
13364
  /**
13087
13365
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
13088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
13366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
13089
13367
  */
13090
13368
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
13091
13369
  /**
13092
13370
  * Prefer default parameters over reassignment.
13093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
13371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
13094
13372
  */
13095
13373
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
13096
13374
  /**
13097
13375
  * Prefer `Node#append()` over `Node#appendChild()`.
13098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
13376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
13099
13377
  */
13100
13378
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
13101
13379
  /**
13102
13380
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
13103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
13381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
13104
13382
  */
13105
13383
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
13106
13384
  /**
13107
13385
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
13108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
13386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
13109
13387
  */
13110
13388
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
13111
13389
  /**
13112
13390
  * Prefer `.textContent` over `.innerText`.
13113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
13391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
13114
13392
  */
13115
13393
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
13116
13394
  /**
13117
13395
  * Prefer `EventTarget` over `EventEmitter`.
13118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
13396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
13119
13397
  */
13120
13398
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
13121
13399
  /**
13122
13400
  * Prefer `export…from` when re-exporting.
13123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
13401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
13124
13402
  */
13125
13403
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
13126
13404
  /**
13127
13405
  * Prefer `globalThis` over `window`, `self`, and `global`.
13128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
13406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
13129
13407
  */
13130
13408
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
13131
13409
  /**
13132
13410
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
13133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
13411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
13134
13412
  */
13135
13413
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
13136
13414
  /**
13137
13415
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
13138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
13416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
13139
13417
  */
13140
13418
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
13141
13419
  /**
13142
13420
  * Prefer reading a JSON file as a buffer.
13143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
13421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
13144
13422
  */
13145
13423
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
13146
13424
  /**
13147
13425
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
13148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
13426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
13149
13427
  */
13150
13428
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
13151
13429
  /**
13152
13430
  * Prefer using a logical operator over a ternary.
13153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
13431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
13154
13432
  */
13155
13433
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
13156
13434
  /**
13157
13435
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
13158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
13436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
13159
13437
  */
13160
13438
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
13161
13439
  /**
13162
13440
  * Enforce the use of `Math.trunc` instead of bitwise operators.
13163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
13441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
13164
13442
  */
13165
13443
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
13166
13444
  /**
13167
13445
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
13168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
13446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
13169
13447
  */
13170
13448
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
13171
13449
  /**
13172
13450
  * Prefer modern `Math` APIs over legacy patterns.
13173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
13451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
13174
13452
  */
13175
13453
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
13176
13454
  /**
13177
13455
  * Prefer JavaScript modules (ESM) over CommonJS.
13178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
13456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
13179
13457
  */
13180
13458
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
13181
13459
  /**
13182
13460
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
13183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
13461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
13184
13462
  */
13185
13463
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
13186
13464
  /**
13187
13465
  * Prefer negative index over `.length - index` when possible.
13188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
13466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
13189
13467
  */
13190
13468
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
13191
13469
  /**
13192
13470
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
13193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
13471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
13194
13472
  */
13195
13473
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
13196
13474
  /**
13197
13475
  * Prefer `Number` static properties over global ones.
13198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
13476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
13199
13477
  */
13200
13478
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
13201
13479
  /**
13202
13480
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
13203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
13481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
13204
13482
  */
13205
13483
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
13206
13484
  /**
13207
13485
  * Prefer omitting the `catch` binding parameter.
13208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
13486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
13209
13487
  */
13210
13488
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
13211
13489
  /**
13212
13490
  * Prefer borrowing methods from the prototype instead of the instance.
13213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
13491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
13214
13492
  */
13215
13493
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
13216
13494
  /**
13217
13495
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
13218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
13496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
13219
13497
  */
13220
13498
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
13221
13499
  /**
13222
13500
  * Prefer `Reflect.apply()` over `Function#apply()`.
13223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
13501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
13224
13502
  */
13225
13503
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
13226
13504
  /**
13227
13505
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
13228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
13506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
13229
13507
  */
13230
13508
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
13231
13509
  /**
13232
13510
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
13233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
13511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
13234
13512
  */
13235
13513
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
13236
13514
  /**
13237
13515
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
13238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
13516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
13239
13517
  */
13240
13518
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
13241
13519
  /**
13242
13520
  * Prefer using `Set#size` instead of `Array#length`.
13243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
13521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
13244
13522
  */
13245
13523
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
13524
+ /**
13525
+ * Prefer simple conditions first in logical expressions.
13526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
13527
+ */
13528
+ "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
13246
13529
  /**
13247
13530
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
13248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
13531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
13249
13532
  */
13250
13533
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
13251
13534
  /**
13252
13535
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
13253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
13536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
13254
13537
  */
13255
13538
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
13256
13539
  /**
13257
13540
  * Prefer using the `String.raw` tag to avoid escaping `\`.
13258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
13541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
13259
13542
  */
13260
13543
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
13261
13544
  /**
13262
13545
  * Prefer `String#replaceAll()` over regex searches with the global flag.
13263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
13546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
13264
13547
  */
13265
13548
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
13266
13549
  /**
13267
13550
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
13268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
13551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
13269
13552
  */
13270
13553
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
13271
13554
  /**
13272
13555
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
13273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
13556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
13274
13557
  */
13275
13558
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
13276
13559
  /**
13277
13560
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
13278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
13561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
13279
13562
  */
13280
13563
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
13281
13564
  /**
13282
13565
  * Prefer using `structuredClone` to create a deep clone.
13283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
13566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
13284
13567
  */
13285
13568
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13286
13569
  /**
13287
13570
  * Prefer `switch` over multiple `else-if`.
13288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
13571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
13289
13572
  */
13290
13573
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
13291
13574
  /**
13292
13575
  * Prefer ternary expressions over simple `if-else` statements.
13293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
13576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
13294
13577
  */
13295
13578
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
13296
13579
  /**
13297
13580
  * Prefer top-level await over top-level promises and async function calls.
13298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
13581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
13299
13582
  */
13300
13583
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
13301
13584
  /**
13302
13585
  * Enforce throwing `TypeError` in type checking conditions.
13303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
13586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
13304
13587
  */
13305
13588
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
13306
13589
  /**
13307
13590
  * Prevent abbreviations.
13308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
13591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
13309
13592
  */
13310
13593
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
13311
13594
  /**
13312
13595
  * Enforce consistent relative URL style.
13313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
13596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
13314
13597
  */
13315
13598
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13316
13599
  /**
13317
13600
  * Enforce using the separator argument with `Array#join()`.
13318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
13601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
13319
13602
  */
13320
13603
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
13321
13604
  /**
13322
13605
  * Require non-empty module attributes for imports and exports
13323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
13606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
13324
13607
  */
13325
13608
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
13326
13609
  /**
13327
13610
  * Require non-empty specifier list in import and export statements.
13328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
13611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
13329
13612
  */
13330
13613
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
13331
13614
  /**
13332
13615
  * Enforce using the digits argument with `Number#toFixed()`.
13333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13334
13617
  */
13335
13618
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
13336
13619
  /**
13337
13620
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
13338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
13621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
13339
13622
  */
13340
13623
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
13341
13624
  /**
13342
13625
  * Enforce better string content.
13343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
13626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
13344
13627
  */
13345
13628
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
13346
13629
  /**
13347
13630
  * Enforce consistent brace style for `case` clauses.
13348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
13631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
13349
13632
  */
13350
13633
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
13634
+ /**
13635
+ * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
13636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
13637
+ */
13638
+ "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
13351
13639
  /**
13352
13640
  * Fix whitespace-insensitive template indentation.
13353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
13641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
13354
13642
  */
13355
13643
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
13356
13644
  /**
13357
13645
  * Enforce consistent case for text encoding identifiers.
13358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
13646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
13359
13647
  */
13360
13648
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
13361
13649
  /**
13362
13650
  * Require `new` when creating an error.
13363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
13651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
13364
13652
  */
13365
13653
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
13366
13654
  }
@@ -13380,6 +13668,7 @@ type UnicornEscapeCase = [] | ["uppercase" | "lowercase"]; // ----- unicorn/expi
13380
13668
  type UnicornExpiringTodoComments = [] | [{
13381
13669
  terms?: string[];
13382
13670
  ignore?: unknown[];
13671
+ ignoreDates?: boolean;
13383
13672
  ignoreDatesOnPullRequests?: boolean;
13384
13673
  allowWarningComments?: boolean;
13385
13674
  date?: string;
@@ -13536,6 +13825,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
13536
13825
  interface _UnicornPreventAbbreviations_Abbreviations {
13537
13826
  [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
13538
13827
  }
13828
+ interface _UnicornPreventAbbreviations_BooleanObject {
13829
+ [k: string]: boolean | undefined;
13830
+ }
13539
13831
  interface _UnicornPreventAbbreviations_BooleanObject {
13540
13832
  [k: string]: boolean | undefined;
13541
13833
  } // ----- unicorn/relative-url-style -----
@@ -13944,6 +14236,11 @@ interface VitestRuleOptions {
13944
14236
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
13945
14237
  */
13946
14238
  "vitest/require-top-level-describe"?: Linter.RuleEntry<VitestRequireTopLevelDescribe>;
14239
+ /**
14240
+ * enforce unbound methods are called with their expected scope
14241
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
14242
+ */
14243
+ "vitest/unbound-method"?: Linter.RuleEntry<VitestUnboundMethod>;
13947
14244
  /**
13948
14245
  * enforce valid describe callback
13949
14246
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
@@ -14047,6 +14344,9 @@ type VitestRequireMockTypeParameters = [] | [{
14047
14344
  }]; // ----- vitest/require-top-level-describe -----
14048
14345
  type VitestRequireTopLevelDescribe = [] | [{
14049
14346
  maxNumberOfTopLevelDescribes?: number;
14347
+ }]; // ----- vitest/unbound-method -----
14348
+ type VitestUnboundMethod = [] | [{
14349
+ ignoreStatic?: boolean;
14050
14350
  }]; // ----- vitest/valid-expect -----
14051
14351
  type VitestValidExpect = [] | [{
14052
14352
  alwaysAwait?: boolean;
@@ -14399,7 +14699,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
14399
14699
  }];
14400
14700
  //#endregion
14401
14701
  //#region src/_generated/rule-options.d.ts
14402
- type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TsdocRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
14702
+ type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
14403
14703
  //#endregion
14404
14704
  //#region src/types.d.ts
14405
14705
  type RulesRecord = Linter.RulesRecord & RuleOptionsUnion;
@@ -14733,214 +15033,214 @@ declare const GLOB_EXCLUDE: string[];
14733
15033
  declare function importPluginReact(): Promise<{
14734
15034
  pluginReact: {
14735
15035
  deprecatedRules: Partial<{
14736
- 'boolean-prop-naming': eslint.Rule.RuleModule;
14737
- 'button-has-type': eslint.Rule.RuleModule;
14738
- 'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
14739
- 'default-props-match-prop-types': eslint.Rule.RuleModule;
14740
- 'destructuring-assignment': eslint.Rule.RuleModule;
14741
- 'display-name': eslint.Rule.RuleModule;
14742
- 'forbid-component-props': eslint.Rule.RuleModule;
14743
- 'forbid-dom-props': eslint.Rule.RuleModule;
14744
- 'forbid-elements': eslint.Rule.RuleModule;
14745
- 'forbid-foreign-prop-types': eslint.Rule.RuleModule;
14746
- 'forbid-prop-types': eslint.Rule.RuleModule;
14747
- 'forward-ref-uses-ref': eslint.Rule.RuleModule;
14748
- 'function-component-definition': eslint.Rule.RuleModule;
14749
- 'hook-use-state': eslint.Rule.RuleModule;
14750
- 'iframe-missing-sandbox': eslint.Rule.RuleModule;
14751
- 'jsx-boolean-value': eslint.Rule.RuleModule;
14752
- 'jsx-child-element-spacing': eslint.Rule.RuleModule;
14753
- 'jsx-closing-bracket-location': eslint.Rule.RuleModule;
14754
- 'jsx-closing-tag-location': eslint.Rule.RuleModule;
14755
- 'jsx-curly-spacing': eslint.Rule.RuleModule;
14756
- 'jsx-curly-newline': eslint.Rule.RuleModule;
14757
- 'jsx-equals-spacing': eslint.Rule.RuleModule;
14758
- 'jsx-filename-extension': eslint.Rule.RuleModule;
14759
- 'jsx-first-prop-new-line': eslint.Rule.RuleModule;
14760
- 'jsx-handler-names': eslint.Rule.RuleModule;
14761
- 'jsx-indent': eslint.Rule.RuleModule;
14762
- 'jsx-indent-props': eslint.Rule.RuleModule;
14763
- 'jsx-key': eslint.Rule.RuleModule;
14764
- 'jsx-max-depth': eslint.Rule.RuleModule;
14765
- 'jsx-max-props-per-line': eslint.Rule.RuleModule;
14766
- 'jsx-newline': eslint.Rule.RuleModule;
14767
- 'jsx-no-bind': eslint.Rule.RuleModule;
14768
- 'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
14769
- 'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
14770
- 'jsx-no-duplicate-props': eslint.Rule.RuleModule;
14771
- 'jsx-no-leaked-render': eslint.Rule.RuleModule;
14772
- 'jsx-no-literals': eslint.Rule.RuleModule;
14773
- 'jsx-no-script-url': eslint.Rule.RuleModule;
14774
- 'jsx-no-target-blank': eslint.Rule.RuleModule;
14775
- 'jsx-no-useless-fragment': eslint.Rule.RuleModule;
14776
- 'jsx-one-expression-per-line': eslint.Rule.RuleModule;
14777
- 'jsx-no-undef': eslint.Rule.RuleModule;
14778
- 'jsx-curly-brace-presence': eslint.Rule.RuleModule;
14779
- 'jsx-pascal-case': eslint.Rule.RuleModule;
14780
- 'jsx-fragments': eslint.Rule.RuleModule;
14781
- 'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
14782
- 'jsx-props-no-spreading': eslint.Rule.RuleModule;
14783
- 'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
14784
- 'jsx-sort-default-props': eslint.Rule.RuleModule;
14785
- 'jsx-sort-props': eslint.Rule.RuleModule;
14786
- 'jsx-space-before-closing': eslint.Rule.RuleModule;
14787
- 'jsx-tag-spacing': eslint.Rule.RuleModule;
14788
- 'jsx-uses-react': eslint.Rule.RuleModule;
14789
- 'jsx-uses-vars': eslint.Rule.RuleModule;
14790
- 'jsx-wrap-multilines': eslint.Rule.RuleModule;
14791
- 'no-invalid-html-attribute': eslint.Rule.RuleModule;
14792
- 'no-access-state-in-setstate': eslint.Rule.RuleModule;
14793
- 'no-adjacent-inline-elements': eslint.Rule.RuleModule;
14794
- 'no-array-index-key': eslint.Rule.RuleModule;
14795
- 'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
14796
- 'no-children-prop': eslint.Rule.RuleModule;
14797
- 'no-danger': eslint.Rule.RuleModule;
14798
- 'no-danger-with-children': eslint.Rule.RuleModule;
14799
- 'no-deprecated': eslint.Rule.RuleModule;
14800
- 'no-did-mount-set-state': eslint.Rule.RuleModule;
14801
- 'no-did-update-set-state': eslint.Rule.RuleModule;
14802
- 'no-direct-mutation-state': eslint.Rule.RuleModule;
14803
- 'no-find-dom-node': eslint.Rule.RuleModule;
14804
- 'no-is-mounted': eslint.Rule.RuleModule;
14805
- 'no-multi-comp': eslint.Rule.RuleModule;
14806
- 'no-namespace': eslint.Rule.RuleModule;
14807
- 'no-set-state': eslint.Rule.RuleModule;
14808
- 'no-string-refs': eslint.Rule.RuleModule;
14809
- 'no-redundant-should-component-update': eslint.Rule.RuleModule;
14810
- 'no-render-return-value': eslint.Rule.RuleModule;
14811
- 'no-this-in-sfc': eslint.Rule.RuleModule;
14812
- 'no-typos': eslint.Rule.RuleModule;
14813
- 'no-unescaped-entities': eslint.Rule.RuleModule;
14814
- 'no-unknown-property': eslint.Rule.RuleModule;
14815
- 'no-unsafe': eslint.Rule.RuleModule;
14816
- 'no-unstable-nested-components': eslint.Rule.RuleModule;
14817
- 'no-unused-class-component-methods': eslint.Rule.RuleModule;
14818
- 'no-unused-prop-types': eslint.Rule.RuleModule;
14819
- 'no-unused-state': eslint.Rule.RuleModule;
14820
- 'no-object-type-as-default-prop': eslint.Rule.RuleModule;
14821
- 'no-will-update-set-state': eslint.Rule.RuleModule;
14822
- 'prefer-es6-class': eslint.Rule.RuleModule;
14823
- 'prefer-exact-props': eslint.Rule.RuleModule;
14824
- 'prefer-read-only-props': eslint.Rule.RuleModule;
14825
- 'prefer-stateless-function': eslint.Rule.RuleModule;
14826
- 'prop-types': eslint.Rule.RuleModule;
14827
- 'react-in-jsx-scope': eslint.Rule.RuleModule;
14828
- 'require-default-props': eslint.Rule.RuleModule;
14829
- 'require-optimization': eslint.Rule.RuleModule;
14830
- 'require-render-return': eslint.Rule.RuleModule;
14831
- 'self-closing-comp': eslint.Rule.RuleModule;
14832
- 'sort-comp': eslint.Rule.RuleModule;
14833
- 'sort-default-props': eslint.Rule.RuleModule;
14834
- 'sort-prop-types': eslint.Rule.RuleModule;
14835
- 'state-in-constructor': eslint.Rule.RuleModule;
14836
- 'static-property-placement': eslint.Rule.RuleModule;
14837
- 'style-prop-object': eslint.Rule.RuleModule;
14838
- 'void-dom-elements-no-children': eslint.Rule.RuleModule;
15036
+ 'boolean-prop-naming': _$eslint.Rule.RuleModule;
15037
+ 'button-has-type': _$eslint.Rule.RuleModule;
15038
+ 'checked-requires-onchange-or-readonly': _$eslint.Rule.RuleModule;
15039
+ 'default-props-match-prop-types': _$eslint.Rule.RuleModule;
15040
+ 'destructuring-assignment': _$eslint.Rule.RuleModule;
15041
+ 'display-name': _$eslint.Rule.RuleModule;
15042
+ 'forbid-component-props': _$eslint.Rule.RuleModule;
15043
+ 'forbid-dom-props': _$eslint.Rule.RuleModule;
15044
+ 'forbid-elements': _$eslint.Rule.RuleModule;
15045
+ 'forbid-foreign-prop-types': _$eslint.Rule.RuleModule;
15046
+ 'forbid-prop-types': _$eslint.Rule.RuleModule;
15047
+ 'forward-ref-uses-ref': _$eslint.Rule.RuleModule;
15048
+ 'function-component-definition': _$eslint.Rule.RuleModule;
15049
+ 'hook-use-state': _$eslint.Rule.RuleModule;
15050
+ 'iframe-missing-sandbox': _$eslint.Rule.RuleModule;
15051
+ 'jsx-boolean-value': _$eslint.Rule.RuleModule;
15052
+ 'jsx-child-element-spacing': _$eslint.Rule.RuleModule;
15053
+ 'jsx-closing-bracket-location': _$eslint.Rule.RuleModule;
15054
+ 'jsx-closing-tag-location': _$eslint.Rule.RuleModule;
15055
+ 'jsx-curly-spacing': _$eslint.Rule.RuleModule;
15056
+ 'jsx-curly-newline': _$eslint.Rule.RuleModule;
15057
+ 'jsx-equals-spacing': _$eslint.Rule.RuleModule;
15058
+ 'jsx-filename-extension': _$eslint.Rule.RuleModule;
15059
+ 'jsx-first-prop-new-line': _$eslint.Rule.RuleModule;
15060
+ 'jsx-handler-names': _$eslint.Rule.RuleModule;
15061
+ 'jsx-indent': _$eslint.Rule.RuleModule;
15062
+ 'jsx-indent-props': _$eslint.Rule.RuleModule;
15063
+ 'jsx-key': _$eslint.Rule.RuleModule;
15064
+ 'jsx-max-depth': _$eslint.Rule.RuleModule;
15065
+ 'jsx-max-props-per-line': _$eslint.Rule.RuleModule;
15066
+ 'jsx-newline': _$eslint.Rule.RuleModule;
15067
+ 'jsx-no-bind': _$eslint.Rule.RuleModule;
15068
+ 'jsx-no-comment-textnodes': _$eslint.Rule.RuleModule;
15069
+ 'jsx-no-constructed-context-values': _$eslint.Rule.RuleModule;
15070
+ 'jsx-no-duplicate-props': _$eslint.Rule.RuleModule;
15071
+ 'jsx-no-leaked-render': _$eslint.Rule.RuleModule;
15072
+ 'jsx-no-literals': _$eslint.Rule.RuleModule;
15073
+ 'jsx-no-script-url': _$eslint.Rule.RuleModule;
15074
+ 'jsx-no-target-blank': _$eslint.Rule.RuleModule;
15075
+ 'jsx-no-useless-fragment': _$eslint.Rule.RuleModule;
15076
+ 'jsx-one-expression-per-line': _$eslint.Rule.RuleModule;
15077
+ 'jsx-no-undef': _$eslint.Rule.RuleModule;
15078
+ 'jsx-curly-brace-presence': _$eslint.Rule.RuleModule;
15079
+ 'jsx-pascal-case': _$eslint.Rule.RuleModule;
15080
+ 'jsx-fragments': _$eslint.Rule.RuleModule;
15081
+ 'jsx-props-no-multi-spaces': _$eslint.Rule.RuleModule;
15082
+ 'jsx-props-no-spreading': _$eslint.Rule.RuleModule;
15083
+ 'jsx-props-no-spread-multi': _$eslint.Rule.RuleModule;
15084
+ 'jsx-sort-default-props': _$eslint.Rule.RuleModule;
15085
+ 'jsx-sort-props': _$eslint.Rule.RuleModule;
15086
+ 'jsx-space-before-closing': _$eslint.Rule.RuleModule;
15087
+ 'jsx-tag-spacing': _$eslint.Rule.RuleModule;
15088
+ 'jsx-uses-react': _$eslint.Rule.RuleModule;
15089
+ 'jsx-uses-vars': _$eslint.Rule.RuleModule;
15090
+ 'jsx-wrap-multilines': _$eslint.Rule.RuleModule;
15091
+ 'no-invalid-html-attribute': _$eslint.Rule.RuleModule;
15092
+ 'no-access-state-in-setstate': _$eslint.Rule.RuleModule;
15093
+ 'no-adjacent-inline-elements': _$eslint.Rule.RuleModule;
15094
+ 'no-array-index-key': _$eslint.Rule.RuleModule;
15095
+ 'no-arrow-function-lifecycle': _$eslint.Rule.RuleModule;
15096
+ 'no-children-prop': _$eslint.Rule.RuleModule;
15097
+ 'no-danger': _$eslint.Rule.RuleModule;
15098
+ 'no-danger-with-children': _$eslint.Rule.RuleModule;
15099
+ 'no-deprecated': _$eslint.Rule.RuleModule;
15100
+ 'no-did-mount-set-state': _$eslint.Rule.RuleModule;
15101
+ 'no-did-update-set-state': _$eslint.Rule.RuleModule;
15102
+ 'no-direct-mutation-state': _$eslint.Rule.RuleModule;
15103
+ 'no-find-dom-node': _$eslint.Rule.RuleModule;
15104
+ 'no-is-mounted': _$eslint.Rule.RuleModule;
15105
+ 'no-multi-comp': _$eslint.Rule.RuleModule;
15106
+ 'no-namespace': _$eslint.Rule.RuleModule;
15107
+ 'no-set-state': _$eslint.Rule.RuleModule;
15108
+ 'no-string-refs': _$eslint.Rule.RuleModule;
15109
+ 'no-redundant-should-component-update': _$eslint.Rule.RuleModule;
15110
+ 'no-render-return-value': _$eslint.Rule.RuleModule;
15111
+ 'no-this-in-sfc': _$eslint.Rule.RuleModule;
15112
+ 'no-typos': _$eslint.Rule.RuleModule;
15113
+ 'no-unescaped-entities': _$eslint.Rule.RuleModule;
15114
+ 'no-unknown-property': _$eslint.Rule.RuleModule;
15115
+ 'no-unsafe': _$eslint.Rule.RuleModule;
15116
+ 'no-unstable-nested-components': _$eslint.Rule.RuleModule;
15117
+ 'no-unused-class-component-methods': _$eslint.Rule.RuleModule;
15118
+ 'no-unused-prop-types': _$eslint.Rule.RuleModule;
15119
+ 'no-unused-state': _$eslint.Rule.RuleModule;
15120
+ 'no-object-type-as-default-prop': _$eslint.Rule.RuleModule;
15121
+ 'no-will-update-set-state': _$eslint.Rule.RuleModule;
15122
+ 'prefer-es6-class': _$eslint.Rule.RuleModule;
15123
+ 'prefer-exact-props': _$eslint.Rule.RuleModule;
15124
+ 'prefer-read-only-props': _$eslint.Rule.RuleModule;
15125
+ 'prefer-stateless-function': _$eslint.Rule.RuleModule;
15126
+ 'prop-types': _$eslint.Rule.RuleModule;
15127
+ 'react-in-jsx-scope': _$eslint.Rule.RuleModule;
15128
+ 'require-default-props': _$eslint.Rule.RuleModule;
15129
+ 'require-optimization': _$eslint.Rule.RuleModule;
15130
+ 'require-render-return': _$eslint.Rule.RuleModule;
15131
+ 'self-closing-comp': _$eslint.Rule.RuleModule;
15132
+ 'sort-comp': _$eslint.Rule.RuleModule;
15133
+ 'sort-default-props': _$eslint.Rule.RuleModule;
15134
+ 'sort-prop-types': _$eslint.Rule.RuleModule;
15135
+ 'state-in-constructor': _$eslint.Rule.RuleModule;
15136
+ 'static-property-placement': _$eslint.Rule.RuleModule;
15137
+ 'style-prop-object': _$eslint.Rule.RuleModule;
15138
+ 'void-dom-elements-no-children': _$eslint.Rule.RuleModule;
14839
15139
  }>;
14840
15140
  rules: {
14841
- 'boolean-prop-naming': eslint.Rule.RuleModule;
14842
- 'button-has-type': eslint.Rule.RuleModule;
14843
- 'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
14844
- 'default-props-match-prop-types': eslint.Rule.RuleModule;
14845
- 'destructuring-assignment': eslint.Rule.RuleModule;
14846
- 'display-name': eslint.Rule.RuleModule;
14847
- 'forbid-component-props': eslint.Rule.RuleModule;
14848
- 'forbid-dom-props': eslint.Rule.RuleModule;
14849
- 'forbid-elements': eslint.Rule.RuleModule;
14850
- 'forbid-foreign-prop-types': eslint.Rule.RuleModule;
14851
- 'forbid-prop-types': eslint.Rule.RuleModule;
14852
- 'forward-ref-uses-ref': eslint.Rule.RuleModule;
14853
- 'function-component-definition': eslint.Rule.RuleModule;
14854
- 'hook-use-state': eslint.Rule.RuleModule;
14855
- 'iframe-missing-sandbox': eslint.Rule.RuleModule;
14856
- 'jsx-boolean-value': eslint.Rule.RuleModule;
14857
- 'jsx-child-element-spacing': eslint.Rule.RuleModule;
14858
- 'jsx-closing-bracket-location': eslint.Rule.RuleModule;
14859
- 'jsx-closing-tag-location': eslint.Rule.RuleModule;
14860
- 'jsx-curly-spacing': eslint.Rule.RuleModule;
14861
- 'jsx-curly-newline': eslint.Rule.RuleModule;
14862
- 'jsx-equals-spacing': eslint.Rule.RuleModule;
14863
- 'jsx-filename-extension': eslint.Rule.RuleModule;
14864
- 'jsx-first-prop-new-line': eslint.Rule.RuleModule;
14865
- 'jsx-handler-names': eslint.Rule.RuleModule;
14866
- 'jsx-indent': eslint.Rule.RuleModule;
14867
- 'jsx-indent-props': eslint.Rule.RuleModule;
14868
- 'jsx-key': eslint.Rule.RuleModule;
14869
- 'jsx-max-depth': eslint.Rule.RuleModule;
14870
- 'jsx-max-props-per-line': eslint.Rule.RuleModule;
14871
- 'jsx-newline': eslint.Rule.RuleModule;
14872
- 'jsx-no-bind': eslint.Rule.RuleModule;
14873
- 'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
14874
- 'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
14875
- 'jsx-no-duplicate-props': eslint.Rule.RuleModule;
14876
- 'jsx-no-leaked-render': eslint.Rule.RuleModule;
14877
- 'jsx-no-literals': eslint.Rule.RuleModule;
14878
- 'jsx-no-script-url': eslint.Rule.RuleModule;
14879
- 'jsx-no-target-blank': eslint.Rule.RuleModule;
14880
- 'jsx-no-useless-fragment': eslint.Rule.RuleModule;
14881
- 'jsx-one-expression-per-line': eslint.Rule.RuleModule;
14882
- 'jsx-no-undef': eslint.Rule.RuleModule;
14883
- 'jsx-curly-brace-presence': eslint.Rule.RuleModule;
14884
- 'jsx-pascal-case': eslint.Rule.RuleModule;
14885
- 'jsx-fragments': eslint.Rule.RuleModule;
14886
- 'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
14887
- 'jsx-props-no-spreading': eslint.Rule.RuleModule;
14888
- 'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
14889
- 'jsx-sort-default-props': eslint.Rule.RuleModule;
14890
- 'jsx-sort-props': eslint.Rule.RuleModule;
14891
- 'jsx-space-before-closing': eslint.Rule.RuleModule;
14892
- 'jsx-tag-spacing': eslint.Rule.RuleModule;
14893
- 'jsx-uses-react': eslint.Rule.RuleModule;
14894
- 'jsx-uses-vars': eslint.Rule.RuleModule;
14895
- 'jsx-wrap-multilines': eslint.Rule.RuleModule;
14896
- 'no-invalid-html-attribute': eslint.Rule.RuleModule;
14897
- 'no-access-state-in-setstate': eslint.Rule.RuleModule;
14898
- 'no-adjacent-inline-elements': eslint.Rule.RuleModule;
14899
- 'no-array-index-key': eslint.Rule.RuleModule;
14900
- 'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
14901
- 'no-children-prop': eslint.Rule.RuleModule;
14902
- 'no-danger': eslint.Rule.RuleModule;
14903
- 'no-danger-with-children': eslint.Rule.RuleModule;
14904
- 'no-deprecated': eslint.Rule.RuleModule;
14905
- 'no-did-mount-set-state': eslint.Rule.RuleModule;
14906
- 'no-did-update-set-state': eslint.Rule.RuleModule;
14907
- 'no-direct-mutation-state': eslint.Rule.RuleModule;
14908
- 'no-find-dom-node': eslint.Rule.RuleModule;
14909
- 'no-is-mounted': eslint.Rule.RuleModule;
14910
- 'no-multi-comp': eslint.Rule.RuleModule;
14911
- 'no-namespace': eslint.Rule.RuleModule;
14912
- 'no-set-state': eslint.Rule.RuleModule;
14913
- 'no-string-refs': eslint.Rule.RuleModule;
14914
- 'no-redundant-should-component-update': eslint.Rule.RuleModule;
14915
- 'no-render-return-value': eslint.Rule.RuleModule;
14916
- 'no-this-in-sfc': eslint.Rule.RuleModule;
14917
- 'no-typos': eslint.Rule.RuleModule;
14918
- 'no-unescaped-entities': eslint.Rule.RuleModule;
14919
- 'no-unknown-property': eslint.Rule.RuleModule;
14920
- 'no-unsafe': eslint.Rule.RuleModule;
14921
- 'no-unstable-nested-components': eslint.Rule.RuleModule;
14922
- 'no-unused-class-component-methods': eslint.Rule.RuleModule;
14923
- 'no-unused-prop-types': eslint.Rule.RuleModule;
14924
- 'no-unused-state': eslint.Rule.RuleModule;
14925
- 'no-object-type-as-default-prop': eslint.Rule.RuleModule;
14926
- 'no-will-update-set-state': eslint.Rule.RuleModule;
14927
- 'prefer-es6-class': eslint.Rule.RuleModule;
14928
- 'prefer-exact-props': eslint.Rule.RuleModule;
14929
- 'prefer-read-only-props': eslint.Rule.RuleModule;
14930
- 'prefer-stateless-function': eslint.Rule.RuleModule;
14931
- 'prop-types': eslint.Rule.RuleModule;
14932
- 'react-in-jsx-scope': eslint.Rule.RuleModule;
14933
- 'require-default-props': eslint.Rule.RuleModule;
14934
- 'require-optimization': eslint.Rule.RuleModule;
14935
- 'require-render-return': eslint.Rule.RuleModule;
14936
- 'self-closing-comp': eslint.Rule.RuleModule;
14937
- 'sort-comp': eslint.Rule.RuleModule;
14938
- 'sort-default-props': eslint.Rule.RuleModule;
14939
- 'sort-prop-types': eslint.Rule.RuleModule;
14940
- 'state-in-constructor': eslint.Rule.RuleModule;
14941
- 'static-property-placement': eslint.Rule.RuleModule;
14942
- 'style-prop-object': eslint.Rule.RuleModule;
14943
- 'void-dom-elements-no-children': eslint.Rule.RuleModule;
15141
+ 'boolean-prop-naming': _$eslint.Rule.RuleModule;
15142
+ 'button-has-type': _$eslint.Rule.RuleModule;
15143
+ 'checked-requires-onchange-or-readonly': _$eslint.Rule.RuleModule;
15144
+ 'default-props-match-prop-types': _$eslint.Rule.RuleModule;
15145
+ 'destructuring-assignment': _$eslint.Rule.RuleModule;
15146
+ 'display-name': _$eslint.Rule.RuleModule;
15147
+ 'forbid-component-props': _$eslint.Rule.RuleModule;
15148
+ 'forbid-dom-props': _$eslint.Rule.RuleModule;
15149
+ 'forbid-elements': _$eslint.Rule.RuleModule;
15150
+ 'forbid-foreign-prop-types': _$eslint.Rule.RuleModule;
15151
+ 'forbid-prop-types': _$eslint.Rule.RuleModule;
15152
+ 'forward-ref-uses-ref': _$eslint.Rule.RuleModule;
15153
+ 'function-component-definition': _$eslint.Rule.RuleModule;
15154
+ 'hook-use-state': _$eslint.Rule.RuleModule;
15155
+ 'iframe-missing-sandbox': _$eslint.Rule.RuleModule;
15156
+ 'jsx-boolean-value': _$eslint.Rule.RuleModule;
15157
+ 'jsx-child-element-spacing': _$eslint.Rule.RuleModule;
15158
+ 'jsx-closing-bracket-location': _$eslint.Rule.RuleModule;
15159
+ 'jsx-closing-tag-location': _$eslint.Rule.RuleModule;
15160
+ 'jsx-curly-spacing': _$eslint.Rule.RuleModule;
15161
+ 'jsx-curly-newline': _$eslint.Rule.RuleModule;
15162
+ 'jsx-equals-spacing': _$eslint.Rule.RuleModule;
15163
+ 'jsx-filename-extension': _$eslint.Rule.RuleModule;
15164
+ 'jsx-first-prop-new-line': _$eslint.Rule.RuleModule;
15165
+ 'jsx-handler-names': _$eslint.Rule.RuleModule;
15166
+ 'jsx-indent': _$eslint.Rule.RuleModule;
15167
+ 'jsx-indent-props': _$eslint.Rule.RuleModule;
15168
+ 'jsx-key': _$eslint.Rule.RuleModule;
15169
+ 'jsx-max-depth': _$eslint.Rule.RuleModule;
15170
+ 'jsx-max-props-per-line': _$eslint.Rule.RuleModule;
15171
+ 'jsx-newline': _$eslint.Rule.RuleModule;
15172
+ 'jsx-no-bind': _$eslint.Rule.RuleModule;
15173
+ 'jsx-no-comment-textnodes': _$eslint.Rule.RuleModule;
15174
+ 'jsx-no-constructed-context-values': _$eslint.Rule.RuleModule;
15175
+ 'jsx-no-duplicate-props': _$eslint.Rule.RuleModule;
15176
+ 'jsx-no-leaked-render': _$eslint.Rule.RuleModule;
15177
+ 'jsx-no-literals': _$eslint.Rule.RuleModule;
15178
+ 'jsx-no-script-url': _$eslint.Rule.RuleModule;
15179
+ 'jsx-no-target-blank': _$eslint.Rule.RuleModule;
15180
+ 'jsx-no-useless-fragment': _$eslint.Rule.RuleModule;
15181
+ 'jsx-one-expression-per-line': _$eslint.Rule.RuleModule;
15182
+ 'jsx-no-undef': _$eslint.Rule.RuleModule;
15183
+ 'jsx-curly-brace-presence': _$eslint.Rule.RuleModule;
15184
+ 'jsx-pascal-case': _$eslint.Rule.RuleModule;
15185
+ 'jsx-fragments': _$eslint.Rule.RuleModule;
15186
+ 'jsx-props-no-multi-spaces': _$eslint.Rule.RuleModule;
15187
+ 'jsx-props-no-spreading': _$eslint.Rule.RuleModule;
15188
+ 'jsx-props-no-spread-multi': _$eslint.Rule.RuleModule;
15189
+ 'jsx-sort-default-props': _$eslint.Rule.RuleModule;
15190
+ 'jsx-sort-props': _$eslint.Rule.RuleModule;
15191
+ 'jsx-space-before-closing': _$eslint.Rule.RuleModule;
15192
+ 'jsx-tag-spacing': _$eslint.Rule.RuleModule;
15193
+ 'jsx-uses-react': _$eslint.Rule.RuleModule;
15194
+ 'jsx-uses-vars': _$eslint.Rule.RuleModule;
15195
+ 'jsx-wrap-multilines': _$eslint.Rule.RuleModule;
15196
+ 'no-invalid-html-attribute': _$eslint.Rule.RuleModule;
15197
+ 'no-access-state-in-setstate': _$eslint.Rule.RuleModule;
15198
+ 'no-adjacent-inline-elements': _$eslint.Rule.RuleModule;
15199
+ 'no-array-index-key': _$eslint.Rule.RuleModule;
15200
+ 'no-arrow-function-lifecycle': _$eslint.Rule.RuleModule;
15201
+ 'no-children-prop': _$eslint.Rule.RuleModule;
15202
+ 'no-danger': _$eslint.Rule.RuleModule;
15203
+ 'no-danger-with-children': _$eslint.Rule.RuleModule;
15204
+ 'no-deprecated': _$eslint.Rule.RuleModule;
15205
+ 'no-did-mount-set-state': _$eslint.Rule.RuleModule;
15206
+ 'no-did-update-set-state': _$eslint.Rule.RuleModule;
15207
+ 'no-direct-mutation-state': _$eslint.Rule.RuleModule;
15208
+ 'no-find-dom-node': _$eslint.Rule.RuleModule;
15209
+ 'no-is-mounted': _$eslint.Rule.RuleModule;
15210
+ 'no-multi-comp': _$eslint.Rule.RuleModule;
15211
+ 'no-namespace': _$eslint.Rule.RuleModule;
15212
+ 'no-set-state': _$eslint.Rule.RuleModule;
15213
+ 'no-string-refs': _$eslint.Rule.RuleModule;
15214
+ 'no-redundant-should-component-update': _$eslint.Rule.RuleModule;
15215
+ 'no-render-return-value': _$eslint.Rule.RuleModule;
15216
+ 'no-this-in-sfc': _$eslint.Rule.RuleModule;
15217
+ 'no-typos': _$eslint.Rule.RuleModule;
15218
+ 'no-unescaped-entities': _$eslint.Rule.RuleModule;
15219
+ 'no-unknown-property': _$eslint.Rule.RuleModule;
15220
+ 'no-unsafe': _$eslint.Rule.RuleModule;
15221
+ 'no-unstable-nested-components': _$eslint.Rule.RuleModule;
15222
+ 'no-unused-class-component-methods': _$eslint.Rule.RuleModule;
15223
+ 'no-unused-prop-types': _$eslint.Rule.RuleModule;
15224
+ 'no-unused-state': _$eslint.Rule.RuleModule;
15225
+ 'no-object-type-as-default-prop': _$eslint.Rule.RuleModule;
15226
+ 'no-will-update-set-state': _$eslint.Rule.RuleModule;
15227
+ 'prefer-es6-class': _$eslint.Rule.RuleModule;
15228
+ 'prefer-exact-props': _$eslint.Rule.RuleModule;
15229
+ 'prefer-read-only-props': _$eslint.Rule.RuleModule;
15230
+ 'prefer-stateless-function': _$eslint.Rule.RuleModule;
15231
+ 'prop-types': _$eslint.Rule.RuleModule;
15232
+ 'react-in-jsx-scope': _$eslint.Rule.RuleModule;
15233
+ 'require-default-props': _$eslint.Rule.RuleModule;
15234
+ 'require-optimization': _$eslint.Rule.RuleModule;
15235
+ 'require-render-return': _$eslint.Rule.RuleModule;
15236
+ 'self-closing-comp': _$eslint.Rule.RuleModule;
15237
+ 'sort-comp': _$eslint.Rule.RuleModule;
15238
+ 'sort-default-props': _$eslint.Rule.RuleModule;
15239
+ 'sort-prop-types': _$eslint.Rule.RuleModule;
15240
+ 'state-in-constructor': _$eslint.Rule.RuleModule;
15241
+ 'static-property-placement': _$eslint.Rule.RuleModule;
15242
+ 'style-prop-object': _$eslint.Rule.RuleModule;
15243
+ 'void-dom-elements-no-children': _$eslint.Rule.RuleModule;
14944
15244
  };
14945
15245
  configs: {
14946
15246
  recommended: {
@@ -14997,9 +15297,9 @@ declare function importPluginReact(): Promise<{
14997
15297
  "react/jsx-uses-react": 0;
14998
15298
  };
14999
15299
  };
15000
- flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
15300
+ flat: Record<string, _$eslint_plugin_react0.ReactFlatConfig>;
15001
15301
  } & {
15002
- flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
15302
+ flat: Record<string, _$eslint_plugin_react0.ReactFlatConfig>;
15003
15303
  };
15004
15304
  };
15005
15305
  }>;
@@ -15052,19 +15352,12 @@ declare function importPluginReactRefresh(): Promise<{
15052
15352
  };
15053
15353
  }>;
15054
15354
  declare function importPluginMarkdown(): Promise<{
15055
- pluginMarkdown: typeof _eslint_markdown0.default;
15056
- }>;
15057
- declare function importPluginTsdoc(): Promise<{
15058
- pluginTsdoc: {
15059
- rules: {
15060
- [x: string]: Rule.RuleModule;
15061
- };
15062
- };
15355
+ pluginMarkdown: typeof _$_eslint_markdown0.default;
15063
15356
  }>;
15064
15357
  declare function importPluginStylistic(): Promise<{
15065
15358
  pluginStylistic: {
15066
- rules: _stylistic_eslint_plugin0.Rules;
15067
- configs: eslint.ESLint.Plugin["configs"] & _stylistic_eslint_plugin0.Configs;
15359
+ rules: _$_stylistic_eslint_plugin0.Rules;
15360
+ configs: _$eslint.ESLint.Plugin["configs"] & _$_stylistic_eslint_plugin0.Configs;
15068
15361
  };
15069
15362
  }>;
15070
15363
  //#endregion
@@ -15126,4 +15419,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
15126
15419
  declare function error2warn<T extends Config>(configs: T[]): T[];
15127
15420
  declare function warn2error<T extends Config>(configs: T[]): T[];
15128
15421
  //#endregion
15129
- export { Awaitable, Config, EslintConfigFn, type JavascriptRuleOptions, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, RulesRecord, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, TypescriptConfigRules, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
15422
+ export { Awaitable, Config, EslintConfigFn, type JavascriptRuleOptions, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, RulesRecord, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, TypescriptConfigRules, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };