@w5s/eslint-config 6.0.0 → 7.1.1

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
@@ -2,14 +2,13 @@ import { ESLintIgnoreOptions } from "@w5s/eslint-config-ignore";
2
2
  import eslint, { Linter } from "eslint";
3
3
  import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
4
4
  import { ESLintRules } from "eslint/rules";
5
- //#endregion
6
5
  //#region src/typegen/e18e.d.ts
7
6
  declare module 'eslint' {
8
7
  namespace Linter {
9
- interface RulesRecord extends RuleOptions$16 {}
8
+ interface RulesRecord extends RuleOptions$18 {}
10
9
  }
11
10
  }
12
- interface RuleOptions$16 {
11
+ interface RuleOptions$18 {
13
12
  /**
14
13
  * Disallow dependencies in favor of more performant or secure alternatives
15
14
  */
@@ -202,6 +201,24 @@ export interface PluginOptionsBase<Rules> {
202
201
  stylistic?: boolean | StylisticParameters;
203
202
  }
204
203
  //#endregion
204
+ //#region src/internal/withSchema.d.ts
205
+ interface WithSchemaOptions {
206
+ /**
207
+ * Enable the schema validation
208
+ */
209
+ enabled?: boolean;
210
+ }
211
+ //#endregion
212
+ //#region src/type/PluginOptionsSchema.d.ts
213
+ export interface PluginOptionsSchema {
214
+ /**
215
+ * Enable or configure the JSON schema validator plugin.
216
+ *
217
+ * @default true
218
+ */
219
+ schema?: boolean | WithSchemaOptions;
220
+ }
221
+ //#endregion
205
222
  //#region src/type/RestrictedGlobals.d.ts
206
223
  /**
207
224
  * This file contains the type definition for restricted globals used in the ESLint configuration.
@@ -249,16 +266,16 @@ export declare namespace e18e {
249
266
  */
250
267
  performanceImprovements?: boolean;
251
268
  }
252
- type Rules = RuleOptions$16;
269
+ type Rules = RuleOptions$18;
253
270
  }
254
271
  //#endregion
255
272
  //#region src/typegen/jsonc.d.ts
256
273
  declare module 'eslint' {
257
274
  namespace Linter {
258
- interface RulesRecord extends RuleOptions$15 {}
275
+ interface RulesRecord extends RuleOptions$17 {}
259
276
  }
260
277
  }
261
- interface RuleOptions$15 {
278
+ interface RuleOptions$17 {
262
279
  /**
263
280
  * enforce line breaks after opening and before closing array brackets
264
281
  * @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-newline.html
@@ -1145,16 +1162,16 @@ export declare namespace es {
1145
1162
  */
1146
1163
  restrictedSyntax?: ((currentSyntax: Readonly<RestrictedSyntax>) => RestrictedSyntax) | RestrictedSyntax | undefined;
1147
1164
  }
1148
- type Rules = RuleOptions$15;
1165
+ type Rules = RuleOptions$17;
1149
1166
  }
1150
1167
  //#endregion
1151
1168
  //#region src/typegen/github-actions.d.ts
1152
1169
  declare module 'eslint' {
1153
1170
  namespace Linter {
1154
- interface RulesRecord extends RuleOptions$14 {}
1171
+ interface RulesRecord extends RuleOptions$16 {}
1155
1172
  }
1156
1173
  }
