@jsse/eslint-config 0.2.27 → 0.2.29

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
@@ -9841,17 +9841,16 @@ interface PerfectionistRuleOptions {
9841
9841
  * @see https://perfectionist.dev/rules/sort-array-includes
9842
9842
  */
9843
9843
  "perfectionist/sort-array-includes"?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
9844
- /**
9845
- * Enforce sorted Astro attributes.
9846
- * @see https://perfectionist.dev/rules/sort-astro-attributes
9847
- * @deprecated
9848
- */
9849
- "perfectionist/sort-astro-attributes"?: Linter.RuleEntry<PerfectionistSortAstroAttributes>;
9850
9844
  /**
9851
9845
  * Enforce sorted classes.
9852
9846
  * @see https://perfectionist.dev/rules/sort-classes
9853
9847
  */
9854
9848
  "perfectionist/sort-classes"?: Linter.RuleEntry<PerfectionistSortClasses>;
9849
+ /**
9850
+ * Enforce sorted decorators.
9851
+ * @see https://perfectionist.dev/rules/sort-decorators
9852
+ */
9853
+ "perfectionist/sort-decorators"?: Linter.RuleEntry<PerfectionistSortDecorators>;
9855
9854
  /**
9856
9855
  * Enforce sorted TypeScript enums.
9857
9856
  * @see https://perfectionist.dev/rules/sort-enums
@@ -9862,6 +9861,11 @@ interface PerfectionistRuleOptions {
9862
9861
  * @see https://perfectionist.dev/rules/sort-exports
9863
9862
  */
9864
9863
  "perfectionist/sort-exports"?: Linter.RuleEntry<PerfectionistSortExports>;
9864
+ /**
9865
+ * Enforce sorted heritage clauses.
9866
+ * @see https://perfectionist.dev/rules/sort-heritage-clauses
9867
+ */
9868
+ "perfectionist/sort-heritage-clauses"?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
9865
9869
  /**
9866
9870
  * Enforce sorted imports.
9867
9871
  * @see https://perfectionist.dev/rules/sort-imports
@@ -9887,6 +9891,11 @@ interface PerfectionistRuleOptions {
9887
9891
  * @see https://perfectionist.dev/rules/sort-maps
9888
9892
  */
9889
9893
  "perfectionist/sort-maps"?: Linter.RuleEntry<PerfectionistSortMaps>;
9894
+ /**
9895
+ * Enforce sorted modules.
9896
+ * @see https://perfectionist.dev/rules/sort-modules
9897
+ */
9898
+ "perfectionist/sort-modules"?: Linter.RuleEntry<PerfectionistSortModules>;
9890
9899
  /**
9891
9900
  * Enforce sorted named exports.
9892
9901
  * @see https://perfectionist.dev/rules/sort-named-exports
@@ -9912,12 +9921,6 @@ interface PerfectionistRuleOptions {
9912
9921
  * @see https://perfectionist.dev/rules/sort-sets
9913
9922
  */
9914
9923
  "perfectionist/sort-sets"?: Linter.RuleEntry<PerfectionistSortSets>;
9915
- /**
9916
- * Enforce sorted Svelte attributes.
9917
- * @see https://perfectionist.dev/rules/sort-svelte-attributes
9918
- * @deprecated
9919
- */
9920
- "perfectionist/sort-svelte-attributes"?: Linter.RuleEntry<PerfectionistSortSvelteAttributes>;
9921
9924
  /**
9922
9925
  * Enforce sorted switch cases.
9923
9926
  * @see https://perfectionist.dev/rules/sort-switch-case
@@ -9933,12 +9936,6 @@ interface PerfectionistRuleOptions {
9933
9936
  * @see https://perfectionist.dev/rules/sort-variable-declarations
9934
9937
  */
9935
9938
  "perfectionist/sort-variable-declarations"?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
9936
- /**
9937
- * Enforce sorted Vue attributes.
9938
- * @see https://perfectionist.dev/rules/sort-vue-attributes
9939
- * @deprecated
9940
- */
9941
- "perfectionist/sort-vue-attributes"?: Linter.RuleEntry<PerfectionistSortVueAttributes>;
9942
9939
  }
9943
9940
 
9944
9941
  /* ======= Declarations ======= */
@@ -9947,153 +9944,161 @@ type PerfectionistSortArrayIncludes =
9947
9944
  | []
9948
9945
  | [
9949
9946
  {
9950
- type?: "alphabetical" | "natural" | "line-length";
9951
-
9952
- order?: "asc" | "desc";
9947
+ partitionByComment?: string[] | boolean | string;
9953
9948
 
9954
- matcher?: "minimatch" | "regex";
9949
+ groupKind?: "mixed" | "literals-first" | "spreads-first";
9955
9950
 
9956
- ignoreCase?: boolean;
9951
+ partitionByNewLine?: boolean;
9957
9952
 
9958
9953
  specialCharacters?: "remove" | "trim" | "keep";
9959
9954
 
9960
- groupKind?: "mixed" | "literals-first" | "spreads-first";
9955
+ ignoreCase?: boolean;
9961
9956
 
9962
- partitionByComment?: string[] | boolean | string;
9957
+ locales?: string | string[];
9963
9958
 
9964
- partitionByNewLine?: boolean;
9959
+ order?: "asc" | "desc";
9960
+
9961
+ type?: "alphabetical" | "natural" | "line-length";
9965
9962
  },
9966
9963
  ];
9967
- // ----- perfectionist/sort-astro-attributes -----
9968
- type PerfectionistSortAstroAttributes =
9964
+ // ----- perfectionist/sort-classes -----
9965
+ type PerfectionistSortClasses =
9969
9966
  | []
9970
9967
  | [
9971
9968
  {
9972
- type?: "alphabetical" | "natural" | "line-length";
9969
+ customGroups?: (
9970
+ | {
9971
+ groupName?: string;
9972
+
9973
+ type?: "alphabetical" | "line-length" | "natural" | "unsorted";
9974
+
9975
+ order?: "desc" | "asc";
9976
+ anyOf?: {
9977
+ modifiers?: (
9978
+ | "async"
9979
+ | "protected"
9980
+ | "private"
9981
+ | "public"
9982
+ | "static"
9983
+ | "abstract"
9984
+ | "override"
9985
+ | "readonly"
9986
+ | "decorated"
9987
+ | "declare"
9988
+ | "optional"
9989
+ )[];
9990
+
9991
+ elementValuePattern?: string;
9992
+
9993
+ decoratorNamePattern?: string;
9994
+
9995
+ selector?:
9996
+ | "accessor-property"
9997
+ | "index-signature"
9998
+ | "constructor"
9999
+ | "static-block"
10000
+ | "get-method"
10001
+ | "set-method"
10002
+ | "function-property"
10003
+ | "property"
10004
+ | "method";
10005
+
10006
+ elementNamePattern?: string;
10007
+ }[];
10008
+ }
10009
+ | {
10010
+ groupName?: string;
10011
+
10012
+ type?: "alphabetical" | "line-length" | "natural" | "unsorted";
10013
+
10014
+ order?: "desc" | "asc";
10015
+
10016
+ modifiers?: (
10017
+ | "async"
10018
+ | "protected"
10019
+ | "private"
10020
+ | "public"
10021
+ | "static"
10022
+ | "abstract"
10023
+ | "override"
10024
+ | "readonly"
10025
+ | "decorated"
10026
+ | "declare"
10027
+ | "optional"
10028
+ )[];
10029
+
10030
+ elementValuePattern?: string;
10031
+
10032
+ decoratorNamePattern?: string;
10033
+
10034
+ selector?:
10035
+ | "accessor-property"
10036
+ | "index-signature"
10037
+ | "constructor"
10038
+ | "static-block"
10039
+ | "get-method"
10040
+ | "set-method"
10041
+ | "function-property"
10042
+ | "property"
10043
+ | "method";
10044
+
10045
+ elementNamePattern?: string;
10046
+ }
10047
+ )[];
9973
10048
 
9974
- order?: "asc" | "desc";
10049
+ ignoreCallbackDependenciesPatterns?: string[];
9975
10050
 
9976
- matcher?: "minimatch" | "regex";
10051
+ partitionByComment?: string[] | boolean | string;
9977
10052
 
9978
- ignoreCase?: boolean;
10053
+ partitionByNewLine?: boolean;
9979
10054
 
9980
10055
  specialCharacters?: "remove" | "trim" | "keep";
9981
10056
 
10057
+ newlinesBetween?: "ignore" | "always" | "never";
10058
+
10059
+ ignoreCase?: boolean;
10060
+
10061
+ locales?: string | string[];
10062
+
9982
10063
  groups?: (string | string[])[];
9983
10064
 
9984
- customGroups?: {
9985
- [k: string]: (string | string[]) | undefined;
9986
- };
10065
+ order?: "asc" | "desc";
10066
+
10067
+ type?: "alphabetical" | "natural" | "line-length";
9987
10068
  },
9988
10069
  ];
9989
- // ----- perfectionist/sort-classes -----
9990
- type PerfectionistSortClasses =
10070
+ // ----- perfectionist/sort-decorators -----
10071
+ type PerfectionistSortDecorators =
9991
10072
  | []
9992
10073
  | [
9993
10074
  {
9994
- type?: "alphabetical" | "natural" | "line-length";
10075
+ partitionByComment?: string[] | boolean | string;
9995
10076
 
9996
- order?: "asc" | "desc";
10077
+ sortOnParameters?: boolean;
9997
10078
 
9998
- matcher?: "minimatch" | "regex";
10079
+ sortOnProperties?: boolean;
9999
10080
 
10000
- ignoreCase?: boolean;
10081
+ sortOnAccessors?: boolean;
10082
+
10083
+ sortOnMethods?: boolean;
10084
+
10085
+ sortOnClasses?: boolean;
10001
10086
 
10002
10087
  specialCharacters?: "remove" | "trim" | "keep";
10003
10088
 
10004
- partitionByComment?: string[] | boolean | string;
10089
+ customGroups?: {
10090
+ [k: string]: (string | string[]) | undefined;
10091
+ };
10092
+
10093
+ ignoreCase?: boolean;
10094
+
10095
+ locales?: string | string[];
10005
10096
 
10006
10097
  groups?: (string | string[])[];
10007
10098
 
10008
- customGroups?:
10009
- | {
10010
- [k: string]: (string | string[]) | undefined;
10011
- }
10012
- | (
10013
- | {
10014
- groupName?: string;
10015
-
10016
- type?:
10017
- | "alphabetical"
10018
- | "line-length"
10019
- | "natural"
10020
- | "unsorted";
10021
-
10022
- order?: "desc" | "asc";
10023
- anyOf?: {
10024
- selector?:
10025
- | "accessor-property"
10026
- | "index-signature"
10027
- | "constructor"
10028
- | "static-block"
10029
- | "get-method"
10030
- | "set-method"
10031
- | "function-property"
10032
- | "property"
10033
- | "method";
10034
-
10035
- modifiers?: (
10036
- | "protected"
10037
- | "private"
10038
- | "public"
10039
- | "static"
10040
- | "abstract"
10041
- | "override"
10042
- | "readonly"
10043
- | "decorated"
10044
- | "declare"
10045
- | "optional"
10046
- )[];
10047
-
10048
- elementNamePattern?: string;
10049
-
10050
- elementValuePattern?: string;
10051
-
10052
- decoratorNamePattern?: string;
10053
- }[];
10054
- }
10055
- | {
10056
- groupName?: string;
10057
-
10058
- type?:
10059
- | "alphabetical"
10060
- | "line-length"
10061
- | "natural"
10062
- | "unsorted";
10063
-
10064
- order?: "desc" | "asc";
10065
-
10066
- selector?:
10067
- | "accessor-property"
10068
- | "index-signature"
10069
- | "constructor"
10070
- | "static-block"
10071
- | "get-method"
10072
- | "set-method"
10073
- | "function-property"
10074
- | "property"
10075
- | "method";
10076
-
10077
- modifiers?: (
10078
- | "protected"
10079
- | "private"
10080
- | "public"
10081
- | "static"
10082
- | "abstract"
10083
- | "override"
10084
- | "readonly"
10085
- | "decorated"
10086
- | "declare"
10087
- | "optional"
10088
- )[];
10089
-
10090
- elementNamePattern?: string;
10091
-
10092
- elementValuePattern?: string;
10093
-
10094
- decoratorNamePattern?: string;
10095
- }
10096
- )[];
10099
+ order?: "asc" | "desc";
10100
+
10101
+ type?: "alphabetical" | "natural" | "line-length";
10097
10102
  },
10098
10103
  ];
10099
10104
  // ----- perfectionist/sort-enums -----
@@ -10101,23 +10106,23 @@ type PerfectionistSortEnums =
10101
10106
  | []
10102
10107
  | [
10103
10108
  {
10104
- type?: "alphabetical" | "natural" | "line-length";
10109
+ partitionByComment?: string[] | boolean | string;
10105
10110
 
10106
- order?: "asc" | "desc";
10111
+ forceNumericSort?: boolean;
10107
10112
 
10108
- matcher?: "minimatch" | "regex";
10113
+ sortByValue?: boolean;
10109
10114
 
10110
- ignoreCase?: boolean;
10115
+ partitionByNewLine?: boolean;
10111
10116
 
10112
10117
  specialCharacters?: "remove" | "trim" | "keep";
10113
10118
 
10114
- sortByValue?: boolean;
10119
+ ignoreCase?: boolean;
10115
10120
 
10116
- forceNumericSort?: boolean;
10121
+ locales?: string | string[];
10117
10122
 
10118
- partitionByComment?: string[] | boolean | string;
10123
+ order?: "asc" | "desc";
10119
10124
 
10120
- partitionByNewLine?: boolean;
10125
+ type?: "alphabetical" | "natural" | "line-length";
10121
10126
  },
10122
10127
  ];
10123
10128
  // ----- perfectionist/sort-exports -----
@@ -10125,57 +10130,86 @@ type PerfectionistSortExports =
10125
10130
  | []
10126
10131
  | [
10127
10132
  {
10128
- type?: "alphabetical" | "natural" | "line-length";
10133
+ partitionByComment?: string[] | boolean | string;
10129
10134
 
10130
- order?: "asc" | "desc";
10135
+ groupKind?: "mixed" | "values-first" | "types-first";
10136
+
10137
+ partitionByNewLine?: boolean;
10131
10138
 
10132
- matcher?: "minimatch" | "regex";
10139
+ specialCharacters?: "remove" | "trim" | "keep";
10133
10140
 
10134
10141
  ignoreCase?: boolean;
10135
10142
 
10143
+ locales?: string | string[];
10144
+
10145
+ order?: "asc" | "desc";
10146
+
10147
+ type?: "alphabetical" | "natural" | "line-length";
10148
+ },
10149
+ ];
10150
+ // ----- perfectionist/sort-heritage-clauses -----
10151
+ type PerfectionistSortHeritageClauses =
10152
+ | []
10153
+ | [
10154
+ {
10136
10155
  specialCharacters?: "remove" | "trim" | "keep";
10137
10156
 
10138
- partitionByComment?: string[] | boolean | string;
10157
+ customGroups?: {
10158
+ [k: string]: (string | string[]) | undefined;
10159
+ };
10139
10160
 
10140
- partitionByNewLine?: boolean;
10161
+ ignoreCase?: boolean;
10141
10162
 
10142
- groupKind?: "mixed" | "values-first" | "types-first";
10163
+ locales?: string | string[];
10164
+
10165
+ groups?: (string | string[])[];
10166
+
10167
+ order?: "asc" | "desc";
10168
+
10169
+ type?: "alphabetical" | "natural" | "line-length";
10143
10170
  },
10144
10171
  ];