1157
- interface RuleOptions$14 {
1174
+ interface RuleOptions$16 {
1158
1175
  /**
1159
1176
  * enforce a consistent casing convention for workflow `name` values.
1160
1177
  * @see https://nick2bad4u.github.io/eslint-plugin-github-actions-2/docs/rules/action-name-casing
@@ -1816,7 +1833,7 @@ type GithubActionsValidTimeoutMinutes = [] | [(number | {
1816
1833
  export declare function githubActions(options?: githubActions.Options): Promise<[Config, Config]>;
1817
1834
  export declare namespace githubActions {
1818
1835
  interface Options extends PluginOptionsBase<Rules> {}
1819
- type Rules = RuleOptions$14;
1836
+ type Rules = RuleOptions$16;
1820
1837
  }
1821
1838
  //#endregion
1822
1839
  //#region src/config/ignores.d.ts
@@ -1828,10 +1845,10 @@ export declare namespace ignores {
1828
1845
  //#region src/typegen/import.d.ts
1829
1846
  declare module 'eslint' {
1830
1847
  namespace Linter {
1831
- interface RulesRecord extends RuleOptions$13 {}
1848
+ interface RulesRecord extends RuleOptions$15 {}
1832
1849
  }
1833
1850
  }
1834
- interface RuleOptions$13 {
1851
+ interface RuleOptions$15 {
1835
1852
  /**
1836
1853
  * Enforce or ban the use of inline type-only markers for named imports.
1837
1854
  * @see https://github.com/import-js/eslint-plugin-import/blob/v2.32.0/docs/rules/consistent-type-specifier-style.md
@@ -2320,16 +2337,16 @@ export declare namespace imports {
2320
2337
  }
2321
2338
  export declare namespace imports {
2322
2339
  interface Options extends PluginOptionsBase<Rules> {}
2323
- type Rules = RuleOptions$13;
2340
+ type Rules = RuleOptions$15;
2324
2341
  }
2325
2342
  //#endregion
2326
2343
  //#region src/typegen/jsdoc.d.ts
2327
2344
  declare module 'eslint' {
2328
2345
  namespace Linter {
2329
- interface RulesRecord extends RuleOptions$12 {}
2346
+ interface RulesRecord extends RuleOptions$14 {}
2330
2347
  }
2331
2348
  }
2332
- interface RuleOptions$12 {
2349
+ interface RuleOptions$14 {
2333
2350
  /**
2334
2351
  * Checks that `@access` tags have a valid value.
2335
2352
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-access.md#repos-sticky-header
@@ -2369,7 +2386,7 @@ interface RuleOptions$12 {
2369
2386
  * Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
2370
2387
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
2371
2388
  */
2372
- 'jsdoc/check-syntax'?: Linter.RuleEntry<[]>;
2389
+ 'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
2373
2390
  /**
2374
2391
  * Reports invalid block tag names.
2375
2392
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
@@ -2723,6 +2740,7 @@ interface RuleOptions$12 {
2723
2740
  /* ======= Declarations ======= */
2724
2741
  // ----- jsdoc/check-alignment -----
2725
2742
  type JsdocCheckAlignment = [] | [{
2743
+ ignoreEmptyLines?: boolean;
2726
2744
  innerIndent?: number;
2727
2745
  }];
2728
2746
  // ----- jsdoc/check-examples -----
@@ -2750,6 +2768,7 @@ type JsdocCheckExamples = [] | [{
2750
2768
  // ----- jsdoc/check-indentation -----
2751
2769
  type JsdocCheckIndentation = [] | [{
2752
2770
  allowIndentedSections?: boolean;
2771
+ allowNoSpaceAfterAsterisk?: boolean;
2753
2772
  excludeTags?: string[];
2754
2773
  }];
2755
2774
  // ----- jsdoc/check-line-alignment -----
@@ -2785,6 +2804,10 @@ type JsdocCheckParamNames = [] | [{
2785
2804
  type JsdocCheckPropertyNames = [] | [{
2786
2805
  enableFixer?: boolean;
2787
2806
  }];
2807
+ // ----- jsdoc/check-syntax -----
2808
+ type JsdocCheckSyntax = [] | [{
2809
+ enableFixer?: boolean;
2810
+ }];
2788
2811
  // ----- jsdoc/check-tag-names -----
2789
2812
  type JsdocCheckTagNames = [] | [{
2790
2813
  definedTags?: string[];
@@ -3169,7 +3192,6 @@ type JsdocRequireTags = [] | [{
3169
3192
  tags?: (string | {
3170
3193
  context?: string;
3171
3194
  tag?: string;
3172
- [k: string]: unknown | undefined;
3173
3195
  })[];
3174
3196
  }];
3175
3197
  // ----- jsdoc/require-template -----
@@ -3310,23 +3332,53 @@ type JsdocValidTypes = [] | [{
3310
3332
  export declare function jsdoc(options?: jsdoc.Options): Promise<ReadonlyArray<Config>>;
3311
3333
  export declare namespace jsdoc {
3312
3334
  interface Options extends PluginOptionsBase<Rules> {}
3313
- type Rules = RuleOptions$12;
3335
+ type Rules = RuleOptions$14;
3314
3336
  }
3315
3337
  //#endregion
3338
+ //#region src/typegen/schema.d.ts
3339
+ declare module 'eslint' {
3340
+ namespace Linter {
3341
+ interface RulesRecord extends RuleOptions$13 {}
3342
+ }
3343
+ }
3344
+ interface RuleOptions$13 {
3345
+ /**
3346
+ * validate object with JSON Schema.
3347
+ * @see https://nick2bad4u.github.io/eslint-plugin-json-schema-validator-2/docs/rules/no-invalid
3348
+ */
3349
+ 'schema/no-invalid'?: Linter.RuleEntry<SchemaNoInvalid>;
3350
+ }
3351
+ /* ======= Declarations ======= */
3352
+ // ----- schema/no-invalid -----
3353
+ type SchemaNoInvalid = [] | [(string | {
3354
+ mergeSchemas?: (boolean | [("$schema" | "catalog" | "options"), ("$schema" | "catalog" | "options"), ...(("$schema" | "catalog" | "options"))[]]);
3355
+ reportMode?: ("all" | "most-specific");
3356
+ schemas?: {
3357
+ description?: string;
3358
+ fileMatch: [string, ...(string)[]];
3359
+ name?: string;
3360
+ schema: ({
3361
+ [k: string]: unknown | undefined;
3362
+ } | string);
3363
+ [k: string]: unknown | undefined;
3364
+ }[];
3365
+ useSchemastoreCatalog?: boolean;
3366
+ })];
3367
+ //#endregion
3316
3368
  //#region src/config/jsonc.d.ts
3317
3369
  export declare function jsonc(options?: jsonc.Options): Promise<ReadonlyArray<Config>>;
3318
3370
  export declare namespace jsonc {
3319
- interface Options extends PluginOptionsBase<Rules> {}
3320
- type Rules = RuleOptions$15;
3371
+ interface Options extends PluginOptionsBase<Rules>, PluginOptionsSchema {}
3372
+ type Rules = RuleOptions$17 & RuleOptions$13;
3321
3373
  }
3322
3374
  //#endregion
3323
3375
  //#region src/typegen/jsx-a11y.d.ts
3324
3376
  declare module 'eslint' {
3325
3377
  namespace Linter {
3326
- interface RulesRecord extends RuleOptions$11 {}
3378
+ interface RulesRecord extends RuleOptions$12 {}
3327
3379
  }
3328
3380
  }
3329
- interface RuleOptions$11 {
3381
+ interface RuleOptions$12 {
3330
3382
  /**
3331
3383
  * Enforce emojis are wrapped in `<span>` and provide screen reader access.
3332
3384
  * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/accessible-emoji.md
@@ -3740,16 +3792,16 @@ export declare namespace jsx {
3740
3792
  */
3741
3793
  jsxA11y?: boolean;
3742
3794
  }
3743
- type Rules = RuleOptions$11;
3795
+ type Rules = RuleOptions$12;
3744
3796
  }
3745
3797
  //#endregion
3746
3798
  //#region src/typegen/markdown.d.ts
3747
3799
  declare module 'eslint' {
3748
3800
  namespace Linter {
3749
- interface RulesRecord extends RuleOptions$10 {}
3801
+ interface RulesRecord extends RuleOptions$11 {}
3750
3802
  }
3751
3803
  }
3752
- interface RuleOptions$10 {
3804
+ interface RuleOptions$11 {
3753
3805
  /**
3754
3806
  * Require languages for fenced code blocks
3755
3807
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
@@ -3937,16 +3989,16 @@ export declare namespace markdown {
3937
3989
  frontmatter?: 'toml' | 'yaml';
3938
3990
  };
3939
3991
  }
3940
- type Rules = RuleOptions$10;
3992
+ type Rules = RuleOptions$11;
3941
3993
  }
3942
3994
  //#endregion
3943
3995
  //#region src/typegen/next.d.ts
3944
3996
  declare module 'eslint' {
3945
3997
  namespace Linter {
3946
- interface RulesRecord extends RuleOptions$9 {}
3998
+ interface RulesRecord extends RuleOptions$10 {}
3947
3999
  }
3948
4000
  }
3949
- interface RuleOptions$9 {
4001
+ interface RuleOptions$10 {
3950
4002
  /**
3951
4003
  * Enforce font-display behavior with Google Fonts.
3952
4004
  * @see https://nextjs.org/docs/messages/google-font-display
@@ -4065,16 +4117,16 @@ type NextNoHtmlLinkForPages = [] | [(string | string[])];
4065
4117
  export declare function next(options?: next.Options): Promise<[Config, Config]>;
4066
4118
  export declare namespace next {
4067
4119
  interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {}
4068
- type Rules = RuleOptions$9;
4120
+ type Rules = RuleOptions$10;
4069
4121
  }
4070
4122
  //#endregion
4071
4123
  //#region src/typegen/node.d.ts
4072
4124
  declare module 'eslint' {
4073
4125
  namespace Linter {
4074
- interface RulesRecord extends RuleOptions$8 {}
4126
+ interface RulesRecord extends RuleOptions$9 {}
4075
4127
  }
4076
4128
  }
4077
- interface RuleOptions$8 {
4129
+ interface RuleOptions$9 {
4078
4130
  /**
4079
4131
  * require `return` statements after callbacks
4080
4132
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/callback-return.md
@@ -4583,16 +4635,16 @@ type NodeShebang = [] | [{
4583
4635
  export declare function node(options?: node.Options): Promise<[Config, Config]>;
4584
4636
  export declare namespace node {
4585
4637
  interface Options extends Omit<PluginOptionsBase<Rules>, 'files' | 'stylistic'> {}
4586
- type Rules = RuleOptions$8;
4638
+ type Rules = RuleOptions$9;
4587
4639
  }
4588
4640
  //#endregion
4589
4641
  //#region src/typegen/perfectionist.d.ts
4590
4642
  declare module 'eslint' {
4591
4643
  namespace Linter {
4592
- interface RulesRecord extends RuleOptions$7 {}
4644
+ interface RulesRecord extends RuleOptions$8 {}
4593
4645
  }
4594
4646
  }
4595
- interface RuleOptions$7 {
4647
+ interface RuleOptions$8 {
4596
4648
  /**
4597
4649
  * Enforce sorted arrays before include method.
4598
4650
  * @see https://perfectionist.dev/rules/sort-array-includes
@@ -7470,16 +7522,16 @@ type PerfectionistSortVariableDeclarations = {
7470
7522
  export declare function perfectionist(options?: perfectionist.Options): Promise<[Config, Config]>;
7471
7523
  export declare namespace perfectionist {
7472
7524
  interface Options extends PluginOptionsBase<Rules> {}
7473
- type Rules = RuleOptions$7;
7525
+ type Rules = RuleOptions$8;
7474
7526
  }
7475
7527
  //#endregion
7476
7528
  //#region src/typegen/react.d.ts
7477
7529
  declare module 'eslint' {
7478
7530
  namespace Linter {
7479
- interface RulesRecord extends RuleOptions$6 {}
7531
+ interface RulesRecord extends RuleOptions$7 {}
7480
7532
  }
7481
7533
  }
7482
- interface RuleOptions$6 {
7534
+ interface RuleOptions$7 {
7483
7535
  /**
7484
7536
  * Disallows DOM elements from using 'dangerouslySetInnerHTML'.
7485
7537
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
@@ -8239,16 +8291,16 @@ type ReactXUseState = [] | [{
8239
8291
  export declare function react(options?: react.Options): Promise<[Config, Config]>;
8240
8292
  export declare namespace react {
8241
8293
  interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {}
8242
- type Rules = RuleOptions$6;
8294
+ type Rules = RuleOptions$7;
8243
8295
  }
8244
8296
  //#endregion
8245
8297
  //#region src/typegen/style.d.ts
8246
8298
  declare module 'eslint' {
8247
8299
  namespace Linter {
8248
- interface RulesRecord extends RuleOptions$5 {}
8300
+ interface RulesRecord extends RuleOptions$6 {}
8249
8301
  }
8250
8302
  }
8251
- interface RuleOptions$5 {
8303
+ interface RuleOptions$6 {
8252
8304
  /**
8253
8305
  * Enforce linebreaks after opening and before closing array brackets
8254
8306
  * @see https://eslint.style/rules/array-bracket-newline
@@ -10002,16 +10054,16 @@ type StyleYieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") |
10002
10054
  export declare function stylistic(options?: stylistic.Options): Promise<[Config, Config]>;
10003
10055
  export declare namespace stylistic {
10004
10056
  interface Options extends Pick<PluginOptionsBase<Rules>, 'rules'>, StylisticParameters {}
10005
- type Rules = RuleOptions$5;
10057
+ type Rules = RuleOptions$6;
10006
10058
  }
10007
10059
  //#endregion
10008
10060
  //#region src/typegen/test.d.ts
10009
10061
  declare module 'eslint' {
10010
10062
  namespace Linter {
10011
- interface RulesRecord extends RuleOptions$4 {}
10063
+ interface RulesRecord extends RuleOptions$5 {}
10012
10064
  }
10013
10065
  }
10014
- interface RuleOptions$4 {
10066
+ interface RuleOptions$5 {
10015
10067
  /**
10016
10068
  * enforce using `.each` or `.for` consistently
10017
10069
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
@@ -10548,7 +10600,280 @@ type TestValidTitle = [] | [{
10548
10600
  export declare function test(options?: test.Options): Promise<[Config, Config]>;
10549
10601
  export declare namespace test {
10550
10602
  interface Options extends PluginOptionsBase<Rules> {}
10551
- type Rules = RuleOptions$4;
10603
+ type Rules = RuleOptions$5;
10604
+ }
10605
+ //#endregion
10606
+ //#region src/typegen/toml.d.ts
10607
+ declare module 'eslint' {
10608
+ namespace Linter {
10609
+ interface RulesRecord extends RuleOptions$4 {}
10610
+ }
10611
+ }
10612
+ interface RuleOptions$4 {
10613
+ /**
10614
+ * enforce linebreaks after opening and before closing array brackets
10615
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-bracket-newline.html
10616
+ */
10617
+ 'toml/array-bracket-newline'?: Linter.RuleEntry<TomlArrayBracketNewline>;
10618
+ /**
10619
+ * enforce consistent spacing inside array brackets
10620
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-bracket-spacing.html
10621
+ */
10622
+ 'toml/array-bracket-spacing'?: Linter.RuleEntry<TomlArrayBracketSpacing>;
10623
+ /**
10624
+ * enforce line breaks between array elements
10625
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-element-newline.html
10626
+ */
10627
+ 'toml/array-element-newline'?: Linter.RuleEntry<TomlArrayElementNewline>;
10628
+ /**
10629
+ * enforce consistent comma style in array
10630
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/comma-style.html
10631
+ */
10632
+ 'toml/comma-style'?: Linter.RuleEntry<TomlCommaStyle>;
10633
+ /**
10634
+ * enforce consistent indentation
10635
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
10636
+ */
10637
+ 'toml/indent'?: Linter.RuleEntry<TomlIndent>;
10638
+ /**
10639
+ * enforce linebreaks after opening and before closing braces
10640
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
10641
+ */
10642
+ 'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>;
10643
+ /**
10644
+ * enforce consistent spacing inside braces
10645
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
10646
+ */
10647
+ 'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>;
10648
+ /**
10649
+ * enforce placing inline table key-value pairs on separate lines
10650
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
10651
+ */
10652
+ 'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>;
10653
+ /**
10654
+ * enforce consistent spacing between keys and values in key/value pairs
10655
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
10656
+ */
10657
+ 'toml/key-spacing'?: Linter.RuleEntry<TomlKeySpacing>;
10658
+ /**
10659
+ * disallow defining pair keys out-of-order
10660
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/keys-order.html
10661
+ */
10662
+ 'toml/keys-order'?: Linter.RuleEntry<[]>;
10663
+ /**
10664
+ * disallow mixed data types in array
10665
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/no-mixed-type-in-array.html
10666
+ */
10667
+ 'toml/no-mixed-type-in-array'?: Linter.RuleEntry<TomlNoMixedTypeInArray>;
10668
+ /**
10669
+ * disallow hexadecimal, octal and binary integer
10670
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/no-non-decimal-integer.html
10671
+ */
10672
+ 'toml/no-non-decimal-integer'?: Linter.RuleEntry<TomlNoNonDecimalInteger>;
10673
+ /**
10674
+ * disallow spacing around infix operators
10675
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/no-space-dots.html
10676
+ */
10677
+ 'toml/no-space-dots'?: Linter.RuleEntry<[]>;
10678
+ /**
10679
+ * disallow number separators that to not enhance readability.
10680
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/no-unreadable-number-separator.html
10681
+ */
10682
+ 'toml/no-unreadable-number-separator'?: Linter.RuleEntry<[]>;
10683
+ /**
10684
+ * require or disallow padding lines between pairs
10685
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/padding-line-between-pairs.html
10686
+ */
10687
+ 'toml/padding-line-between-pairs'?: Linter.RuleEntry<[]>;
10688
+ /**
10689
+ * require or disallow padding lines between tables
10690
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/padding-line-between-tables.html
10691
+ */
10692
+ 'toml/padding-line-between-tables'?: Linter.RuleEntry<[]>;
10693
+ /**
10694
+ * disallow precision of fractional seconds greater than the specified value.
10695
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/precision-of-fractional-seconds.html
10696
+ */
10697
+ 'toml/precision-of-fractional-seconds'?: Linter.RuleEntry<TomlPrecisionOfFractionalSeconds>;
10698
+ /**
10699
+ * disallow precision of integer greater than the specified value.
10700
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/precision-of-integer.html
10701
+ */
10702
+ 'toml/precision-of-integer'?: Linter.RuleEntry<TomlPrecisionOfInteger>;
10703
+ /**
10704
+ * require or disallow quotes around keys
10705
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/quoted-keys.html
10706
+ */
10707
+ 'toml/quoted-keys'?: Linter.RuleEntry<TomlQuotedKeys>;
10708
+ /**
10709
+ * require spacing around equals sign
10710
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/space-eq-sign.html
10711
+ * @deprecated
10712
+ */
10713
+ 'toml/space-eq-sign'?: Linter.RuleEntry<[]>;
10714
+ /**
10715
+ * enforce consistent spacing after the `#` in a comment
10716
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/spaced-comment.html
10717
+ */
10718
+ 'toml/spaced-comment'?: Linter.RuleEntry<TomlSpacedComment>;
10719
+ /**
10720
+ * enforce consistent spacing inside table brackets
10721
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/table-bracket-spacing.html
10722
+ */
10723
+ 'toml/table-bracket-spacing'?: Linter.RuleEntry<TomlTableBracketSpacing>;
10724
+ /**
10725
+ * disallow defining tables out-of-order
10726
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/tables-order.html
10727
+ */
10728
+ 'toml/tables-order'?: Linter.RuleEntry<[]>;
10729
+ /**
10730
+ * disallow parsing errors in Vue custom blocks
10731
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/vue-custom-block/no-parsing-error.html
10732
+ */
10733
+ 'toml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
10734
+ }
10735
+ /* ======= Declarations ======= */
10736
+ // ----- toml/array-bracket-newline -----
10737
+ type TomlArrayBracketNewline = [] | [(("always" | "never" | "consistent") | {
10738
+ multiline?: boolean;
10739
+ minItems?: (number | null);
10740
+ })];
10741
+ // ----- toml/array-bracket-spacing -----
10742
+ type TomlArrayBracketSpacing = [] | [("always" | "never")] | [("always" | "never"), {
10743
+ singleValue?: boolean;
10744
+ objectsInArrays?: boolean;
10745
+ arraysInArrays?: boolean;
10746
+ }];
10747
+ // ----- toml/array-element-newline -----
10748
+ type TomlArrayElementNewline = [] | [(_TomlArrayElementNewlineBasicConfig | {
10749
+ ArrayExpression?: _TomlArrayElementNewlineBasicConfig;
10750
+ ArrayPattern?: _TomlArrayElementNewlineBasicConfig;
10751
+ TOMLArray?: _TomlArrayElementNewlineBasicConfig;
10752
+ })];
10753
+ type _TomlArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
10754
+ multiline?: boolean;
10755
+ minItems?: (number | null);
10756
+ });
10757
+ // ----- toml/comma-style -----
10758
+ type TomlCommaStyle = [] | [("first" | "last")] | [("first" | "last"), {
10759
+ exceptions?: {
10760
+ [k: string]: boolean | undefined;
10761
+ };
10762
+ }];
10763
+ // ----- toml/indent -----
10764
+ type TomlIndent = [] | [("tab" | number)] | [("tab" | number), {
10765
+ subTables?: number;
10766
+ keyValuePairs?: number;
10767
+ }];
10768
+ // ----- toml/inline-table-curly-newline -----
10769
+ type TomlInlineTableCurlyNewline = [] | [(("always" | "never") | {
10770
+ multiline?: boolean;
10771
+ minProperties?: number;
10772
+ consistent?: boolean;
10773
+ })];
10774
+ // ----- toml/inline-table-curly-spacing -----
10775
+ type TomlInlineTableCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
10776
+ arraysInObjects?: boolean;
10777
+ objectsInObjects?: boolean;
10778
+ emptyObjects?: ("ignore" | "always" | "never");
10779
+ }];
10780
+ // ----- toml/inline-table-key-value-newline -----
10781
+ type TomlInlineTableKeyValueNewline = [] | [{
10782
+ allowAllPropertiesOnSameLine?: boolean;
10783
+ }];
10784
+ // ----- toml/key-spacing -----
10785
+ type TomlKeySpacing = [] | [({
10786
+ align?: (("equal" | "value") | {
10787
+ on?: ("equal" | "value");
10788
+ mode?: ("strict" | "minimum");
10789
+ beforeEqual?: boolean;
10790
+ afterEqual?: boolean;
10791
+ });
10792
+ mode?: ("strict" | "minimum");
10793
+ beforeEqual?: boolean;
10794
+ afterEqual?: boolean;
10795
+ } | {
10796
+ singleLine?: {
10797
+ mode?: ("strict" | "minimum");
10798
+ beforeEqual?: boolean;
10799
+ afterEqual?: boolean;
10800
+ };
10801
+ multiLine?: {
10802
+ align?: (("equal" | "value") | {
10803
+ on?: ("equal" | "value");
10804
+ mode?: ("strict" | "minimum");
10805
+ beforeEqual?: boolean;
10806
+ afterEqual?: boolean;
10807
+ });
10808
+ mode?: ("strict" | "minimum");
10809
+ beforeEqual?: boolean;
10810
+ afterEqual?: boolean;
10811
+ };
10812
+ } | {
10813
+ singleLine?: {
10814
+ mode?: ("strict" | "minimum");
10815
+ beforeEqual?: boolean;
10816
+ afterEqual?: boolean;
10817
+ };
10818
+ multiLine?: {
10819
+ mode?: ("strict" | "minimum");
10820
+ beforeEqual?: boolean;
10821
+ afterEqual?: boolean;
10822
+ };
10823
+ align?: {
10824
+ on?: ("equal" | "value");
10825
+ mode?: ("strict" | "minimum");
10826
+ beforeEqual?: boolean;
10827
+ afterEqual?: boolean;
10828
+ };
10829
+ })];
10830
+ // ----- toml/no-mixed-type-in-array -----
10831
+ type TomlNoMixedTypeInArray = [] | [{
10832
+ typeMap?: {
10833
+ string?: string;
10834
+ boolean?: string;
10835
+ integer?: string;
10836
+ float?: string;
10837
+ offsetDateTime?: string;
10838
+ localDateTime?: string;
10839
+ localDate?: string;
10840
+ localTime?: string;
10841
+ array?: string;
10842
+ inlineTable?: string;
10843
+ };
10844
+ }];
10845
+ // ----- toml/no-non-decimal-integer -----
10846
+ type TomlNoNonDecimalInteger = [] | [{
10847
+ allowHexadecimal?: boolean;
10848
+ allowOctal?: boolean;
10849
+ allowBinary?: boolean;
10850
+ }];
10851
+ // ----- toml/precision-of-fractional-seconds -----
10852
+ type TomlPrecisionOfFractionalSeconds = [] | [{
10853
+ max?: number;
10854
+ }];
10855
+ // ----- toml/precision-of-integer -----
10856
+ type TomlPrecisionOfInteger = [] | [{
10857
+ maxBit?: number;
10858
+ }];
10859
+ // ----- toml/quoted-keys -----
10860
+ type TomlQuotedKeys = [] | [{
10861
+ prefer?: ("as-needed" | "always");
10862
+ numbers?: boolean;
10863
+ }];
10864
+ // ----- toml/spaced-comment -----
10865
+ type TomlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
10866
+ exceptions?: string[];
10867
+ markers?: string[];
10868
+ }];
10869
+ // ----- toml/table-bracket-spacing -----
10870
+ type TomlTableBracketSpacing = [] | [("always" | "never")];
10871
+ //#endregion
10872
+ //#region src/config/toml.d.ts
10873
+ export declare function toml(options?: toml.Options): Promise<[Config, Config]>;
10874
+ export declare namespace toml {
10875
+ interface Options extends PluginOptionsBase<Rules>, PluginOptionsSchema {}
10876
+ type Rules = RuleOptions$4 & RuleOptions$13;
10552
10877
  }
10553
10878
  //#endregion
10554
10879
  //#region src/typegen/ts.d.ts
@@ -12256,1841 +12581,1992 @@ declare module 'eslint' {
12256
12581
  interface RuleOptions$2 {
12257
12582
  /**
12258
12583
  * Prefer better DOM traversal APIs.
12259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
12584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
12260
12585
  */
12261
12586
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
12262
12587
  /**
12263
12588
  * Removed. Prefer `eslint-plugin-regexp`
12264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
12589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
12265
12590
  * @deprecated
12266
12591
  */
12267
12592
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
12268
12593
  /**
12269
12594
  * Enforce a specific parameter name in catch clauses.
12270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
12595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
12271
12596
  */
12272
12597
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
12273
12598
  /**
12274
12599
  * Enforce consistent class references in static methods.
12275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
12600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
12276
12601
  */
12277
12602
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
12603
+ /**
12604
+ * Enforce consistent spacing before and after commas in JSON.
12605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
12606
+ */
12607
+ 'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
12278
12608
  /**
12279
12609
  * Enforce better comment content.
12280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
12610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
12281
12611
  */
12282
12612
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
12283
12613
  /**
12284
12614
  * Enforce a consistent return style for multiline arrow function bodies.
12285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
12615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
12286
12616
  */
12287
12617
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
12288
12618
  /**
12289
12619
  * Enforce consistent assertion style with `node:assert`.
12290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
12620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
12291
12621
  */
12292
12622
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
12293
12623
  /**
12294
12624
  * Enforce consistent naming for boolean names.
12295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
12625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
12296
12626
  */
12297
12627
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
12298
12628
  /**
12299
12629
  * Enforce consistent class member order.
12300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
12630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
12301
12631
  */
12302
12632
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
12303
12633
  /**
12304
12634
  * Enforce consistent spelling of compound words in identifiers.
12305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
12635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
12306
12636
  */
12307
12637
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
12308
12638
  /**
12309
12639
  * Enforce consistent conditional object spread style.
12310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
12640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
12311
12641
  */
12312
12642
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
12313
12643
  /**
12314
12644
  * Prefer passing `Date` directly to the constructor when cloning.
12315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
12645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
12316
12646
  */
12317
12647
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
12318
12648
  /**
12319
12649
  * Use destructured variables over properties.
12320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
12650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
12321
12651
  */
12322
12652
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
12323
12653
  /**
12324
12654
  * Prefer consistent types when spreading a ternary in an array literal.
12325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
12655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
12326
12656
  */
12327
12657
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
12328
12658
  /**
12329
12659
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
12330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
12660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
12331
12661
  */
12332
12662
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
12333
12663
  /**
12334
12664
  * Enforce consistent decorator position on exported classes.
12335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
12665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
12336
12666
  */
12337
12667
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
12338
12668
  /**
12339
12669
  * Move function definitions to the highest possible scope.
12340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
12670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
12341
12671
  */
12342
12672
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
12343
12673
  /**
12344
12674
  * Enforce function syntax by role.
12345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
12675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
12346
12676
  */
12347
12677
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
12348
12678
  /**
12349
12679
  * Enforce consistent JSON file reads before `JSON.parse()`.
12350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
12680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
12351
12681
  */
12352
12682
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
12353
12683
  /**
12354
12684
  * Enforce consistent optional chaining for same-base member access.
12355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
12685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
12356
12686
  */
12357
12687
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
12358
12688
  /**
12359
12689
  * Enforce consistent style for escaping `${` in template literals.
12360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
12690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
12361
12691
  */
12362
12692
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
12363
12693
  /**
12364
12694
  * Enforce consistent labels on tuple type elements.
12365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
12695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
12366
12696
  */
12367
12697
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
12368
12698
  /**
12369
12699
  * Enforce correct `Error` subclassing.
12370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
12700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
12371
12701
  */
12372
12702
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
12373
12703
  /**
12374
12704
  * Enforce consistent default export declarations.
12375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
12705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
12376
12706
  */
12377
12707
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
12378
12708
  /**
12379
12709
  * Enforce consistent style for DOM element dataset access.
12380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
12710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
12381
12711
  */
12382
12712
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
12383
12713
  /**
12384
12714
  * Enforce no spaces between braces.
12385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
12715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
12386
12716
  */
12387
12717
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
12388
12718
  /**
12389
12719
  * Enforce passing a `message` value when creating a built-in error.
12390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
12720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
12391
12721
  */
12392
12722
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
12393
12723
  /**
12394
12724
  * Require escape sequences to use uppercase or lowercase values.
12395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
12725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
12396
12726
  */
12397
12727
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
12398
12728
  /**
12399
12729
  * Add expiration conditions to TODO comments.
12400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
12730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
12401
12731
  */
12402
12732
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
12403
12733
  /**
12404
12734
  * Enforce explicitly comparing the `length` or `size` property of a value.
12405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
12735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
12406
12736
  */
12407
12737
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
12408
12738
  /**
12409
12739
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
12410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
12740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
12411
12741
  */
12412
12742
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
12413
12743
  /**
12414
12744
  * Enforce a case style for filenames and directory names.
12415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
12745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
12416
12746
  */
12417
12747
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
12418
12748
  /**
12419
12749
  * Require identifiers to match a specified regular expression.
12420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
12750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
12421
12751
  */
12422
12752
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
12423
12753
  /**
12424
12754
  * Enforce specific import styles per module.
12425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
12755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
12426
12756
  */
12427
12757
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
12758
+ /**
12759
+ * Enforce consistent indentation in JSON and CSS.
12760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
12761
+ */
12762
+ 'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
12428
12763
  /**
12429
12764
  * Prevent usage of variables from outside the scope of isolated functions.
12430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
12765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
12431
12766
  */
12432
12767
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
12433
12768
  /**
12434
12769
  * Enforce a consistent style for optional loop sources.
12435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
12770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
12436
12771
  */
12437
12772
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
12773
+ /**
12774
+ * Enforce a case style for data keys.
12775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
12776
+ */
12777
+ 'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
12438
12778
  /**
12439
12779
  * Require or disallow logical assignment operator shorthand
12440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
12780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
12441
12781
  */
12442
12782
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
12443
12783
  /**
12444
12784
  * Limit the depth of nested calls.
12445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
12785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
12446
12786
  */
12447
12787
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
12448
12788
  /**
12449
12789
  * Enforce replacements for variable, property, and filenames.
12450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
12790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
12451
12791
  */
12452
12792
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
12453
12793
  /**
12454
12794
  * Enforce correct use of `new` for builtin constructors.
12455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
12795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
12456
12796
  */
12457
12797
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
12458
12798
  /**
12459
12799
  * Enforce specifying rules to disable in `eslint-disable` comments.
12460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
12800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
12461
12801
  */
12462
12802
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
12463
12803
  /**
12464
12804
  * Disallow recursive access to `this` within getters and setters.
12465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
12805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
12466
12806
  */
12467
12807
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
12468
12808
  /**
12469
12809
  * Disallow bitwise operators where a logical operator was likely intended.
12470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
12810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
12471
12811
  */
12472
12812
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
12473
12813
  /**
12474
12814
  * Disallow anonymous functions and classes as the default export.
12475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
12815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
12476
12816
  */
12477
12817
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
12478
12818
  /**
12479
12819
  * Prevent passing a function reference directly to iterator methods.
12480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
12820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
12481
12821
  */
12482
12822
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
12483
12823
  /**
12484
12824
  * Disallow array accumulation with `Array#concat()` in loops.
12485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
12825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
12486
12826
  */
12487
12827
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
12488
12828
  /**
12489
12829
  * Disallow using reference values as `Array#fill()` values.
12490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
12830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
12491
12831
  */
12492
12832
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
12493
12833
  /**
12494
12834
  * Disallow `.fill()` after `Array.from({length: …})`.
12495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
12835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
12496
12836
  */
12497
12837
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
12498
12838
  /**
12499
12839
  * Disallow front-of-array mutation.
12500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
12840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
12501
12841
  */
12502
12842
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
12503
12843
  /**
12504
12844
  * Disallow using the `this` argument in array methods.
12505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
12845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
12506
12846
  */
12507
12847
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
12508
12848
  /**
12509
12849
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
12510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
12850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
12511
12851
  * @deprecated
12512
12852
  */
12513
12853
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
12514
12854
  /**
12515
12855
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
12516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
12856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
12517
12857
  */
12518
12858
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
12519
12859
  /**
12520
12860
  * Prefer `Array#toReversed()` over `Array#reverse()`.
12521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
12861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
12522
12862
  */
12523
12863
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
12524
12864
  /**
12525
12865
  * Prefer `Array#toSorted()` over `Array#sort()`.
12526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
12866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
12527
12867
  */
12528
12868
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
12529
12869
  /**
12530
12870
  * Disallow sorting arrays to get the minimum or maximum value.
12531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
12871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
12532
12872
  */
12533
12873
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
12534
12874
  /**
12535
12875
  * Prefer `Array#toSpliced()` over `Array#splice()`.
12536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
12876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
12537
12877
  */
12538
12878
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
12539
12879
  /**
12540
- * Disallow asterisk prefixes in documentation comments.
12541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
12880
+ * Disallow asterisk prefixes in multiline comments.
12881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
12542
12882
  */
12543
12883
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
12544
12884
  /**
12545
12885
  * Disallow asynchronous callbacks in synchronous iterator helpers.
12546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
12886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
12547
12887
  */
12548
12888
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
12549
12889
  /**
12550
12890
  * Disallow async functions as `Promise#finally()` callbacks.
12551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
12891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
12552
12892
  */
12553
12893
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
12554
12894
  /**
12555
12895
  * Disallow member access from await expression.
12556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
12896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
12557
12897
  */
12558
12898
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
12559
12899
  /**
12560
12900
  * Disallow using `await` in `Promise` method parameters.
12561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
12901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
12562
12902
  */
12563
12903
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
12564
12904
  /**
12565
12905
  * Disallow barrel files.
12566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
12906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
12567
12907
  */
12568
12908
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
12569
12909
  /**
12570
12910
  * Disallow unnecessary `Blob` to `File` conversion.
12571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
12911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
12572
12912
  */
12573
12913
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
12574
12914
  /**
12575
12915
  * Disallow boolean-returning sort comparators.
12576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
12916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
12577
12917
  */
12578
12918
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
12579
12919
  /**
12580
12920
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
12581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
12921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
12582
12922
  */
12583
12923
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
12584
12924
  /**
12585
12925
  * Prefer drawing canvases directly instead of converting them to images.
12586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
12926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
12587
12927
  */
12588
12928
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
12589
12929
  /**
12590
12930
  * Disallow chained comparisons such as `a < b < c`.
12591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
12931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
12592
12932
  */
12593
12933
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
12594
12934
  /**
12595
12935
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
12596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
12936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
12597
12937
  */
12598
12938
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
12599
12939
  /**
12600
12940
  * Disallow dynamic object property existence checks.
12601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
12941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
12602
12942
  */
12603
12943
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
12944
+ /**
12945
+ * Disallow conflicting CSS query and HTML form constraints.
12946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
12947
+ */
12948
+ 'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
12604
12949
  /**
12605
12950
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
12606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
12951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
12607
12952
  */
12608
12953
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
12609
12954
  /**
12610
12955
  * Disallow confusing uses of `Array#with()`.
12611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
12956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
12612
12957
  */
12613
12958
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
12614
12959
  /**
12615
12960
  * Do not use leading/trailing space between `console.log` parameters.
12616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
12961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
12617
12962
  */
12618
12963
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
12619
12964
  /**
12620
12965
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
12621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
12966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
12622
12967
  */
12623
12968
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
12624
12969
  /**
12625
12970
  * Disallow declarations before conditional early exits when they are only used after the exit.
12626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
12971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
12627
12972
  */
12628
12973
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
12629
12974
  /**
12630
- * Disallow deprecated CSS features.
12631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
12975
+ * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
12976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
12977
+ * @deprecated
12632
12978
  */
12633
- 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
12979
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
12634
12980
  /**
12635
12981
  * Do not use `document.cookie` directly.
12636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
12982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
12637
12983
  */
12638
12984
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
12639
12985
  /**
12640
12986
  * Disallow two comparisons of the same operands that can be combined into one.
12641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
12987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
12642
12988
  */
12643
12989
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
12644
12990
  /**
12645
- * Disallow duplicate CSS selectors.
12646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
12991
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
12992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
12993
+ * @deprecated
12647
12994
  */
12648
12995
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
12649
12996
  /**
12650
- * Disallow duplicate font family names.
12651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
12997
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
12998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
12999
+ * @deprecated
12652
13000
  */
12653
13001
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
12654
13002
  /**
12655
13003
  * Disallow duplicate adjacent branches in if chains.
12656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
13004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
12657
13005
  */
12658
13006
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
12659
13007
  /**
12660
13008
  * Disallow adjacent duplicate operands in logical expressions.
12661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
13009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
12662
13010
  */
12663
13011
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
12664
13012
  /**
12665
13013
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
12666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
13014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
12667
13015
  */
12668
13016
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
12669
13017
  /**
12670
13018
  * Disallow duplicate values in `Set` constructor array literals.
12671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
13019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
12672
13020
  */
12673
13021
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
12674
13022
  /**
12675
13023
  * Disallow empty files.
12676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
13024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
12677
13025
  */
12678
13026
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
13027
+ /**
13028
+ * Disallow empty link text in Markdown.
13029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
13030
+ */
13031
+ 'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
12679
13032
  /**
12680
13033
  * Disallow assigning to built-in error properties.
12681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
13034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
12682
13035
  */
12683
13036
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
12684
13037
  /**
12685
13038
  * Disallow exports in scripts.
12686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
13039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
12687
13040
  */
12688
13041
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
12689
13042
  /**
12690
13043
  * Prefer `for…of` over the `forEach` method.
12691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
13044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
12692
13045
  */
12693
13046
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
12694
13047
  /**
12695
13048
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
12696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
13049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
12697
13050
  */
12698
13051
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
12699
13052
  /**
12700
13053
  * Disallow assigning properties on the global object.
12701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
13054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
12702
13055
  */
12703
13056
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
12704
13057
  /**
12705
- * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
12706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
13058
+ * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
13059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
12707
13060
  * @deprecated
12708
13061
  */
12709
13062
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
12710
13063
  /**
12711
13064
  * Disallow immediate mutation after variable assignment.
12712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
13065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
12713
13066
  */
12714
13067
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
12715
13068
  /**
12716
13069
  * Disallow impossible comparisons against `.length` or `.size`.
12717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
13070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
12718
13071
  */
12719
13072
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
13073
+ /**
13074
+ * Disallow class accessors that hide an inherited getter or setter.
13075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
13076
+ */
13077
+ 'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
12720
13078
  /**
12721
13079
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
12722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
13080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
12723
13081
  */
12724
13082
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
12725
13083
  /**
12726
13084
  * Disallow incorrect template literal interpolation syntax.
12727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
13085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
12728
13086
  */
12729
13087
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
13088
+ /**
13089
+ * Disallow ineffective CSP directives in `<meta>` elements.
13090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
13091
+ */
13092
+ 'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
12730
13093
  /**
12731
13094
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
12732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
12733
13096
  * @deprecated
12734
13097
  */
12735
13098
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
12736
13099
  /**
12737
13100
  * Disallow `instanceof` with built-in objects
12738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
13101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
12739
13102
  */
12740
13103
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
12741
13104
  /**
12742
13105
  * Disallow calling functions and constructors with an invalid number of arguments.
12743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
13106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
12744
13107
  */
12745
13108
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
13109
+ /**
13110
+ * Disallow invalid values for HTML boolean attributes.
13111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
13112
+ */
13113
+ 'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
12746
13114
  /**
12747
13115
  * Disallow comparing a single character from a string to a multi-character string.
12748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
13116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
12749
13117
  */
12750
13118
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
13119
+ /**
13120
+ * Disallow invalid DOM tokens.
13121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
13122
+ */
13123
+ 'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
12751
13124
  /**
12752
13125
  * Disallow invalid options in `fetch()` and `new Request()`.
12753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
13126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
12754
13127
  */
12755
13128
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
12756
13129
  /**
12757
13130
  * Disallow invalid `accept` values on file inputs.
12758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
13131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
12759
13132
  */
12760
13133
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
12761
13134
  /**
12762
- * Disallow unknown media features and invalid values for known media features.
12763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
13135
+ * Disallow invalid subresource integrity metadata.
13136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
13137
+ */
13138
+ 'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
13139
+ /**
13140
+ * Disallow invalid or ignored Intl options.
13141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
13142
+ */
13143
+ 'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
13144
+ /**
13145
+ * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
13146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
13147
+ * @deprecated
12764
13148
  */
12765
13149
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
13150
+ /**
13151
+ * Disallow invalid property descriptors.
13152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
13153
+ */
13154
+ 'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
12766
13155
  /**
12767
13156
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
12768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
13157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
12769
13158
  */
12770
13159
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
13160
+ /**
13161
+ * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
13162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
13163
+ */
13164
+ 'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
13165
+ /**
13166
+ * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
13167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
13168
+ */
13169
+ 'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
13170
+ /**
13171
+ * Disallow statically known invalid Temporal arithmetic.
13172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
13173
+ */
13174
+ 'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
13175
+ /**
13176
+ * Disallow invalid protocol strings in comparisons with `URL#protocol`.
13177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
13178
+ */
13179
+ 'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
12771
13180
  /**
12772
13181
  * Disallow invalid implementations of well-known symbol methods.
12773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
13182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
12774
13183
  */
12775
13184
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
13185
+ /**
13186
+ * Disallow `javascript:` URLs in Markdown.
13187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
13188
+ */
13189
+ 'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
12776
13190
  /**
12777
13191
  * Disallow identifiers starting with `new` or `class`.
12778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
13192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
12779
13193
  */
12780
13194
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
12781
13195
  /**
12782
13196
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
12783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
13197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
12784
13198
  */
12785
13199
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
12786
13200
  /**
12787
13201
  * Disallow event-control method calls after the synchronous event dispatch has finished.
12788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
13202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
12789
13203
  */
12790
13204
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
13205
+ /**
13206
+ * Disallow empty lines at the beginning of a file.
13207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
13208
+ */
13209
+ 'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
12791
13210
  /**
12792
13211
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
12793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
12794
13213
  * @deprecated
12795
13214
  */
12796
13215
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
12797
13216
  /**
12798
13217
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
12799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
13218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
12800
13219
  */
12801
13220
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
12802
13221
  /**
12803
13222
  * Disallow mutating a loop iterable during iteration.
12804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
13223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
12805
13224
  */
12806
13225
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
13226
+ /**
13227
+ * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
13228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
13229
+ */
13230
+ 'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
12807
13231
  /**
12808
13232
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
12809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
13233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
12810
13234
  */
12811
13235
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
12812
13236
  /**
12813
13237
  * Disallow manually wrapped comments.
12814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
13238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
12815
13239
  */
12816
13240
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
12817
13241
  /**
12818
13242
  * Disallow checking a Map key before accessing a different key.
12819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
13243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
12820
13244
  */
12821
13245
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
12822
13246
  /**
12823
13247
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
12824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
13248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
12825
13249
  */
12826
13250
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
12827
13251
  /**
12828
13252
  * Disallow references to missing local resources.
12829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
13253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
12830
13254
  */
12831
13255
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
12832
13256
  /**
12833
13257
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
12834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
13258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
12835
13259
  */
12836
13260
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
12837
13261
  /**
12838
13262
  * Disallow named usage of default import and export.
12839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
13263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
12840
13264
  */
12841
13265
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
12842
13266
  /**
12843
13267
  * Disallow negated array predicate calls.
12844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
13268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
12845
13269
  */
12846
13270
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
12847
13271
  /**
12848
13272
  * Disallow negated comparisons.
12849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
13273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
12850
13274
  */
12851
13275
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
12852
13276
  /**
12853
13277
  * Disallow negated conditions.
12854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
13278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
12855
13279
  */
12856
13280
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
12857
13281
  /**
12858
13282
  * Disallow negated expression in equality check.
12859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
13283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
12860
13284
  */
12861
13285
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
12862
13286
  /**
12863
13287
  * Disallow nested ternary expressions.
12864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
13288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
12865
13289
  */
12866
13290
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
12867
13291
  /**
12868
- * Disallow nesting under selector lists with mixed specificity.
12869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
13292
+ * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
13293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
13294
+ * @deprecated
12870
13295
  */
12871
13296
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
12872
13297
  /**
12873
13298
  * Disallow `new Array()`.
12874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
13299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
12875
13300
  */
12876
13301
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
12877
13302
  /**
12878
13303
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
12879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
13304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
12880
13305
  */
12881
13306
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
12882
13307
  /**
12883
13308
  * Disallow non-function values with function-style verb prefixes.
12884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
13309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
12885
13310
  */
12886
13311
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
12887
13312
  /**
12888
13313
  * Disallow non-standard properties on built-in objects.
12889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
13314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
12890
13315
  */
12891
13316
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
12892
13317
  /**
12893
13318
  * Disallow the use of the `null` literal.
12894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
13319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
12895
13320
  */
12896
13321
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
12897
13322
  /**
12898
13323
  * Disallow the use of objects as default parameters.
12899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
13324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
12900
13325
  */
12901
13326
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
12902
13327
  /**
12903
13328
  * Disallow `Object` methods with `Map` or `Set`.
12904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
13329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
12905
13330
  */
12906
13331
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
12907
13332
  /**
12908
13333
  * Disallow optional chaining on undeclared variables.
12909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
13334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
12910
13335
  */
12911
13336
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
13337
+ /**
13338
+ * Disallow ineffective `preventDefault()` calls in passive event listeners.
13339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
13340
+ */
13341
+ 'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
12912
13342
  /**
12913
13343
  * Disallow `process.exit()`.
12914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
13344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
12915
13345
  */
12916
13346
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
12917
13347
  /**
12918
13348
  * Disallow comparisons made redundant by an equality check in the same logical AND.
12919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
13349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
12920
13350
  */
12921
13351
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
12922
13352
  /**
12923
- * Disallow nested style rules that do not modify the parent selector.
12924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
13353
+ * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
13354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
13355
+ * @deprecated
12925
13356
  */
12926
13357
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
12927
13358
  /**
12928
13359
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
12929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
13360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
12930
13361
  */
12931
13362
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
12932
13363
  /**
12933
13364
  * Disallow selector syntax in DOM names.
12934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
13365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
12935
13366
  */
12936
13367
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
12937
13368
  /**
12938
13369
  * Disallow shorthand properties that override related longhand properties.
12939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
13370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
12940
13371
  */
12941
13372
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
12942
13373
  /**
12943
13374
  * Disallow passing single-element arrays to `Promise` methods.
12944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
13375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
12945
13376
  */
12946
13377
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
12947
13378
  /**
12948
13379
  * Disallow classes that only have static members.
12949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
13380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
12950
13381
  */
12951
13382
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
12952
13383
  /**
12953
13384
  * Prefer comparing values directly over subtracting and comparing to `0`.
12954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
13385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
12955
13386
  */
12956
13387
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
12957
13388
  /**
12958
13389
  * Disallow `then` property.
12959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
13390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
12960
13391
  */
12961
13392
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
12962
13393
  /**
12963
13394
  * Disallow assigning `this` to a variable.
12964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
13395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
12965
13396
  */
12966
13397
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
12967
13398
  /**
12968
13399
  * Disallow `this` outside of classes.
12969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
13400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
12970
13401
  */
12971
13402
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
12972
13403
  /**
12973
13404
  * Disallow assigning to top-level variables from inside functions.
12974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
13405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
12975
13406
  */
12976
13407
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
12977
13408
  /**
12978
13409
  * Disallow top-level side effects in exported modules.
12979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
13410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
12980
13411
  */
12981
13412
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
12982
13413
  /**
12983
13414
  * Disallow `all` as a transition property.
12984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
13415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
12985
13416
  */
12986
13417
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
12987
13418
  /**
12988
13419
  * Disallow comparing `undefined` using `typeof`.
12989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
13420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
12990
13421
  */
12991
13422
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
12992
13423
  /**
12993
13424
  * Disallow referencing methods without calling them.
12994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
13425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
12995
13426
  */
12996
13427
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
12997
13428
  /**
12998
13429
  * Require class members to be declared.
12999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
13430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
13000
13431
  */
13001
13432
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
13002
13433
  /**
13003
- * Disallow unknown and noncanonical CSS annotations.
13004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
13434
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
13435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
13436
+ * @deprecated
13005
13437
  */
13006
13438
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
13007
13439
  /**
13008
- * Disallow unknown pseudo-class and pseudo-element selectors.
13009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
13440
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
13441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
13442
+ * @deprecated
13010
13443
  */
13011
- 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
13444
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
13012
13445
  /**
13013
13446
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
13014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
13447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
13015
13448
  */
13016
13449
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
13017
13450
  /**
13018
- * Disallow `Array#flatMap()` callbacks that only wrap a single item.
13019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
13451
+ * Disallow unnecessary use of `Array#flatMap()`.
13452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
13020
13453
  */
13021
13454
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
13022
13455
  /**
13023
13456
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
13024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
13457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
13025
13458
  */
13026
13459
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
13027
13460
  /**
13028
13461
  * Disallow awaiting non-promise values.
13029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
13462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
13030
13463
  */
13031
13464
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
13032
13465
  /**
13033
13466
  * Disallow unnecessary comparisons against boolean literals.
13034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
13467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
13035
13468
  */
13036
13469
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
13037
13470
  /**
13038
13471
  * Disallow unnecessary options in `fetch()` and `new Request()`.
13039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
13472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
13040
13473
  */
13041
13474
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
13042
13475
  /**
13043
13476
  * Disallow unnecessary `globalThis` references.
13044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
13477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
13045
13478
  */
13046
13479
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
13047
13480
  /**
13048
13481
  * Disallow unnecessary nested ternary expressions.
13049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
13482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
13050
13483
  */
13051
13484
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
13485
+ /**
13486
+ * Disallow parameters that receive the same value at every call.
13487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
13488
+ */
13489
+ 'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
13052
13490
  /**
13053
13491
  * Enforce the use of built-in methods instead of unnecessary polyfills.
13054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
13492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
13055
13493
  */
13056
13494
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
13057
13495
  /**
13058
13496
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
13059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
13497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
13060
13498
  */
13061
13499
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
13062
13500
  /**
13063
13501
  * Disallow `Array#splice()` when simpler alternatives exist.
13064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
13502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
13065
13503
  */
13066
13504
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
13067
13505
  /**
13068
13506
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
13069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
13507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
13070
13508
  */
13071
13509
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
13072
13510
  /**
13073
13511
  * Disallow unreadable array destructuring.
13074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
13512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
13075
13513
  */
13076
13514
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
13077
13515
  /**
13078
13516
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
13079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
13517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
13080
13518
  */
13081
13519
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
13082
13520
  /**
13083
13521
  * Disallow unreadable IIFEs.
13084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
13522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
13085
13523
  */
13086
13524
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
13087
13525
  /**
13088
13526
  * Disallow unreadable `new` expressions.
13089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
13527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
13090
13528
  */
13091
13529
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
13092
13530
  /**
13093
13531
  * Disallow unreadable object destructuring.
13094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
13532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
13095
13533
  */
13096
13534
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
13097
13535
  /**
13098
13536
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
13099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
13537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
13100
13538
  */
13101
13539
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
13102
13540
  /**
13103
13541
  * Disallow unsafe DOM HTML APIs.
13104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
13542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
13105
13543
  */
13106
13544
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
13545
+ /**
13546
+ * Disallow known values that JSON serialization cannot represent faithfully.
13547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
13548
+ */
13549
+ 'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
13107
13550
  /**
13108
13551
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
13109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
13552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
13110
13553
  */
13111
13554
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
13112
13555
  /**
13113
13556
  * Disallow unsafe values as property keys.
13114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
13557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
13115
13558
  */
13116
13559
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
13117
13560
  /**
13118
13561
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
13119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
13562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
13120
13563
  */
13121
13564
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
13122
13565
  /**
13123
13566
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
13124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
13567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
13125
13568
  */
13126
13569
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
13127
13570
  /**
13128
- * Disallow unscoped CSS nesting selectors.
13129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
13571
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
13572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
13573
+ * @deprecated
13130
13574
  */
13131
- 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
13575
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
13132
13576
  /**
13133
13577
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
13134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
13578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
13135
13579
  * @deprecated
13136
13580
  */
13137
13581
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
13138
13582
  /**
13139
13583
  * Disallow ignoring the return value of selected built-in methods.
13140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
13584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
13141
13585
  */
13142
13586
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
13143
13587
  /**
13144
13588
  * Disallow discarding lazy iterator helpers.
13145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
13589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
13146
13590
  */
13147
13591
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
13148
13592
  /**
13149
13593
  * Disallow unused object properties.
13150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
13594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
13151
13595
  */
13152
13596
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
13597
+ /**
13598
+ * Disallow passing full URLs to `URLSearchParams`.
13599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
13600
+ */
13601
+ 'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
13153
13602
  /**
13154
13603
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
13155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
13604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
13156
13605
  */
13157
13606
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
13158
13607
  /**
13159
13608
  * Disallow useless type coercions of values that are already of the target type.
13160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
13609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
13161
13610
  */
13162
13611
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
13163
13612
  /**
13164
13613
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
13165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
13614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
13166
13615
  */
13167
13616
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
13168
13617
  /**
13169
13618
  * Disallow useless compound assignments such as `x += 0`.
13170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
13619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
13171
13620
  */
13172
13621
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
13173
13622
  /**
13174
13623
  * Disallow useless concatenation of literals.
13175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
13624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
13176
13625
  */
13177
13626
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
13178
13627
  /**
13179
13628
  * Disallow useless `continue` statements.
13180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
13629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
13181
13630
  */
13182
13631
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
13183
13632
  /**
13184
13633
  * Disallow unnecessary existence checks before deletion.
13185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
13634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
13186
13635
  */
13187
13636
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
13188
13637
  /**
13189
13638
  * Disallow `else` after a statement that exits.
13190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
13639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
13191
13640
  */
13192
13641
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
13193
13642
  /**
13194
13643
  * Disallow unnecessary `Error.captureStackTrace(…)`.
13195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
13644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
13196
13645
  */
13197
13646
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
13198
13647
  /**
13199
13648
  * Disallow useless fallback when spreading in object literals.
13200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
13649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
13201
13650
  */
13202
13651
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
13203
13652
  /**
13204
13653
  * Disallow unnecessary `.toArray()` on iterators.
13205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
13654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
13206
13655
  */
13207
13656
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
13208
13657
  /**
13209
13658
  * Disallow useless array length check.
13210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
13659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
13211
13660
  */
13212
13661
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
13213
13662
  /**
13214
13663
  * Disallow unnecessary operands in logical expressions involving boolean literals.
13215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
13664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
13216
13665
  */
13217
13666
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
13218
13667
  /**
13219
13668
  * Disallow useless overrides of class methods.
13220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
13669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
13221
13670
  */
13222
13671
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
13223
13672
  /**
13224
13673
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
13225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
13674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
13226
13675
  */
13227
13676
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
13228
13677
  /**
13229
13678
  * Disallow redundant re-exports.
13230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
13679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
13231
13680
  */
13232
13681
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
13233
13682
  /**
13234
13683
  * Disallow simple recursive function calls that can be replaced with a loop.
13235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
13684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
13236
13685
  */
13237
13686
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
13238
13687
  /**
13239
13688
  * Disallow unnecessary `Set` construction around `Set` methods.
13240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
13689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
13241
13690
  */
13242
13691
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
13243
13692
  /**
13244
13693
  * Disallow unnecessary spread.
13245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
13694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
13246
13695
  */
13247
13696
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
13248
13697
  /**
13249
13698
  * Disallow useless case in switch statements.
13250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
13699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
13251
13700
  */
13252
13701
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
13253
13702
  /**
13254
13703
  * Disallow useless template literal expressions.
13255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
13704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
13256
13705
  */
13257
13706
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
13258
13707
  /**
13259
13708
  * Disallow useless `undefined`.
13260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
13709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
13261
13710
  */
13262
13711
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
13263
13712
  /**
13264
13713
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
13265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
13714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
13266
13715
  */
13267
13716
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
13268
13717
  /**
13269
13718
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
13270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
13719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
13271
13720
  */
13272
13721
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
13273
13722
  /**
13274
- * Disallow number literals with zero fractions or dangling dots.
13275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
13723
+ * Require consistent decimal numbers without redundant zeros.
13724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
13276
13725
  */
13277
13726
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
13278
13727
  /**
13279
13728
  * Enforce proper case for numeric literals.
13280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
13729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
13281
13730
  */
13282
13731
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
13283
13732
  /**
13284
13733
  * Enforce the style of numeric separators by correctly grouping digits.
13285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
13734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
13286
13735
  */
13287
13736
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
13288
13737
  /**
13289
13738
  * Require assignment operator shorthand where possible.
13290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
13739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
13291
13740
  */
13292
13741
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
13293
13742
  /**
13294
13743
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
13295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
13744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
13296
13745
  */
13297
13746
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
13298
13747
  /**
13299
13748
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
13300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
13749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
13301
13750
  */
13302
13751
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
13303
13752
  /**
13304
13753
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
13305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
13754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
13306
13755
  */
13307
13756
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
13308
13757
  /**
13309
13758
  * Prefer an options object over a boolean in `.addEventListener()`.
13310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
13759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
13311
13760
  */
13312
13761
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
13313
13762
  /**
13314
13763
  * Prefer `AggregateError` when throwing collected errors.
13315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
13764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
13316
13765
  */
13317
13766
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
13318
13767
  /**
13319
13768
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
13320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
13769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
13321
13770
  */
13322
13771
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
13323
13772
  /**
13324
13773
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
13325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
13774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
13326
13775
  */
13327
13776
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
13328
13777
  /**
13329
13778
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
13330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
13779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
13331
13780
  */
13332
13781
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
13333
13782
  /**
13334
13783
  * Prefer `Array.fromAsync()` over array accumulation loops.
13335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
13784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
13336
13785
  */
13337
13786
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
13338
13787
  /**
13339
13788
  * Prefer using the `Array.from()` mapping function argument.
13340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
13789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
13341
13790
  */
13342
13791
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
13343
13792
  /**
13344
13793
  * Prefer `Array.from({length}, …)` when creating range arrays.
13345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
13794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
13346
13795
  */
13347
13796
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
13348
13797
  /**
13349
13798
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
13350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
13799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
13351
13800
  */
13352
13801
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
13353
13802
  /**
13354
13803
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
13355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
13804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
13356
13805
  */
13357
13806
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
13358
13807
  /**
13359
13808
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
13360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
13809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
13361
13810
  */
13362
13811
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
13363
13812
  /**
13364
13813
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
13365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
13814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
13366
13815
  */
13367
13816
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
13368
13817
  /**
13369
13818
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
13370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
13819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
13371
13820
  */
13372
13821
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
13373
13822
  /**
13374
13823
  * Prefer `.at()` method for index access and `String#charAt()`.
13375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
13824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
13376
13825
  */
13377
13826
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
13378
13827
  /**
13379
13828
  * Prefer `await` over promise chaining.
13380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
13829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
13381
13830
  */
13382
13831
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
13383
13832
  /**
13384
13833
  * Prefer `BigInt` literals over the constructor.
13385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
13834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
13386
13835
  */
13387
13836
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
13388
13837
  /**
13389
13838
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
13390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
13839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
13391
13840
  */
13392
13841
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
13393
13842
  /**
13394
13843
  * Prefer block statements over IIFEs used only for scoping.
13395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
13844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
13396
13845
  */
13397
13846
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
13398
13847
  /**
13399
13848
  * Prefer directly returning boolean expressions over `if` statements.
13400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
13849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
13401
13850
  */
13402
13851
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
13403
13852
  /**
13404
13853
  * Prefer class field declarations over `this` assignments in constructors.
13405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
13854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
13406
13855
  */
13407
13856
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
13408
13857
  /**
13409
13858
  * Prefer using `Element#classList.toggle()` to toggle class names.
13410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
13859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
13411
13860
  */
13412
13861
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
13413
13862
  /**
13414
13863
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
13415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
13864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
13416
13865
  */
13417
13866
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
13418
13867
  /**
13419
13868
  * Prefer combining consecutive guards with identical exit statements.
13420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
13869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
13421
13870
  */
13422
13871
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
13423
13872
  /**
13424
13873
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
13425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
13874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
13426
13875
  */
13427
13876
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
13428
13877
  /**
13429
13878
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
13430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
13879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
13431
13880
  */
13432
13881
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
13433
13882
  /**
13434
- * Prefer default parameters over reassignment.
13435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
13883
+ * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
13884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
13436
13885
  */
13437
13886
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
13438
13887
  /**
13439
13888
  * Prefer direct iteration over default iterator method calls.
13440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
13889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
13441
13890
  */
13442
13891
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
13443
13892
  /**
13444
13893
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
13445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
13894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
13446
13895
  */
13447
13896
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
13448
13897
  /**
13449
13898
  * Prefer `Element#append()` over `Node#appendChild()`.
13450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
13899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
13451
13900
  */
13452
13901
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
13453
13902
  /**
13454
13903
  * Renamed to `unicorn/dom-node-dataset`.
13455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
13904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
13456
13905
  * @deprecated
13457
13906
  */
13458
13907
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
13459
13908
  /**
13460
13909
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
13461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
13910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
13462
13911
  */
13463
13912
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
13464
13913
  /**
13465
13914
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
13466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
13915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
13467
13916
  */
13468
13917
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
13469
13918
  /**
13470
13919
  * Prefer `.replaceChildren()` when replacing DOM children.
13471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
13920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
13472
13921
  */
13473
13922
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
13474
13923
  /**
13475
13924
  * Prefer `.textContent` over `.innerText`.
13476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
13925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
13477
13926
  */
13478
13927
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
13479
13928
  /**
13480
13929
  * Prefer early returns over conditionals wrapping the remainder of the function body.
13481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
13930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
13482
13931
  */
13483
13932
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
13484
13933
  /**
13485
13934
  * Prefer `else if` over adjacent `if` statements with related conditions.
13486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
13935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
13487
13936
  */
13488
13937
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
13489
13938
  /**
13490
13939
  * Prefer `Error.isError()` when checking for errors.
13491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
13940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
13492
13941
  */
13493
13942
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
13943
+ /**
13944
+ * Prefer escape sequences for irregular whitespace characters.
13945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
13946
+ */
13947
+ 'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
13494
13948
  /**
13495
13949
  * Prefer `EventTarget` over `EventEmitter`.
13496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
13950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
13497
13951
  */
13498
13952
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
13499
13953
  /**
13500
- * Prefer explicit viewport units.
13501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
13954
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
13955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
13956
+ * @deprecated
13502
13957
  */
13503
- 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
13958
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
13504
13959
  /**
13505
13960
  * Prefer `export…from` when re-exporting.
13506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
13961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
13507
13962
  */
13508
13963
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
13509
13964
  /**
13510
13965
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
13511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
13966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
13512
13967
  */
13513
13968
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
13514
13969
  /**
13515
13970
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
13516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
13971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
13517
13972
  */
13518
13973
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
13519
13974
  /**
13520
13975
  * Prefer global numeric constants over `Number` static properties.
13521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
13976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
13522
13977
  */
13523
13978
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
13524
13979
  /**
13525
13980
  * Prefer `globalThis` over `window`, `self`, and `global`.
13526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
13981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
13527
13982
  */
13528
13983
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
13529
13984
  /**
13530
13985
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
13531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
13986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
13532
13987
  */
13533
13988
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
13534
13989
  /**
13535
13990
  * Prefer `.has()` when checking existence.
13536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
13991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
13537
13992
  */
13538
13993
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
13539
13994
  /**
13540
13995
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
13541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
13996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
13542
13997
  */
13543
13998
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
13544
13999
  /**
13545
14000
  * Prefer HTTPS over HTTP.
13546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
14001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
13547
14002
  */
13548
14003
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
13549
14004
  /**
13550
14005
  * Prefer identifiers over string literals in import and export specifiers.
13551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
14006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
13552
14007
  */
13553
14008
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
13554
14009
  /**
13555
14010
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
13556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
14011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
13557
14012
  */
13558
14013
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
13559
14014
  /**
13560
14015
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
13561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
14016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
13562
14017
  */
13563
14018
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
13564
14019
  /**
13565
14020
  * Prefer `.includes()` over repeated equality comparisons.
13566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
14021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
13567
14022
  */
13568
14023
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
13569
14024
  /**
13570
14025
  * Prefer passing iterables directly to constructors instead of filling empty collections.
13571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
14026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
13572
14027
  */
13573
14028
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
13574
14029
  /**
13575
14030
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
13576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
14031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
13577
14032
  */
13578
14033
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
13579
14034
  /**
13580
14035
  * Prefer iterator helpers over temporary arrays from iterators.
13581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
14036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
13582
14037
  */
13583
14038
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
13584
14039
  /**
13585
14040
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
13586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
14041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
13587
14042
  */
13588
14043
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
13589
14044
  /**
13590
14045
  * Prefer moving `.toArray()` to the end of iterator helper chains.
13591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
14046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
13592
14047
  */
13593
14048
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
13594
14049
  /**
13595
14050
  * Prefer `Iterator.zip()` over parallel-array indexing.
13596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
14051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
13597
14052
  */
13598
14053
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
13599
14054
  /**
13600
14055
  * Prefer JSON imports over reading and parsing JSON files.
13601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
14056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
13602
14057
  */
13603
14058
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
13604
14059
  /**
13605
14060
  * Renamed to `unicorn/consistent-json-file-read`.
13606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
14061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
13607
14062
  * @deprecated
13608
14063
  */
13609
14064
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
13610
14065
  /**
13611
14066
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
13612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
14067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
13613
14068
  */
13614
14069
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
14070
+ /**
14071
+ * Prefer literal printable ASCII characters over escape sequences.
14072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
14073
+ */
14074
+ 'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
13615
14075
  /**
13616
14076
  * Prefer `location.assign()` over assigning to `location.href`.
13617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
14077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
13618
14078
  */
13619
14079
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
13620
14080
  /**
13621
14081
  * Prefer using a logical operator over a ternary.
13622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
14082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
13623
14083
  */
13624
14084
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
13625
14085
  /**
13626
14086
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
13627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
14087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
13628
14088
  */
13629
14089
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
13630
14090
  /**
13631
14091
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
13632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
14092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
13633
14093
  */
13634
14094
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
13635
14095
  /**
13636
14096
  * Prefer `Math` constants over their approximate numeric values.
13637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
14097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
13638
14098
  */
13639
14099
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
13640
14100
  /**
13641
14101
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
13642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
14102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
13643
14103
  */
13644
14104
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
13645
14105
  /**
13646
14106
  * Prefer `Math.trunc()` for truncating numbers.
13647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
14107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
13648
14108
  */
13649
14109
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
13650
14110
  /**
13651
- * Prefer modern media feature range syntax.
13652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
14111
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
14112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
14113
+ * @deprecated
13653
14114
  */
13654
14115
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
13655
14116
  /**
13656
14117
  * Prefer moving ternaries into the minimal varying part of an expression.
13657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
14118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
13658
14119
  */
13659
14120
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
13660
14121
  /**
13661
14122
  * Prefer modern DOM APIs.
13662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
14123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
13663
14124
  */
13664
14125
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
13665
14126
  /**
13666
14127
  * Prefer modern `Math` APIs over legacy patterns.
13667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
14128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
13668
14129
  */
13669
14130
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
13670
14131
  /**
13671
14132
  * Prefer JavaScript modules (ESM) over CommonJS.
13672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
14133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
13673
14134
  */
13674
14135
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
13675
14136
  /**
13676
14137
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
13677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
14138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
13678
14139
  */
13679
14140
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
13680
14141
  /**
13681
14142
  * Prefer negative index over `.length - index` when possible.
13682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
14143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
13683
14144
  */
13684
14145
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
13685
14146
  /**
13686
14147
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
13687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
14148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
13688
14149
  */
13689
14150
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
13690
14151
  /**
13691
14152
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
13692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
14153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
13693
14154
  */
13694
14155
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
13695
14156
  /**
13696
14157
  * Prefer `Number.isSafeInteger()` over integer checks.
13697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
14158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
13698
14159
  */
13699
14160
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
13700
14161
  /**
13701
14162
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
13702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
14163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
13703
14164
  */
13704
14165
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
13705
14166
  /**
13706
14167
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
13707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
14168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
13708
14169
  */
13709
14170
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
13710
14171
  /**
13711
14172
  * Prefer object destructuring defaults over default object literals with spread.
13712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
14173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
13713
14174
  */
13714
14175
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
13715
14176
  /**
13716
14177
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
13717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
14178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
13718
14179
  */
13719
14180
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
13720
14181
  /**
13721
14182
  * Prefer the most specific `Object` iterable method.
13722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
14183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
13723
14184
  */
13724
14185
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
13725
14186
  /**
13726
14187
  * Prefer observer APIs over resize and scroll listeners with layout reads.
13727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
14188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
13728
14189
  */
13729
14190
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
13730
14191
  /**
13731
14192
  * Prefer omitting the `catch` binding parameter.
13732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
14193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
13733
14194
  */
13734
14195
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
13735
14196
  /**
13736
14197
  * Prefer `Path2D` for repeatedly drawn canvas paths.
13737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
14198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
13738
14199
  */
13739
14200
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
13740
14201
  /**
13741
14202
  * Prefer private class fields over the underscore-prefix convention.
13742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
14203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
13743
14204
  */
13744
14205
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
14206
+ /**
14207
+ * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
14208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
14209
+ */
14210
+ 'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
13745
14211
  /**
13746
14212
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
13747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
14213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
13748
14214
  */
13749
14215
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
13750
14216
  /**
13751
14217
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
13752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
14218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
13753
14219
  */
13754
14220
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
13755
14221
  /**
13756
14222
  * Prefer borrowing methods from the prototype instead of the instance.
13757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
14223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
13758
14224
  */
13759
14225
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
13760
14226
  /**
13761
14227
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
13762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
14228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
13763
14229
  */
13764
14230
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
13765
14231
  /**
13766
14232
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
13767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
14233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
13768
14234
  */
13769
14235
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
13770
14236
  /**
13771
14237
  * Prefer `Reflect.apply()` over `Function#apply()`.
13772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
14238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
13773
14239
  */
13774
14240
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
13775
14241
  /**
13776
14242
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
13777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
14243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
13778
14244
  */
13779
14245
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
13780
14246
  /**
13781
14247
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
13782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
14248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
13783
14249
  */
13784
14250
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
13785
14251
  /**
13786
14252
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
13787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
14253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
13788
14254
  */
13789
14255
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
13790
14256
  /**
13791
14257
  * Prefer `:scope` when using element query selector methods.
13792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
14258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
13793
14259
  */
13794
14260
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
13795
14261
  /**
13796
14262
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
13797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
14263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
13798
14264
  */
13799
14265
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
13800
14266
  /**
13801
14267
  * Prefer `Set` methods for Set operations.
13802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
14268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
13803
14269
  */
13804
14270
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
13805
14271
  /**
13806
14272
  * Prefer using `Set#size` instead of `Array#length`.
13807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
14273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
13808
14274
  */
13809
14275
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
13810
14276
  /**
13811
14277
  * Prefer arrow function properties over methods with a single return.
13812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
14278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
13813
14279
  */
13814
14280
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
14281
+ /**
14282
+ * Prefer shorter alternatives to Unicode escape sequences.
14283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
14284
+ */
14285
+ 'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
13815
14286
  /**
13816
14287
  * Prefer simple conditions first in logical expressions.
13817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
14288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
13818
14289
  */
13819
14290
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
13820
14291
  /**
13821
14292
  * Prefer a simple comparison function for `Array#sort()`.
13822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
14293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
13823
14294
  */
13824
14295
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
13825
14296
  /**
13826
14297
  * Prefer simplified conditions.
13827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
14298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
13828
14299
  */
13829
- 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
14300
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
13830
14301
  /**
13831
14302
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
13832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
14303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
13833
14304
  */
13834
14305
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
13835
14306
  /**
13836
14307
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
13837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
14308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
13838
14309
  */
13839
14310
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
13840
14311
  /**
13841
14312
  * Prefer a single object destructuring declaration per local const source.
13842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
14313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
13843
14314
  */
13844
14315
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
13845
14316
  /**
13846
14317
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
13847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
14318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
13848
14319
  */
13849
14320
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
13850
14321
  /**
13851
14322
  * Prefer declaring variables in the smallest possible scope.
13852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
14323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
13853
14324
  */
13854
14325
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
13855
14326
  /**
13856
14327
  * Prefer `String#split()` with a limit.
13857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
14328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
13858
14329
  */
13859
14330
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
13860
14331
  /**
13861
14332
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
13862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
14333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
13863
14334
  */
13864
14335
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
13865
14336
  /**
13866
14337
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
13867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
14338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
13868
14339
  */
13869
14340
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
13870
14341
  /**
13871
14342
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
13872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
14343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
13873
14344
  */
13874
14345
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
13875
14346
  /**
13876
14347
  * Prefer using the `String.raw` tag to avoid escaping `\`.
13877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
14348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
13878
14349
  */
13879
14350
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
13880
14351
  /**
13881
14352
  * Prefer `String#repeat()` for repeated whitespace.
13882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
14353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
13883
14354
  */
13884
14355
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
13885
14356
  /**
13886
14357
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
13887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
14358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
13888
14359
  */
13889
14360
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
13890
14361
  /**
13891
14362
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
13892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
14363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
13893
14364
  */
13894
14365
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
13895
14366
  /**
13896
14367
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
13897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
14368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
13898
14369
  */
13899
14370
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
13900
14371
  /**
13901
14372
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
13902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
14373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
13903
14374
  */
13904
14375
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
13905
14376
  /**
13906
14377
  * Prefer using `structuredClone` to create a deep clone.
13907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
14378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
13908
14379
  */
13909
14380
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13910
14381
  /**
13911
14382
  * Prefer `switch` over multiple `else-if`.
13912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
14383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
13913
14384
  */
13914
14385
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
13915
14386
  /**
13916
14387
  * Prefer `Temporal` over `Date`.
13917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
14388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
13918
14389
  */
13919
14390
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
13920
14391
  /**
13921
14392
  * Prefer direct Temporal conversion methods.
13922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
14393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
13923
14394
  */
13924
14395
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
13925
14396
  /**
13926
14397
  * Prefer ternary expressions over simple `if` statements that return or assign values.
13927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
14398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
13928
14399
  */
13929
14400
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
13930
14401
  /**
13931
14402
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
13932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
14403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
13933
14404
  */
13934
14405
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
13935
14406
  /**
13936
14407
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
13937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
14408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
13938
14409
  */
13939
14410
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
13940
14411
  /**
13941
14412
  * Prefer top-level await over top-level promises and async function calls.
13942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
14413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
13943
14414
  */
13944
14415
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
13945
14416
  /**
13946
14417
  * Enforce throwing `TypeError` in type checking conditions.
13947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
14418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
13948
14419
  */
13949
14420
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
13950
14421
  /**
13951
14422
  * Require type literals to be last in union types.
13952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
14423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
13953
14424
  */
13954
14425
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
13955
14426
  /**
13956
14427
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
13957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
14428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
13958
14429
  */
13959
14430
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
13960
14431
  /**
13961
14432
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
13962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
14433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
13963
14434
  */
13964
14435
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
13965
14436
  /**
13966
14437
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
13967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
14438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
13968
14439
  */
13969
14440
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
13970
14441
  /**
13971
14442
  * Prefer Unicode code point escapes over legacy escape sequences.
13972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
14443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
13973
14444
  */
13974
14445
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
13975
14446
  /**
13976
14447
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
13977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
14448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
13978
14449
  */
13979
14450
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
13980
14451
  /**
13981
14452
  * Prefer `URL#href` over stringifying a `URL`.
13982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
14453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
13983
14454
  */
13984
14455
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
13985
14456
  /**
13986
14457
  * Prefer `URLSearchParams` over manually splitting query strings.
13987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
14458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
13988
14459
  */
13989
14460
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
13990
14461
  /**
13991
14462
  * Prefer putting the condition in the while statement.
13992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
14463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
13993
14464
  */
13994
14465
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
13995
14466
  /**
13996
14467
  * Renamed to `unicorn/name-replacements`.
13997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
14468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
13998
14469
  * @deprecated
13999
14470
  */
14000
14471
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
14001
14472
  /**
14002
14473
  * Enforce consistent relative URL style.
14003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
14474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
14004
14475
  */
14005
14476
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
14006
14477
  /**
14007
14478
  * Enforce using the separator argument with `Array#join()`.
14008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
14479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
14009
14480
  */
14010
14481
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
14011
14482
  /**
14012
14483
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
14013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
14484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
14014
14485
  */
14015
14486
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
14016
14487
  /**
14017
14488
  * Require `CSS.escape()` for interpolated values in CSS selectors.
14018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
14489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
14019
14490
  */
14020
14491
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
14021
14492
  /**
14022
14493
  * Require configured YAML frontmatter fields.
14023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
14494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
14024
14495
  */
14025
14496
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
14026
14497
  /**
14027
14498
  * Require non-empty module attributes for imports and exports
14028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
14499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
14029
14500
  */
14030
14501
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
14031
14502
  /**
14032
14503
  * Require non-empty specifier list in import and export statements.
14033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
14504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
14034
14505
  */
14035
14506
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
14036
14507
  /**
14037
14508
  * Enforce using the digits argument with `Number#toFixed()`.
14038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
14509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
14039
14510
  */
14040
14511
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
14041
14512
  /**
14042
14513
  * Require passive event listeners for high-frequency events.
14043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
14514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
14044
14515
  */
14045
14516
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
14046
14517
  /**
14047
14518
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
14048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
14519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
14049
14520
  */
14050
14521
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
14051
14522
  /**
14052
14523
  * Require boolean-returning Proxy traps to return booleans.
14053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
14524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
14054
14525
  */
14055
14526
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
14527
+ /**
14528
+ * Require streaming decoding of fetch-body chunks with `TextDecoder`.
14529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
14530
+ */
14531
+ 'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
14056
14532
  /**
14057
14533
  * Enforce a consistent style for single-line block comments.
14058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
14534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
14059
14535
  */
14060
14536
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
14061
14537
  /**
14062
14538
  * Enforce better string content.
14063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
14539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
14064
14540
  */
14065
14541
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
14066
14542
  /**
14067
14543
  * Enforce consistent brace style for `case` clauses.
14068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
14544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
14069
14545
  */
14070
14546
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
14071
14547
  /**
14072
14548
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
14073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
14549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
14074
14550
  */
14075
14551
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
14076
14552
  /**
14077
14553
  * Fix whitespace-insensitive template indentation.
14078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
14554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
14079
14555
  */
14080
14556
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
14081
14557
  /**
14082
14558
  * Enforce consistent case for text encoding identifiers.
14083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
14559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
14084
14560
  */
14085
14561
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
14086
14562
  /**
14087
14563
  * Require `new` when creating an error.
14088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
14564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
14089
14565
  */
14090
14566
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
14091
14567
  /**
14092
14568
  * Limit the complexity of `try` blocks.
14093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
14569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
14094
14570
  */
14095
14571
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
14096
14572
  }
@@ -14256,6 +14732,11 @@ interface _UnicornImportStyle_ModuleStyles {
14256
14732
  interface _UnicornImportStyle_BooleanObject {
14257
14733
  [k: string]: boolean | undefined;
14258
14734
  }
14735
+ // ----- unicorn/indent -----
14736
+ type UnicornIndent = [] | [{
14737
+ indent?: ("tab" | number);
14738
+ tabWidth?: number;
14739
+ }];
14259
14740
  // ----- unicorn/isolated-functions -----
14260
14741
  type UnicornIsolatedFunctions = [] | [{
14261
14742
  overrideGlobals?: {
@@ -14267,6 +14748,15 @@ type UnicornIsolatedFunctions = [] | [{
14267
14748
  }];
14268
14749
  // ----- unicorn/iteration-fallback-style -----
14269
14750
  type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
14751
+ // ----- unicorn/key-name-casing -----
14752
+ type UnicornKeyNameCasing = [] | [{
14753
+ camelCase?: boolean;
14754
+ PascalCase?: boolean;
14755
+ SCREAMING_SNAKE_CASE?: boolean;
14756
+ "kebab-case"?: boolean;
14757
+ snake_case?: boolean;
14758
+ ignore?: string[];
14759
+ }];
14270
14760
  // ----- unicorn/logical-assignment-operators -----
14271
14761
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
14272
14762
  enforceForIfStatements?: boolean;
@@ -14321,10 +14811,6 @@ type UnicornNoArraySort = [] | [{
14321
14811
  type UnicornNoBreakInNestedLoop = [] | [{
14322
14812
  checkContinue?: boolean;
14323
14813
  }];
14324
- // ----- unicorn/no-deprecated-css-features -----
14325
- type UnicornNoDeprecatedCssFeatures = [] | [{
14326
- allow?: string[];
14327
- }];
14328
14814
  // ----- unicorn/no-empty-file -----
14329
14815
  type UnicornNoEmptyFile = [] | [{
14330
14816
  allowComments?: boolean;
@@ -14373,9 +14859,9 @@ type UnicornNoNull = [] | [{
14373
14859
  type UnicornNoTypeofUndefined = [] | [{
14374
14860
  checkGlobalVariables?: boolean;
14375
14861
  }];
14376
- // ----- unicorn/no-unknown-pseudo-selectors -----
14377
- type UnicornNoUnknownPseudoSelectors = [] | [{
14378
- allow?: string[];
14862
+ // ----- unicorn/no-unnecessary-parameters -----
14863
+ type UnicornNoUnnecessaryParameters = [] | [{
14864
+ minimumCallCount?: number;
14379
14865
  }];
14380
14866
  // ----- unicorn/no-unnecessary-polyfills -----
14381
14867
  type UnicornNoUnnecessaryPolyfills = [] | [{
@@ -14387,10 +14873,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
14387
14873
  type UnicornNoUnreadableArrayDestructuring = [] | [{
14388
14874
  maximumIgnoredElements?: number;
14389
14875
  }];
14390
- // ----- unicorn/no-unscoped-css-nesting-selector -----
14391
- type UnicornNoUnscopedCssNestingSelector = [] | [{
14392
- scopingRootAtRules?: string[];
14393
- }];
14394
14876
  // ----- unicorn/no-useless-undefined -----
14395
14877
  type UnicornNoUselessUndefined = [] | [{
14396
14878
  checkArguments?: boolean;
@@ -14447,6 +14929,7 @@ type UnicornPreferAt = [] | [{
14447
14929
  // ----- unicorn/prefer-combined-guards -----
14448
14930
  type UnicornPreferCombinedGuards = [] | [{
14449
14931
  checkCompoundConditions?: boolean;
14932
+ checkMultiStatementBodies?: boolean;
14450
14933
  }];
14451
14934
  // ----- unicorn/prefer-continue -----
14452
14935
  type UnicornPreferContinue = [] | [{
@@ -14463,10 +14946,6 @@ type UnicornPreferEarlyReturn = [] | [{
14463
14946
  maximumStatements?: number;
14464
14947
  checkShortBodies?: boolean;
14465
14948
  }];
14466
- // ----- unicorn/prefer-explicit-viewport-units -----
14467
- type UnicornPreferExplicitViewportUnits = [] | [{
14468
- unit?: ("dvh" | "svh" | "lvh");
14469
- }];
14470
14949
  // ----- unicorn/prefer-export-from -----
14471
14950
  type UnicornPreferExportFrom = [] | [{
14472
14951
  checkUsedVariables?: boolean;
@@ -14510,6 +14989,10 @@ type UnicornPreferSetHas = [] | [{
14510
14989
  }];
14511
14990
  // ----- unicorn/prefer-short-arrow-method -----
14512
14991
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
14992
+ // ----- unicorn/prefer-simplified-conditions -----
14993
+ type UnicornPreferSimplifiedConditions = [] | [{
14994
+ negatedConditions?: ("simplify" | "expand");
14995
+ }];
14513
14996
  // ----- unicorn/prefer-single-call -----
14514
14997
  type UnicornPreferSingleCall = [] | [{
14515
14998
  ignore?: string[];
@@ -15039,11 +15522,8 @@ type YmlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
15039
15522
  //#region src/config/yml.d.ts
15040
15523
  export declare function yml(options?: yml.Options): Promise<[Config, Config]>;
15041
15524
  export declare namespace yml {
15042
- interface Options extends PluginOptionsBase<Rules> {}
15043
- type Rules = RuleOptions;
15044
- }
15045
- declare namespace config_d_exports {
15046
- export { e18e, es, githubActions, ignores, imports, jsdoc, jsonc, jsx, markdown, next, node, perfectionist, react, stylistic, test, ts, unicorn, unusedImports, yml };
15525
+ interface Options extends PluginOptionsBase<Rules>, PluginOptionsSchema {}
15526
+ type Rules = RuleOptions & RuleOptions$13;
15047
15527
  }
15048
15528
  //#endregion
15049
15529
  //#region src/defineConfig.d.ts
@@ -15073,6 +15553,7 @@ export interface DefineConfigOptions extends ignores.Options {
15073
15553
  'react'?: boolean | react.Options | undefined;
15074
15554
  'stylistic'?: boolean | stylistic.Options | undefined;
15075
15555
  'test'?: boolean | test.Options | undefined;
15556
+ 'toml'?: boolean | toml.Options | undefined;
15076
15557
  'ts'?: boolean | ts.Options | undefined;
15077
15558
  'unicorn'?: boolean | unicorn.Options | undefined;
15078
15559
  'unused-imports'?: boolean | unusedImports.Options | undefined;
@@ -15122,4 +15603,5 @@ export declare const restrictedImportPaths: Readonly<RestrictedImportPaths>;
15122
15603
  */
15123
15604
  export declare const restrictedSyntax: Readonly<RestrictedSyntax>;
15124
15605
  //#endregion
15606
+ export {};
15125
15607
  //# sourceMappingURL=index.d.ts.map