10145
10172
  // ----- perfectionist/sort-imports -----
10146
10173
  type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
10147
10174
  type _PerfectionistSortImportsSortImports =
10148
10175
  _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
10149
- type?: "alphabetical" | "natural" | "line-length";
10150
-
10151
- order?: "asc" | "desc";
10152
-
10153
- matcher?: "minimatch" | "regex";
10176
+ customGroups?: {
10177
+ value?: {
10178
+ [k: string]: unknown | undefined;
10179
+ };
10154
10180
 
10155
- ignoreCase?: boolean;
10181
+ type?: {
10182
+ [k: string]: unknown | undefined;
10183
+ };
10184
+ };
10156
10185
 
10157
- specialCharacters?: "remove" | "trim" | "keep";
10186
+ partitionByComment?: string[] | boolean | string;
10158
10187
 
10159
10188
  internalPattern?: string[];
10160
10189
 
10190
+ maxLineLength?: number;
10191
+
10161
10192
  sortSideEffects?: boolean;
10162
10193
 
10194
+ environment?: "node" | "bun";
10195
+
10196
+ tsconfigRootDir?: string;
10197
+
10198
+ partitionByNewLine?: boolean;
10199
+
10200
+ specialCharacters?: "remove" | "trim" | "keep";
10201
+
10163
10202
  newlinesBetween?: "ignore" | "always" | "never";
10164
10203
 
10165
- maxLineLength?: number;
10204
+ ignoreCase?: boolean;
10205
+
10206
+ locales?: string | string[];
10166
10207
 
10167
10208
  groups?: (string | string[])[];
10168
10209
 
10169
- customGroups?: {
10170
- type?: {
10171
- [k: string]: unknown | undefined;
10172
- };
10173
- value?: {
10174
- [k: string]: unknown | undefined;
10175
- };
10176
- };
10210
+ order?: "asc" | "desc";
10177
10211
 
10178
- environment?: "node" | "bun";
10212
+ type?: "alphabetical" | "natural" | "line-length";
10179
10213
  };
10180
10214
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType =
10181
10215
  | {
@@ -10191,29 +10225,31 @@ type PerfectionistSortInterfaces =
10191
10225
  | []
10192
10226
  | [
10193
10227
  {
10194
- type?: "alphabetical" | "natural" | "line-length";
10228
+ ignorePattern?: string[];
10195
10229
 
10196
- order?: "asc" | "desc";
10230
+ partitionByComment?: string[] | boolean | string;
10197
10231
 
10198
- matcher?: "minimatch" | "regex";
10232
+ groupKind?: "mixed" | "optional-first" | "required-first";
10199
10233
 
10200
- ignoreCase?: boolean;
10234
+ partitionByNewLine?: boolean;
10201
10235
 
10202
10236
  specialCharacters?: "remove" | "trim" | "keep";
10203
10237
 
10204
- ignorePattern?: string[];
10238
+ newlinesBetween?: "ignore" | "always" | "never";
10205
10239
 
10206
- partitionByComment?: boolean | string | string[];
10240
+ customGroups?: {
10241
+ [k: string]: (string | string[]) | undefined;
10242
+ };
10207
10243
 
10208
- partitionByNewLine?: boolean;
10244
+ ignoreCase?: boolean;
10209
10245
 
10210
- groupKind?: "mixed" | "optional-first" | "required-first";
10246
+ locales?: string | string[];
10211
10247
 
10212
10248
  groups?: (string | string[])[];
10213
10249
 
10214
- customGroups?: {
10215
- [k: string]: (string | string[]) | undefined;
10216
- };
10250
+ order?: "asc" | "desc";
10251
+
10252
+ type?: "alphabetical" | "natural" | "line-length";
10217
10253
  },
10218
10254
  ];
10219
10255
  // ----- perfectionist/sort-intersection-types -----
@@ -10221,21 +10257,23 @@ type PerfectionistSortIntersectionTypes =
10221
10257
  | []
10222
10258
  | [
10223
10259
  {
10224
- type?: "alphabetical" | "natural" | "line-length";
10260
+ partitionByComment?: string[] | boolean | string;
10225
10261
 
10226
- order?: "asc" | "desc";
10262
+ partitionByNewLine?: boolean;
10227
10263
 
10228
- matcher?: "minimatch" | "regex";
10264
+ specialCharacters?: "remove" | "trim" | "keep";
10265
+
10266
+ newlinesBetween?: "ignore" | "always" | "never";
10229
10267
 
10230
10268
  ignoreCase?: boolean;
10231
10269
 
10232
- specialCharacters?: "remove" | "trim" | "keep";
10270
+ locales?: string | string[];
10233
10271
 
10234
10272
  groups?: (string | string[])[];
10235
10273
 
10236
- partitionByComment?: string[] | boolean | string;
10274
+ order?: "asc" | "desc";
10237
10275
 
10238
- partitionByNewLine?: boolean;
10276
+ type?: "alphabetical" | "natural" | "line-length";
10239
10277
  },
10240
10278
  ];
10241
10279
  // ----- perfectionist/sort-jsx-props -----
@@ -10243,23 +10281,23 @@ type PerfectionistSortJsxProps =
10243
10281
  | []
10244
10282
  | [
10245
10283
  {
10246
- type?: "alphabetical" | "natural" | "line-length";
10284
+ ignorePattern?: string[];
10247
10285
 
10248
- order?: "asc" | "desc";
10286
+ specialCharacters?: "remove" | "trim" | "keep";
10249
10287
 
10250
- matcher?: "minimatch" | "regex";
10288
+ customGroups?: {
10289
+ [k: string]: (string | string[]) | undefined;
10290
+ };
10251
10291
 
10252
10292
  ignoreCase?: boolean;
10253
10293
 
10254
- specialCharacters?: "remove" | "trim" | "keep";
10255
-
10256
- ignorePattern?: string[];
10294
+ locales?: string | string[];
10257
10295
 
10258
10296
  groups?: (string | string[])[];
10259
10297
 
10260
- customGroups?: {
10261
- [k: string]: (string | string[]) | undefined;
10262
- };
10298
+ order?: "asc" | "desc";
10299
+
10300
+ type?: "alphabetical" | "natural" | "line-length";
10263
10301
  },
10264
10302
  ];
10265
10303
  // ----- perfectionist/sort-maps -----
@@ -10267,19 +10305,93 @@ type PerfectionistSortMaps =
10267
10305
  | []
10268
10306
  | [
10269
10307
  {
10270
- type?: "alphabetical" | "natural" | "line-length";
10308
+ partitionByComment?: string[] | boolean | string;
10271
10309
 
10272
- order?: "asc" | "desc";
10310
+ partitionByNewLine?: boolean;
10273
10311
 
10274
- matcher?: "minimatch" | "regex";
10312
+ specialCharacters?: "remove" | "trim" | "keep";
10275
10313
 
10276
10314
  ignoreCase?: boolean;
10277
10315
 
10278
- specialCharacters?: "remove" | "trim" | "keep";
10316
+ locales?: string | string[];
10317
+
10318
+ order?: "asc" | "desc";
10319
+
10320
+ type?: "alphabetical" | "natural" | "line-length";
10321
+ },
10322
+ ];
10323
+ // ----- perfectionist/sort-modules -----
10324
+ type PerfectionistSortModules =
10325
+ | []
10326
+ | [
10327
+ {
10328
+ customGroups?: (
10329
+ | {
10330
+ groupName?: string;
10331
+
10332
+ type?: "alphabetical" | "line-length" | "natural" | "unsorted";
10333
+
10334
+ order?: "desc" | "asc";
10335
+ anyOf?: {
10336
+ modifiers?: (
10337
+ | "async"
10338
+ | "declare"
10339
+ | "decorated"
10340
+ | "default"
10341
+ | "export"
10342
+ )[];
10343
+
10344
+ elementValuePattern?: string;
10345
+
10346
+ decoratorNamePattern?: string;
10347
+
10348
+ selector?: "enum" | "function" | "interface" | "type" | "class";
10349
+
10350
+ elementNamePattern?: string;
10351
+ }[];
10352
+ }
10353
+ | {
10354
+ groupName?: string;
10355
+
10356
+ type?: "alphabetical" | "line-length" | "natural" | "unsorted";
10357
+
10358
+ order?: "desc" | "asc";
10359
+
10360
+ modifiers?: (
10361
+ | "async"
10362
+ | "declare"
10363
+ | "decorated"
10364
+ | "default"
10365
+ | "export"
10366
+ )[];
10367
+
10368
+ elementValuePattern?: string;
10369
+
10370
+ decoratorNamePattern?: string;
10371
+
10372
+ selector?: "enum" | "function" | "interface" | "type" | "class";
10373
+
10374
+ elementNamePattern?: string;
10375
+ }
10376
+ )[];
10279
10377
 
10280
10378
  partitionByComment?: string[] | boolean | string;
10281
10379
 
10282
10380
  partitionByNewLine?: boolean;
10381
+
10382
+ specialCharacters?: "remove" | "trim" | "keep";
10383
+
10384
+ newlinesBetween?: "ignore" | "always" | "never";
10385
+
10386
+ ignoreCase?: boolean;
10387
+
10388
+ locales?: string | string[];
10389
+
10390
+ groups?: (string | string[])[];
10391
+
10392
+ order?: "asc" | "desc";
10393
+
10394
+ type?: "alphabetical" | "natural" | "line-length";
10283
10395
  },
10284
10396
  ];
10285
10397
  // ----- perfectionist/sort-named-exports -----
@@ -10287,21 +10399,21 @@ type PerfectionistSortNamedExports =
10287
10399
  | []
10288
10400
  | [
10289
10401
  {
10290
- type?: "alphabetical" | "natural" | "line-length";
10291
-
10292
- order?: "asc" | "desc";
10402
+ partitionByComment?: string[] | boolean | string;
10293
10403
 
10294
- matcher?: "minimatch" | "regex";
10404
+ groupKind?: "mixed" | "values-first" | "types-first";
10295
10405
 
10296
- ignoreCase?: boolean;
10406
+ partitionByNewLine?: boolean;
10297
10407
 
10298
10408
  specialCharacters?: "remove" | "trim" | "keep";
10299
10409
 
10300
- groupKind?: "mixed" | "values-first" | "types-first";
10410
+ ignoreCase?: boolean;
10301
10411
 
10302
- partitionByComment?: string[] | boolean | string;
10412
+ locales?: string | string[];
10303
10413
 
10304
- partitionByNewLine?: boolean;
10414
+ order?: "asc" | "desc";
10415
+
10416
+ type?: "alphabetical" | "natural" | "line-length";
10305
10417
  },
10306
10418
  ];
10307
10419
  // ----- perfectionist/sort-named-imports -----
@@ -10309,23 +10421,23 @@ type PerfectionistSortNamedImports =
10309
10421
  | []
10310
10422
  | [
10311
10423
  {
10312
- type?: "alphabetical" | "natural" | "line-length";
10424
+ partitionByComment?: string[] | boolean | string;
10313
10425
 
10314
- order?: "asc" | "desc";
10426
+ groupKind?: "mixed" | "values-first" | "types-first";
10315
10427
 
10316
- matcher?: "minimatch" | "regex";
10428
+ ignoreAlias?: boolean;
10317
10429
 
10318
- ignoreCase?: boolean;
10430
+ partitionByNewLine?: boolean;
10319
10431
 
10320
10432
  specialCharacters?: "remove" | "trim" | "keep";
10321
10433
 
10322
- ignoreAlias?: boolean;
10434
+ ignoreCase?: boolean;
10323
10435
 
10324
- groupKind?: "mixed" | "values-first" | "types-first";
10436
+ locales?: string | string[];
10325
10437
 
10326
- partitionByComment?: string[] | boolean | string;
10438
+ order?: "asc" | "desc";
10327
10439
 
10328
- partitionByNewLine?: boolean;
10440
+ type?: "alphabetical" | "natural" | "line-length";
10329
10441
  },
10330
10442
  ];
10331
10443
  // ----- perfectionist/sort-object-types -----
@@ -10333,27 +10445,29 @@ type PerfectionistSortObjectTypes =
10333
10445
  | []
10334
10446
  | [
10335
10447
  {
10336
- type?: "alphabetical" | "natural" | "line-length";
10337
-
10338
- order?: "asc" | "desc";
10448
+ partitionByComment?: string[] | boolean | string;
10339
10449
 
10340
- matcher?: "minimatch" | "regex";
10450
+ groupKind?: "mixed" | "required-first" | "optional-first";
10341
10451
 
10342
- ignoreCase?: boolean;
10452
+ partitionByNewLine?: boolean;
10343
10453
 
10344
10454
  specialCharacters?: "remove" | "trim" | "keep";
10345
10455
 
10346
- partitionByComment?: string[] | boolean | string;
10456
+ newlinesBetween?: "ignore" | "always" | "never";
10347
10457
 
10348
- partitionByNewLine?: boolean;
10458
+ customGroups?: {
10459
+ [k: string]: (string | string[]) | undefined;
10460
+ };
10349
10461
 
10350
- groupKind?: "mixed" | "required-first" | "optional-first";
10462
+ ignoreCase?: boolean;
10463
+
10464
+ locales?: string | string[];
10351
10465
 
10352
10466
  groups?: (string | string[])[];
10353
10467
 
10354
- customGroups?: {
10355
- [k: string]: (string | string[]) | undefined;
10356
- };
10468
+ order?: "asc" | "desc";
10469
+
10470
+ type?: "alphabetical" | "natural" | "line-length";
10357
10471
  },
10358
10472
  ];
10359
10473
  // ----- perfectionist/sort-objects -----
@@ -10361,75 +10475,55 @@ type PerfectionistSortObjects =
10361
10475
  | []
10362
10476
  | [
10363
10477
  {
10364
- type?: "alphabetical" | "natural" | "line-length";
10365
-
10366
- order?: "asc" | "desc";
10367
-
10368
- matcher?: "minimatch" | "regex";
10369
-
10370
- ignoreCase?: boolean;
10371
-
10372
- specialCharacters?: "remove" | "trim" | "keep";
10478
+ ignorePattern?: string[];
10373
10479
 
10374
10480
  partitionByComment?: string[] | boolean | string;
10375
10481
 
10376
- partitionByNewLine?: boolean;
10482
+ destructureOnly?: boolean;
10377
10483
 
10378
10484
  styledComponents?: boolean;
10379
10485
 
10380
- destructureOnly?: boolean;
10486
+ partitionByNewLine?: boolean;
10381
10487
 
10382
- ignorePattern?: string[];
10488
+ specialCharacters?: "remove" | "trim" | "keep";
10383
10489
 
10384
- groups?: (string | string[])[];
10490
+ newlinesBetween?: "ignore" | "always" | "never";
10385
10491
 
10386
10492
  customGroups?: {
10387
10493
  [k: string]: (string | string[]) | undefined;
10388
10494
  };
10389
- },
10390
- ];
10391
- // ----- perfectionist/sort-sets -----
10392
- type PerfectionistSortSets =
10393
- | []
10394
- | [
10395
- {
10396
- type?: "alphabetical" | "natural" | "line-length";
10397
-
10398
- order?: "asc" | "desc";
10399
-
10400
- matcher?: "minimatch" | "regex";
10401
10495
 
10402
10496
  ignoreCase?: boolean;
10403
10497
 
10404
- specialCharacters?: "remove" | "trim" | "keep";
10498
+ locales?: string | string[];
10405
10499
 
10406
- groupKind?: "mixed" | "literals-first" | "spreads-first";
10500
+ groups?: (string | string[])[];
10407
10501
 
10408
- partitionByComment?: string[] | boolean | string;
10502
+ order?: "asc" | "desc";
10409
10503
 
10410
- partitionByNewLine?: boolean;
10504
+ type?: "alphabetical" | "natural" | "line-length";
10411
10505
  },
10412
10506
  ];
10413
- // ----- perfectionist/sort-svelte-attributes -----
10414
- type PerfectionistSortSvelteAttributes =
10507
+ // ----- perfectionist/sort-sets -----
10508
+ type PerfectionistSortSets =
10415
10509
  | []
10416
10510
  | [
10417
10511
  {
10418
- type?: "alphabetical" | "natural" | "line-length";
10512
+ partitionByComment?: string[] | boolean | string;
10419
10513
 
10420
- order?: "asc" | "desc";
10514
+ groupKind?: "mixed" | "literals-first" | "spreads-first";
10421
10515
 
10422
- matcher?: "minimatch" | "regex";
10516
+ partitionByNewLine?: boolean;
10517
+
10518
+ specialCharacters?: "remove" | "trim" | "keep";
10423
10519
 
10424
10520
  ignoreCase?: boolean;
10425
10521
 
10426
- specialCharacters?: "remove" | "trim" | "keep";
10522
+ locales?: string | string[];
10427
10523
 
10428
- groups?: (string | string[])[];
10524
+ order?: "asc" | "desc";
10429
10525
 
10430
- customGroups?: {
10431
- [k: string]: (string | string[]) | undefined;
10432
- };
10526
+ type?: "alphabetical" | "natural" | "line-length";
10433
10527
  },
10434
10528
  ];
10435
10529
  // ----- perfectionist/sort-switch-case -----
@@ -10437,13 +10531,15 @@ type PerfectionistSortSwitchCase =
10437
10531
  | []
10438
10532
  | [
10439
10533
  {
10440
- type?: "alphabetical" | "natural" | "line-length";
10441
-
10442
- order?: "asc" | "desc";
10534
+ specialCharacters?: "remove" | "trim" | "keep";
10443
10535
 
10444
10536
  ignoreCase?: boolean;
10445
10537
 
10446
- specialCharacters?: "remove" | "trim" | "keep";
10538
+ locales?: string | string[];
10539
+
10540
+ order?: "asc" | "desc";
10541
+
10542
+ type?: "alphabetical" | "natural" | "line-length";
10447
10543
  },
10448
10544
  ];
10449
10545
  // ----- perfectionist/sort-union-types -----
@@ -10451,21 +10547,23 @@ type PerfectionistSortUnionTypes =
10451
10547
  | []
10452
10548
  | [
10453
10549
  {
10454
- type?: "alphabetical" | "natural" | "line-length";
10550
+ partitionByComment?: string[] | boolean | string;
10455
10551
 
10456
- order?: "asc" | "desc";
10552
+ partitionByNewLine?: boolean;
10553
+
10554
+ specialCharacters?: "remove" | "trim" | "keep";
10457
10555
 
10458
- matcher?: "minimatch" | "regex";
10556
+ newlinesBetween?: "ignore" | "always" | "never";
10459
10557
 
10460
10558
  ignoreCase?: boolean;
10461
10559
 
10462
- specialCharacters?: "remove" | "trim" | "keep";
10560
+ locales?: string | string[];
10463
10561
 
10464
10562
  groups?: (string | string[])[];
10465
10563
 
10466
- partitionByComment?: string[] | boolean | string;
10564
+ order?: "asc" | "desc";
10467
10565
 
10468
- partitionByNewLine?: boolean;
10566
+ type?: "alphabetical" | "natural" | "line-length";
10469
10567
  },
10470
10568
  ];
10471
10569
  // ----- perfectionist/sort-variable-declarations -----
@@ -10473,41 +10571,19 @@ type PerfectionistSortVariableDeclarations =
10473
10571
  | []
10474
10572
  | [
10475
10573
  {
10476
- type?: "alphabetical" | "natural" | "line-length";
10477
-
10478
- order?: "asc" | "desc";
10479
-
10480
- matcher?: "minimatch" | "regex";
10481
-
10482
- ignoreCase?: boolean;
10483
-
10484
- specialCharacters?: "remove" | "trim" | "keep";
10485
-
10486
10574
  partitionByComment?: string[] | boolean | string;
10487
10575
 
10488
10576
  partitionByNewLine?: boolean;
10489
- },
10490
- ];
10491
- // ----- perfectionist/sort-vue-attributes -----
10492
- type PerfectionistSortVueAttributes =
10493
- | []
10494
- | [
10495
- {
10496
- type?: "alphabetical" | "natural" | "line-length";
10497
-
10498
- order?: "asc" | "desc";
10499
10577
 
10500
- matcher?: "minimatch" | "regex";
10578
+ specialCharacters?: "remove" | "trim" | "keep";
10501
10579
 
10502
10580
  ignoreCase?: boolean;
10503
10581
 
10504
- specialCharacters?: "remove" | "trim" | "keep";
10582
+ locales?: string | string[];
10505
10583
 
10506
- groups?: (string | string[])[];
10584
+ order?: "asc" | "desc";
10507
10585
 
10508
- customGroups?: {
10509
- [k: string]: (string | string[]) | undefined;
10510
- };
10586
+ type?: "alphabetical" | "natural" | "line-length";
10511
10587
  },
10512
10588
  ];
10513
10589
 
@@ -12511,6 +12587,8 @@ type StylisticCommaDangle =
12511
12587
  imports?: _StylisticCommaDangleValueWithIgnore;
12512
12588
  exports?: _StylisticCommaDangleValueWithIgnore;
12513
12589
  functions?: _StylisticCommaDangleValueWithIgnore;
12590
+ importAttributes?: _StylisticCommaDangleValueWithIgnore;
12591
+ dynamicImports?: _StylisticCommaDangleValueWithIgnore;
12514
12592
  enums?: _StylisticCommaDangleValueWithIgnore;
12515
12593
  generics?: _StylisticCommaDangleValueWithIgnore;
12516
12594
  tuples?: _StylisticCommaDangleValueWithIgnore;
@@ -12744,6 +12822,10 @@ type StylisticFuncCallSpacing =
12744
12822
  "always",
12745
12823
  {
12746
12824
  allowNewlines?: boolean;
12825
+ optionalChain?: {
12826
+ before?: boolean;
12827
+ after?: boolean;
12828
+ };
12747
12829
  },
12748
12830
  ];
12749
12831
  // ----- @stylistic/function-call-argument-newline -----
@@ -12760,6 +12842,10 @@ type StylisticFunctionCallSpacing =
12760
12842
  "always",
12761
12843
  {
12762
12844
  allowNewlines?: boolean;
12845
+ optionalChain?: {
12846
+ before?: boolean;
12847
+ after?: boolean;
12848
+ };
12763
12849
  },
12764
12850
  ];
12765
12851
  // ----- @stylistic/function-paren-newline -----
@@ -19967,702 +20053,702 @@ type ImportPreferDefaultExport =
19967
20053
  interface UnicornRuleOptions {
19968
20054
  /**
19969
20055
  * Improve regexes by making them shorter, consistent, and safer.
19970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/better-regex.md
20056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
19971
20057
  */
19972
20058
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
19973
20059
  /**
19974
20060
  * Enforce a specific parameter name in catch clauses.
19975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/catch-error-name.md
20061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
19976
20062
  */
19977
20063
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
19978
20064
  /**
19979
20065
  * Use destructured variables over properties.
19980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-destructuring.md
20066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
19981
20067
  */
19982
20068
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
19983
20069
  /**
19984
20070
  * Prefer consistent types when spreading a ternary in an array literal.
19985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-empty-array-spread.md
20071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
19986
20072
  */
19987
20073
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
19988
20074
  /**
19989
20075
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
19990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-existence-index-check.md
20076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
19991
20077
  */
19992
20078
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
19993
20079
  /**
19994
20080
  * Move function definitions to the highest possible scope.
19995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-function-scoping.md
20081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
19996
20082
  */
19997
20083
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
19998
20084
  /**
19999
20085
  * Enforce correct `Error` subclassing.
20000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/custom-error-definition.md
20086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
20001
20087
  */
20002
20088
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
20003
20089
  /**
20004
20090
  * Enforce no spaces between braces.
20005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/empty-brace-spaces.md
20091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
20006
20092
  */
20007
20093
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
20008
20094
  /**
20009
20095
  * Enforce passing a `message` value when creating a built-in error.
20010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/error-message.md
20096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
20011
20097
  */
20012
20098
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
20013
20099
  /**
20014
20100
  * Require escape sequences to use uppercase values.
20015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/escape-case.md
20101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
20016
20102
  */
20017
20103
  "unicorn/escape-case"?: Linter.RuleEntry<[]>;
20018
20104
  /**
20019
20105
  * Add expiration conditions to TODO comments.
20020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/expiring-todo-comments.md
20106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
20021
20107
  */
20022
20108
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
20023
20109
  /**
20024
20110
  * Enforce explicitly comparing the `length` or `size` property of a value.
20025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/explicit-length-check.md
20111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
20026
20112
  */
20027
20113
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
20028
20114
  /**
20029
20115
  * Enforce a case style for filenames.
20030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/filename-case.md
20116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
20031
20117
  */
20032
20118
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
20033
20119
  /**
20034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#import-index
20120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
20035
20121
  * @deprecated
20036
20122
  */
20037
20123
  "unicorn/import-index"?: Linter.RuleEntry<[]>;
20038
20124
  /**
20039
20125
  * Enforce specific import styles per module.
20040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/import-style.md
20126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
20041
20127
  */
20042
20128
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
20043
20129
  /**
20044
20130
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
20045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/new-for-builtins.md
20131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
20046
20132
  */
20047
20133
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
20048
20134
  /**
20049
20135
  * Enforce specifying rules to disable in `eslint-disable` comments.
20050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-abusive-eslint-disable.md
20136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
20051
20137
  */
20052
20138
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
20053
20139
  /**
20054
20140
  * Disallow anonymous functions and classes as the default export.
20055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-anonymous-default-export.md
20141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
20056
20142
  */
20057
20143
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
20058
20144
  /**
20059
20145
  * Prevent passing a function reference directly to iterator methods.
20060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-callback-reference.md
20146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
20061
20147
  */
20062
20148
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
20063
20149
  /**
20064
20150
  * Prefer `for…of` over the `forEach` method.
20065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-for-each.md
20151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
20066
20152
  */
20067
20153
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
20068
20154
  /**
20069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-array-instanceof
20155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
20070
20156
  * @deprecated
20071
20157
  */
20072
20158
  "unicorn/no-array-instanceof"?: Linter.RuleEntry<[]>;
20073
20159
  /**
20074
20160
  * Disallow using the `this` argument in array methods.
20075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-method-this-argument.md
20161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
20076
20162
  */
20077
20163
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
20078
20164
  /**
20079
20165
  * Enforce combining multiple `Array#push()` into one call.
20080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-push-push.md
20166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
20081
20167
  */
20082
20168
  "unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
20083
20169
  /**
20084
20170
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
20085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-reduce.md
20171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
20086
20172
  */
20087
20173
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
20088
20174
  /**
20089
20175
  * Disallow member access from await expression.
20090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-expression-member.md
20176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
20091
20177
  */
20092
20178
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
20093
20179
  /**
20094
20180
  * Disallow using `await` in `Promise` method parameters.
20095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-in-promise-methods.md
20181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
20096
20182
  */
20097
20183
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
20098
20184
  /**
20099
20185
  * Do not use leading/trailing space between `console.log` parameters.
20100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-console-spaces.md
20186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
20101
20187
  */
20102
20188
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
20103
20189
  /**
20104
20190
  * Do not use `document.cookie` directly.
20105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-document-cookie.md
20191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
20106
20192
  */
20107
20193
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
20108
20194
  /**
20109
20195
  * Disallow empty files.
20110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-empty-file.md
20196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
20111
20197
  */
20112
20198
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
20113
20199
  /**
20114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
20200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
20115
20201
  * @deprecated
20116
20202
  */
20117
20203
  "unicorn/no-fn-reference-in-iterator"?: Linter.RuleEntry<[]>;
20118
20204
  /**
20119
20205
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
20120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-for-loop.md
20206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
20121
20207
  */
20122
20208
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
20123
20209
  /**
20124
20210
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
20125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-hex-escape.md
20211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
20126
20212
  */
20127
20213
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
20128
20214
  /**
20129
20215
  * Require `Array.isArray()` instead of `instanceof Array`.
20130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-instanceof-array.md
20216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
20131
20217
  */
20132
20218
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
20133
20219
  /**
20134
20220
  * Disallow invalid options in `fetch()` and `new Request()`.
20135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-fetch-options.md
20221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
20136
20222
  */
20137
20223
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
20138
20224
  /**
20139
20225
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
20140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-remove-event-listener.md
20226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
20141
20227
  */
20142
20228
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
20143
20229
  /**
20144
20230
  * Disallow identifiers starting with `new` or `class`.
20145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-keyword-prefix.md
20231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
20146
20232
  */
20147
20233
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
20148
20234
  /**
20149
20235
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
20150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-length-as-slice-end.md
20236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
20151
20237
  */
20152
20238
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
20153
20239
  /**
20154
20240
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
20155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-lonely-if.md
20241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
20156
20242
  */
20157
20243
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
20158
20244
  /**
20159
20245
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
20160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-magic-array-flat-depth.md
20246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
20161
20247
  */
20162
20248
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
20163
20249
  /**
20164
20250
  * Disallow negated conditions.
20165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negated-condition.md
20251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
20166
20252
  */
20167
20253
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
20168
20254
  /**
20169
20255
  * Disallow negated expression in equality check.
20170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negation-in-equality-check.md
20256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
20171
20257
  */
20172
20258
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
20173
20259
  /**
20174
20260
  * Disallow nested ternary expressions.
20175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-nested-ternary.md
20261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
20176
20262
  */
20177
20263
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
20178
20264
  /**
20179
20265
  * Disallow `new Array()`.
20180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-array.md
20266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
20181
20267
  */
20182
20268
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
20183
20269
  /**
20184
20270
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
20185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-buffer.md
20271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
20186
20272
  */
20187
20273
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
20188
20274
  /**
20189
20275
  * Disallow the use of the `null` literal.
20190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-null.md
20276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
20191
20277
  */
20192
20278
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
20193
20279
  /**
20194
20280
  * Disallow the use of objects as default parameters.
20195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-object-as-default-parameter.md
20281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
20196
20282
  */
20197
20283
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
20198
20284
  /**
20199
20285
  * Disallow `process.exit()`.
20200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-process-exit.md
20286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
20201
20287
  */
20202
20288
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
20203
20289
  /**
20204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-reduce
20290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
20205
20291
  * @deprecated
20206
20292
  */
20207
20293
  "unicorn/no-reduce"?: Linter.RuleEntry<[]>;
20208
20294
  /**
20209
20295
  * Disallow passing single-element arrays to `Promise` methods.
20210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-single-promise-in-promise-methods.md
20296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
20211
20297
  */
20212
20298
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
20213
20299
  /**
20214
20300
  * Disallow classes that only have static members.
20215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-static-only-class.md
20301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
20216
20302
  */
20217
20303
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
20218
20304
  /**
20219
20305
  * Disallow `then` property.
20220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-thenable.md
20306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
20221
20307
  */
20222
20308
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
20223
20309
  /**
20224
20310
  * Disallow assigning `this` to a variable.
20225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-this-assignment.md
20311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
20226
20312
  */
20227
20313
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
20228
20314
  /**
20229
20315
  * Disallow comparing `undefined` using `typeof`.
20230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-typeof-undefined.md
20316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
20231
20317
  */
20232
20318
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
20233
20319
  /**
20234
20320
  * Disallow awaiting non-promise values.
20235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-await.md
20321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
20236
20322
  */
20237
20323
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
20238
20324
  /**
20239
20325
  * Enforce the use of built-in methods instead of unnecessary polyfills.
20240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-polyfills.md
20326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
20241
20327
  */
20242
20328
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
20243
20329
  /**
20244
20330
  * Disallow unreadable array destructuring.
20245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-array-destructuring.md
20331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
20246
20332
  */
20247
20333
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
20248
20334
  /**
20249
20335
  * Disallow unreadable IIFEs.
20250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-iife.md
20336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
20251
20337
  */
20252
20338
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
20253
20339
  /**
20254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-unsafe-regex
20340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
20255
20341
  * @deprecated
20256
20342
  */
20257
20343
  "unicorn/no-unsafe-regex"?: Linter.RuleEntry<[]>;
20258
20344
  /**
20259
20345
  * Disallow unused object properties.
20260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unused-properties.md
20346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
20261
20347
  */
20262
20348
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
20263
20349
  /**
20264
20350
  * Disallow useless fallback when spreading in object literals.
20265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-fallback-in-spread.md
20351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
20266
20352
  */
20267
20353
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
20268
20354
  /**
20269
20355
  * Disallow useless array length check.
20270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-length-check.md
20356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
20271
20357
  */
20272
20358
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
20273
20359
  /**
20274
20360
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
20275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-promise-resolve-reject.md
20361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
20276
20362
  */
20277
20363
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
20278
20364
  /**
20279
20365
  * Disallow unnecessary spread.
20280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-spread.md
20366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
20281
20367
  */
20282
20368
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
20283
20369
  /**
20284
20370
  * Disallow useless case in switch statements.
20285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-switch-case.md
20371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
20286
20372
  */
20287
20373
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
20288
20374
  /**
20289
20375
  * Disallow useless `undefined`.
20290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-undefined.md
20376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
20291
20377
  */
20292
20378
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
20293
20379
  /**
20294
20380
  * Disallow number literals with zero fractions or dangling dots.
20295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-zero-fractions.md
20381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
20296
20382
  */
20297
20383
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
20298
20384
  /**
20299
20385
  * Enforce proper case for numeric literals.
20300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/number-literal-case.md
20386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
20301
20387
  */
20302
20388
  "unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
20303
20389
  /**
20304
20390
  * Enforce the style of numeric separators by correctly grouping digits.
20305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/numeric-separators-style.md
20391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
20306
20392
  */
20307
20393
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
20308
20394
  /**
20309
20395
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
20310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-add-event-listener.md
20396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
20311
20397
  */
20312
20398
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
20313
20399
  /**
20314
20400
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
20315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-find.md
20401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
20316
20402
  */
20317
20403
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
20318
20404
  /**
20319
20405
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
20320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat.md
20406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
20321
20407
  */
20322
20408
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
20323
20409
  /**
20324
20410
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
20325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat-map.md
20411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
20326
20412
  */
20327
20413
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
20328
20414
  /**
20329
20415
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
20330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-index-of.md
20416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
20331
20417
  */
20332
20418
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
20333
20419
  /**
20334
20420
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
20335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-some.md
20421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
20336
20422
  */
20337
20423
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
20338
20424
  /**
20339
20425
  * Prefer `.at()` method for index access and `String#charAt()`.
20340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-at.md
20426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
20341
20427
  */
20342
20428
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
20343
20429
  /**
20344
20430
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
20345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-blob-reading-methods.md
20431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
20346
20432
  */
20347
20433
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
20348
20434
  /**
20349
20435
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
20350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-code-point.md
20436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
20351
20437
  */
20352
20438
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
20353
20439
  /**
20354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-dataset
20440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
20355
20441
  * @deprecated
20356
20442
  */
20357
20443
  "unicorn/prefer-dataset"?: Linter.RuleEntry<[]>;
20358
20444
  /**
20359
20445
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
20360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-date-now.md
20446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
20361
20447
  */
20362
20448
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
20363
20449
  /**
20364
20450
  * Prefer default parameters over reassignment.
20365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-default-parameters.md
20451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
20366
20452
  */
20367
20453
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
20368
20454
  /**
20369
20455
  * Prefer `Node#append()` over `Node#appendChild()`.
20370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-append.md
20456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
20371
20457
  */
20372
20458
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
20373
20459
  /**
20374
20460
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
20375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-dataset.md
20461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
20376
20462
  */
20377
20463
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
20378
20464
  /**
20379
20465
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
20380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-remove.md
20466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
20381
20467
  */
20382
20468
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
20383
20469
  /**
20384
20470
  * Prefer `.textContent` over `.innerText`.
20385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-text-content.md
20471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
20386
20472
  */
20387
20473
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
20388
20474
  /**
20389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-event-key
20475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
20390
20476
  * @deprecated
20391
20477
  */
20392
20478
  "unicorn/prefer-event-key"?: Linter.RuleEntry<[]>;
20393
20479
  /**
20394
20480
  * Prefer `EventTarget` over `EventEmitter`.
20395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-event-target.md
20481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
20396
20482
  */
20397
20483
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
20398
20484
  /**
20399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
20485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
20400
20486
  * @deprecated
20401
20487
  */
20402
20488
  "unicorn/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
20403
20489
  /**
20404
20490
  * Prefer `export…from` when re-exporting.
20405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-export-from.md
20491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
20406
20492
  */
20407
20493
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
20408
20494
  /**
20409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-flat-map
20495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
20410
20496
  * @deprecated
20411
20497
  */
20412
20498
  "unicorn/prefer-flat-map"?: Linter.RuleEntry<[]>;
20413
20499
  /**
20414
20500
  * Prefer `globalThis` over `window`, `self`, and `global`.
20415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-global-this.md
20501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
20416
20502
  */
20417
20503
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
20418
20504
  /**
20419
20505
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
20420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-includes.md
20506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
20421
20507
  */
20422
20508
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
20423
20509
  /**
20424
20510
  * Prefer reading a JSON file as a buffer.
20425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-json-parse-buffer.md
20511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
20426
20512
  */
20427
20513
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
20428
20514
  /**
20429
20515
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
20430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-keyboard-event-key.md
20516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
20431
20517
  */
20432
20518
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
20433
20519
  /**
20434
20520
  * Prefer using a logical operator over a ternary.
20435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-logical-operator-over-ternary.md
20521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
20436
20522
  */
20437
20523
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
20438
20524
  /**
20439
20525
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
20440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-min-max.md
20526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
20441
20527
  */
20442
20528
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
20443
20529
  /**
20444
20530
  * Enforce the use of `Math.trunc` instead of bitwise operators.
20445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-trunc.md
20531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
20446
20532
  */
20447
20533
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
20448
20534
  /**
20449
20535
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
20450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-dom-apis.md
20536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
20451
20537
  */
20452
20538
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
20453
20539
  /**
20454
20540
  * Prefer modern `Math` APIs over legacy patterns.
20455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-math-apis.md
20541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
20456
20542
  */
20457
20543
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
20458
20544
  /**
20459
20545
  * Prefer JavaScript modules (ESM) over CommonJS.
20460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-module.md
20546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
20461
20547
  */
20462
20548
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
20463
20549
  /**
20464
20550
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
20465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-native-coercion-functions.md
20551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
20466
20552
  */
20467
20553
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
20468
20554
  /**
20469
20555
  * Prefer negative index over `.length - index` when possible.
20470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-negative-index.md
20556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
20471
20557
  */
20472
20558
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
20473
20559
  /**
20474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-append
20560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
20475
20561
  * @deprecated
20476
20562
  */
20477
20563
  "unicorn/prefer-node-append"?: Linter.RuleEntry<[]>;
20478
20564
  /**
20479
20565
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
20480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-node-protocol.md
20566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
20481
20567
  */
20482
20568
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
20483
20569
  /**
20484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-remove
20570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
20485
20571
  * @deprecated
20486
20572
  */
20487
20573
  "unicorn/prefer-node-remove"?: Linter.RuleEntry<[]>;
20488
20574
  /**
20489
20575
  * Prefer `Number` static properties over global ones.
20490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-number-properties.md
20576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
20491
20577
  */
20492
20578
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
20493
20579
  /**
20494
20580
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
20495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-object-from-entries.md
20581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
20496
20582
  */
20497
20583
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
20498
20584
  /**
20499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-object-has-own
20585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
20500
20586
  * @deprecated
20501
20587
  */
20502
20588
  "unicorn/prefer-object-has-own"?: Linter.RuleEntry<[]>;
20503
20589
  /**
20504
20590
  * Prefer omitting the `catch` binding parameter.
20505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-optional-catch-binding.md
20591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
20506
20592
  */
20507
20593
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
20508
20594
  /**
20509
20595
  * Prefer borrowing methods from the prototype instead of the instance.
20510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-prototype-methods.md
20596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
20511
20597
  */
20512
20598
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
20513
20599
  /**
20514
20600
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
20515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-query-selector.md
20601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
20516
20602
  */
20517
20603
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
20518
20604
  /**
20519
20605
  * Prefer `Reflect.apply()` over `Function#apply()`.
20520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-reflect-apply.md
20606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
20521
20607
  */
20522
20608
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
20523
20609
  /**
20524
20610
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
20525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-regexp-test.md
20611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
20526
20612
  */
20527
20613
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
20528
20614
  /**
20529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-replace-all
20615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
20530
20616
  * @deprecated
20531
20617
  */
20532
20618
  "unicorn/prefer-replace-all"?: Linter.RuleEntry<[]>;
20533
20619
  /**
20534
20620
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
20535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-has.md
20621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
20536
20622
  */
20537
20623
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
20538
20624
  /**
20539
20625
  * Prefer using `Set#size` instead of `Array#length`.
20540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-size.md
20626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
20541
20627
  */
20542
20628
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
20543
20629
  /**
20544
20630
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
20545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-spread.md
20631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
20546
20632
  */
20547
20633
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
20548
20634
  /**
20549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
20635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
20550
20636
  * @deprecated
20551
20637
  */
20552
20638
  "unicorn/prefer-starts-ends-with"?: Linter.RuleEntry<[]>;
20553
20639
  /**
20554
20640
  * Prefer using the `String.raw` tag to avoid escaping `\`.
20555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-raw.md
20641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
20556
20642
  */
20557
20643
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
20558
20644
  /**
20559
20645
  * Prefer `String#replaceAll()` over regex searches with the global flag.
20560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-replace-all.md
20646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
20561
20647
  */
20562
20648
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
20563
20649
  /**
20564
20650
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
20565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-slice.md
20651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
20566
20652
  */
20567
20653
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
20568
20654
  /**
20569
20655
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
20570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-starts-ends-with.md
20656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
20571
20657
  */
20572
20658
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
20573
20659
  /**
20574
20660
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
20575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-trim-start-end.md
20661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
20576
20662
  */
20577
20663
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
20578
20664
  /**
20579
20665
  * Prefer using `structuredClone` to create a deep clone.
20580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-structured-clone.md
20666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
20581
20667
  */
20582
20668
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
20583
20669
  /**
20584
20670
  * Prefer `switch` over multiple `else-if`.
20585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-switch.md
20671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
20586
20672
  */
20587
20673
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
20588
20674
  /**
20589
20675
  * Prefer ternary expressions over simple `if-else` statements.
20590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-ternary.md
20676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
20591
20677
  */
20592
20678
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
20593
20679
  /**
20594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-text-content
20680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
20595
20681
  * @deprecated
20596
20682
  */
20597
20683
  "unicorn/prefer-text-content"?: Linter.RuleEntry<[]>;
20598
20684
  /**
20599
20685
  * Prefer top-level await over top-level promises and async function calls.
20600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-top-level-await.md
20686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
20601
20687
  */
20602
20688
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
20603
20689
  /**
20604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-trim-start-end
20690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
20605
20691
  * @deprecated
20606
20692
  */
20607
20693
  "unicorn/prefer-trim-start-end"?: Linter.RuleEntry<[]>;
20608
20694
  /**
20609
20695
  * Enforce throwing `TypeError` in type checking conditions.
20610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-type-error.md
20696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
20611
20697
  */
20612
20698
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
20613
20699
  /**
20614
20700
  * Prevent abbreviations.
20615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prevent-abbreviations.md
20701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
20616
20702
  */
20617
20703
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
20618
20704
  /**
20619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#regex-shorthand
20705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
20620
20706
  * @deprecated
20621
20707
  */
20622
20708
  "unicorn/regex-shorthand"?: Linter.RuleEntry<[]>;
20623
20709
  /**
20624
20710
  * Enforce consistent relative URL style.
20625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/relative-url-style.md
20711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
20626
20712
  */
20627
20713
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
20628
20714
  /**
20629
20715
  * Enforce using the separator argument with `Array#join()`.
20630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-array-join-separator.md
20716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
20631
20717
  */
20632
20718
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
20633
20719
  /**
20634
20720
  * Enforce using the digits argument with `Number#toFixed()`.
20635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-number-to-fixed-digits-argument.md
20721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
20636
20722
  */
20637
20723
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
20638
20724
  /**
20639
20725
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
20640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-post-message-target-origin.md
20726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
20641
20727
  */
20642
20728
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
20643
20729
  /**
20644
20730
  * Enforce better string content.
20645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/string-content.md
20731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
20646
20732
  */
20647
20733
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
20648
20734
  /**
20649
20735
  * Enforce consistent brace style for `case` clauses.
20650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/switch-case-braces.md
20736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
20651
20737
  */
20652
20738
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
20653
20739
  /**
20654
20740
  * Fix whitespace-insensitive template indentation.
20655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/template-indent.md
20741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
20656
20742
  */
20657
20743
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
20658
20744
  /**
20659
20745
  * Enforce consistent case for text encoding identifiers.
20660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/text-encoding-identifier-case.md
20746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
20661
20747
  */
20662
20748
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
20663
20749
  /**
20664
20750
  * Require `new` when creating an error.
20665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/throw-new-error.md
20751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
20666
20752
  */
20667
20753
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
20668
20754
  }
@@ -21765,7 +21851,7 @@ declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConf
21765
21851
  declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
21766
21852
  type DefineConfig = typeof defineConfig;
21767
21853
 
21768
- declare const VERSION = "0.2.27";
21854
+ declare const VERSION = "0.2.29";
21769
21855
 
21770
21856
  declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
21771
21857
  declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";