eslint 9.11.1 → 9.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
32
32
  * Rule to enforce linebreaks after opening and before closing array brackets.
33
33
  *
34
34
  * @since 4.0.0-alpha.1
35
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-bracket-newline) in `@stylistic/eslint-plugin-js`.
35
36
  * @see https://eslint.org/docs/rules/array-bracket-newline
36
37
  */
37
38
  "array-bracket-newline": Linter.RuleEntry<
@@ -56,6 +57,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
56
57
  * Rule to enforce consistent spacing inside array brackets.
57
58
  *
58
59
  * @since 0.24.0
60
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-bracket-spacing) in `@stylistic/eslint-plugin-js`.
59
61
  * @see https://eslint.org/docs/rules/array-bracket-spacing
60
62
  */
61
63
  "array-bracket-spacing":
@@ -102,6 +104,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
102
104
  * Rule to enforce line breaks after each array element.
103
105
  *
104
106
  * @since 4.0.0-rc.0
107
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/array-element-newline) in `@stylistic/eslint-plugin-js`.
105
108
  * @see https://eslint.org/docs/rules/array-element-newline
106
109
  */
107
110
  "array-element-newline": Linter.RuleEntry<
@@ -126,6 +129,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
126
129
  * Rule to disallow or enforce spaces inside of blocks after opening block and before closing block.
127
130
  *
128
131
  * @since 1.2.0
132
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/block-spacing) in `@stylistic/eslint-plugin-js`.
129
133
  * @see https://eslint.org/docs/rules/block-spacing
130
134
  */
131
135
  "block-spacing": Linter.RuleEntry<["always" | "never"]>;
@@ -134,6 +138,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
134
138
  * Rule to enforce consistent brace style for blocks.
135
139
  *
136
140
  * @since 0.0.7
141
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/brace-style) in `@stylistic/eslint-plugin-js`.
137
142
  * @see https://eslint.org/docs/rules/brace-style
138
143
  */
139
144
  "brace-style": Linter.RuleEntry<
@@ -211,6 +216,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
211
216
  * Rule to require or disallow trailing commas.
212
217
  *
213
218
  * @since 0.16.0
219
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-dangle) in `@stylistic/eslint-plugin-js`.
214
220
  * @see https://eslint.org/docs/rules/comma-dangle
215
221
  */
216
222
  "comma-dangle": Linter.RuleEntry<
@@ -248,6 +254,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
248
254
  * Rule to enforce consistent spacing before and after commas.
249
255
  *
250
256
  * @since 0.9.0
257
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-spacing) in `@stylistic/eslint-plugin-js`.
251
258
  * @see https://eslint.org/docs/rules/comma-spacing
252
259
  */
253
260
  "comma-spacing": Linter.RuleEntry<
@@ -269,6 +276,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
269
276
  * Rule to enforce consistent comma style.
270
277
  *
271
278
  * @since 0.9.0
279
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/comma-style) in `@stylistic/eslint-plugin-js`.
272
280
  * @see https://eslint.org/docs/rules/comma-style
273
281
  */
274
282
  "comma-style": Linter.RuleEntry<
@@ -284,6 +292,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
284
292
  * Rule to enforce consistent spacing inside computed property brackets.
285
293
  *
286
294
  * @since 0.23.0
295
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/computed-property-spacing) in `@stylistic/eslint-plugin-js`.
287
296
  * @see https://eslint.org/docs/rules/computed-property-spacing
288
297
  */
289
298
  "computed-property-spacing": Linter.RuleEntry<["never" | "always"]>;
@@ -300,6 +309,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
300
309
  * Rule to require or disallow newline at the end of files.
301
310
  *
302
311
  * @since 0.7.1
312
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/eol-last) in `@stylistic/eslint-plugin-js`.
303
313
  * @see https://eslint.org/docs/rules/eol-last
304
314
  */
305
315
  "eol-last": Linter.RuleEntry<
@@ -312,6 +322,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
312
322
  * Rule to require or disallow spacing between function identifiers and their invocations.
313
323
  *
314
324
  * @since 3.3.0
325
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/function-call-spacing) in `@stylistic/eslint-plugin-js`.
315
326
  * @see https://eslint.org/docs/rules/func-call-spacing
316
327
  */
317
328
  "func-call-spacing": Linter.RuleEntry<["never" | "always"]>;
@@ -382,6 +393,9 @@ export interface StylisticIssues extends Linter.RulesRecord {
382
393
  * @default false
383
394
  */
384
395
  allowArrowFunctions: boolean;
396
+ overrides: {
397
+ namedExports: "declaration" | "expression" | "ignore";
398
+ }
385
399
  }>,
386
400
  ]
387
401
  >;
@@ -390,6 +404,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
390
404
  * Rule to enforce consistent line breaks inside function parentheses.
391
405
  *
392
406
  * @since 4.6.0
407
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/function-paren-newline) in `@stylistic/eslint-plugin-js`.
393
408
  * @see https://eslint.org/docs/rules/function-paren-newline
394
409
  */
395
410
  "function-paren-newline": Linter.RuleEntry<
@@ -469,6 +484,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
469
484
  * Rule to enforce the location of arrow function bodies.
470
485
  *
471
486
  * @since 4.12.0
487
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/implicit-arrow-linebreak) in `@stylistic/eslint-plugin-js`.
472
488
  * @see https://eslint.org/docs/rules/implicit-arrow-linebreak
473
489
  */
474
490
  "implicit-arrow-linebreak": Linter.RuleEntry<["beside" | "below"]>;
@@ -579,6 +595,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
579
595
  * Rule to enforce the consistent use of either double or single quotes in JSX attributes.
580
596
  *
581
597
  * @since 1.4.0
598
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/jsx-quotes) in `@stylistic/eslint-plugin-js`.
582
599
  * @see https://eslint.org/docs/rules/jsx-quotes
583
600
  */
584
601
  "jsx-quotes": Linter.RuleEntry<["prefer-double" | "prefer-single"]>;
@@ -587,6 +604,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
587
604
  * Rule to enforce consistent spacing between keys and values in object literal properties.
588
605
  *
589
606
  * @since 0.9.0
607
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/key-spacing) in `@stylistic/eslint-plugin-js`.
590
608
  * @see https://eslint.org/docs/rules/key-spacing
591
609
  */
592
610
  "key-spacing": Linter.RuleEntry<
@@ -742,6 +760,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
742
760
  * Rule to enforce consistent spacing before and after keywords.
743
761
  *
744
762
  * @since 2.0.0-beta.1
763
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/keyword-spacing) in `@stylistic/eslint-plugin-js`.
745
764
  * @see https://eslint.org/docs/rules/keyword-spacing
746
765
  */
747
766
  "keyword-spacing": Linter.RuleEntry<
@@ -770,6 +789,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
770
789
  * Rule to enforce position of line comments.
771
790
  *
772
791
  * @since 3.5.0
792
+ * @deprecated since 9.3.0, please use the [corresponding rule](https://eslint.style/rules/js/line-comment-position) in `@stylistic/eslint-plugin-js`.
773
793
  * @see https://eslint.org/docs/rules/line-comment-position
774
794
  */
775
795
  "line-comment-position": Linter.RuleEntry<
@@ -792,6 +812,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
792
812
  * Rule to enforce consistent linebreak style.
793
813
  *
794
814
  * @since 0.21.0
815
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/linebreak-style) in `@stylistic/eslint-plugin-js`.
795
816
  * @see https://eslint.org/docs/rules/linebreak-style
796
817
  */
797
818
  "linebreak-style": Linter.RuleEntry<["unix" | "windows"]>;
@@ -800,6 +821,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
800
821
  * Rule to require empty lines around comments.
801
822
  *
802
823
  * @since 0.22.0
824
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/lines-around-comment) in `@stylistic/eslint-plugin-js`.
803
825
  * @see https://eslint.org/docs/rules/lines-around-comment
804
826
  */
805
827
  "lines-around-comment": Linter.RuleEntry<
@@ -866,11 +888,20 @@ export interface StylisticIssues extends Linter.RulesRecord {
866
888
  * Rule to require or disallow an empty line between class members.
867
889
  *
868
890
  * @since 4.9.0
891
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/lines-between-class-members) in `@stylistic/eslint-plugin-js`.
869
892
  * @see https://eslint.org/docs/rules/lines-between-class-members
870
893
  */
871
894
  "lines-between-class-members": Linter.RuleEntry<
872
895
  [
873
- "always" | "never",
896
+ "always" | "never" | {
897
+ enforce: Array<
898
+ {
899
+ blankLine: "always" | "never";
900
+ prev: "method" | "field" | "*";
901
+ next: "method" | "field" | "*";
902
+ }
903
+ >
904
+ },
874
905
  Partial<{
875
906
  /**
876
907
  * @default false
@@ -901,6 +932,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
901
932
  * Rule to enforce a maximum line length.
902
933
  *
903
934
  * @since 0.0.9
935
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/max-len) in `@stylistic/eslint-plugin-js`.
904
936
  * @see https://eslint.org/docs/rules/max-len
905
937
  */
906
938
  "max-len": Linter.RuleEntry<
@@ -1061,6 +1093,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1061
1093
  * Rule to enforce a maximum number of statements allowed per line.
1062
1094
  *
1063
1095
  * @since 2.5.0
1096
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/max-statements-per-line) in `@stylistic/eslint-plugin-js`.
1064
1097
  * @see https://eslint.org/docs/rules/max-statements-per-line
1065
1098
  */
1066
1099
  "max-statements-per-line": Linter.RuleEntry<
@@ -1079,6 +1112,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1079
1112
  * Rule to enforce a particular style for multiline comments.
1080
1113
  *
1081
1114
  * @since 4.10.0
1115
+ * @deprecated since 9.3.0, please use the [corresponding rule](https://eslint.style/rules/js/multiline-comment-style) in `@stylistic/eslint-plugin-js`.
1082
1116
  * @see https://eslint.org/docs/rules/multiline-comment-style
1083
1117
  */
1084
1118
  "multiline-comment-style": Linter.RuleEntry<["starred-block" | "bare-block" | "separate-lines"]>;
@@ -1087,6 +1121,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1087
1121
  * Rule to enforce newlines between operands of ternary expressions.
1088
1122
  *
1089
1123
  * @since 3.1.0
1124
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/multiline-ternary) in `@stylistic/eslint-plugin-js`.
1090
1125
  * @see https://eslint.org/docs/rules/multiline-ternary
1091
1126
  */
1092
1127
  "multiline-ternary": Linter.RuleEntry<["always" | "always-multiline" | "never"]>;
@@ -1124,6 +1159,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1124
1159
  * Rule to enforce or disallow parentheses when invoking a constructor with no arguments.
1125
1160
  *
1126
1161
  * @since 0.0.6
1162
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/new-parens) in `@stylistic/eslint-plugin-js`.
1127
1163
  * @see https://eslint.org/docs/rules/new-parens
1128
1164
  */
1129
1165
  "new-parens": Linter.RuleEntry<["always" | "never"]>;
@@ -1132,6 +1168,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1132
1168
  * Rule to require a newline after each call in a method chain.
1133
1169
  *
1134
1170
  * @since 2.0.0-rc.0
1171
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/newline-per-chained-call) in `@stylistic/eslint-plugin-js`.
1135
1172
  * @see https://eslint.org/docs/rules/newline-per-chained-call
1136
1173
  */
1137
1174
  "newline-per-chained-call": Linter.RuleEntry<
@@ -1199,6 +1236,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1199
1236
  * Rule to disallow mixed binary operators.
1200
1237
  *
1201
1238
  * @since 2.12.0
1239
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-mixed-operators) in `@stylistic/eslint-plugin-js`.
1202
1240
  * @see https://eslint.org/docs/rules/no-mixed-operators
1203
1241
  */
1204
1242
  "no-mixed-operators": Linter.RuleEntry<
@@ -1230,6 +1268,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1230
1268
  * Recommended by ESLint, the rule was enabled in `eslint:recommended`.
1231
1269
  *
1232
1270
  * @since 0.7.1
1271
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-mixed-spaces-and-tabs) in `@stylistic/eslint-plugin-js`.
1233
1272
  * @see https://eslint.org/docs/rules/no-mixed-spaces-and-tabs
1234
1273
  */
1235
1274
  "no-mixed-spaces-and-tabs": Linter.RuleEntry<["smart-tabs"]>;
@@ -1246,6 +1285,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1246
1285
  * Rule to disallow multiple empty lines.
1247
1286
  *
1248
1287
  * @since 0.9.0
1288
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-multiple-empty-lines) in `@stylistic/eslint-plugin-js`.
1249
1289
  * @see https://eslint.org/docs/rules/no-multiple-empty-lines
1250
1290
  */
1251
1291
  "no-multiple-empty-lines": Linter.RuleEntry<
@@ -1279,12 +1319,12 @@ export interface StylisticIssues extends Linter.RulesRecord {
1279
1319
  "no-nested-ternary": Linter.RuleEntry<[]>;
1280
1320
 
1281
1321
  /**
1282
- * Rule to disallow `Object` constructors.
1322
+ * Rule to disallow calls to the `Object` constructor without an argument
1283
1323
  *
1284
- * @since 0.0.9
1285
- * @see https://eslint.org/docs/rules/no-new-object
1324
+ * @since 8.50.0
1325
+ * @see https://eslint.org/docs/rules/no-object-constructor
1286
1326
  */
1287
- "no-new-object": Linter.RuleEntry<[]>;
1327
+ "no-object-constructor": Linter.RuleEntry<[]>;
1288
1328
 
1289
1329
  /**
1290
1330
  * Rule to disallow the unary operators `++` and `--`.
@@ -1325,6 +1365,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1325
1365
  * Rule to disallow all tabs.
1326
1366
  *
1327
1367
  * @since 3.2.0
1368
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-tabs) in `@stylistic/eslint-plugin-js`.
1328
1369
  * @see https://eslint.org/docs/rules/no-tabs
1329
1370
  */
1330
1371
  "no-tabs": Linter.RuleEntry<
@@ -1350,6 +1391,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1350
1391
  * Rule to disallow trailing whitespace at the end of lines.
1351
1392
  *
1352
1393
  * @since 0.7.1
1394
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-trailing-spaces) in `@stylistic/eslint-plugin-js`.
1353
1395
  * @see https://eslint.org/docs/rules/no-trailing-spaces
1354
1396
  */
1355
1397
  "no-trailing-spaces": Linter.RuleEntry<
@@ -1439,6 +1481,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1439
1481
  * Rule to disallow whitespace before properties.
1440
1482
  *
1441
1483
  * @since 2.0.0-beta.1
1484
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/no-whitespace-before-property) in `@stylistic/eslint-plugin-js`.
1442
1485
  * @see https://eslint.org/docs/rules/no-whitespace-before-property
1443
1486
  */
1444
1487
  "no-whitespace-before-property": Linter.RuleEntry<[]>;
@@ -1447,6 +1490,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1447
1490
  * Rule to enforce the location of single-line statements.
1448
1491
  *
1449
1492
  * @since 3.17.0
1493
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/nonblock-statement-body-position) in `@stylistic/eslint-plugin-js`.
1450
1494
  * @see https://eslint.org/docs/rules/nonblock-statement-body-position
1451
1495
  */
1452
1496
  "nonblock-statement-body-position": Linter.RuleEntry<
@@ -1462,6 +1506,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1462
1506
  * Rule to enforce consistent line breaks inside braces.
1463
1507
  *
1464
1508
  * @since 2.12.0
1509
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-curly-newline) in `@stylistic/eslint-plugin-js`.
1465
1510
  * @see https://eslint.org/docs/rules/object-curly-newline
1466
1511
  */
1467
1512
  "object-curly-newline": Linter.RuleEntry<
@@ -1504,6 +1549,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1504
1549
  * Rule to enforce consistent spacing inside braces.
1505
1550
  *
1506
1551
  * @since 0.22.0
1552
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-curly-spacing) in `@stylistic/eslint-plugin-js`.
1507
1553
  * @see https://eslint.org/docs/rules/object-curly-spacing
1508
1554
  */
1509
1555
  "object-curly-spacing":
@@ -1542,6 +1588,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1542
1588
  * Rule to enforce placing object properties on separate lines.
1543
1589
  *
1544
1590
  * @since 2.10.0
1591
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/object-property-newline) in `@stylistic/eslint-plugin-js`.
1545
1592
  * @see https://eslint.org/docs/rules/object-property-newline
1546
1593
  */
1547
1594
  "object-property-newline": Linter.RuleEntry<
@@ -1582,6 +1629,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1582
1629
  * Rule to require or disallow newlines around variable declarations.
1583
1630
  *
1584
1631
  * @since 2.0.0-beta.3
1632
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/one-var-declaration-per-line) in `@stylistic/eslint-plugin-js`.
1585
1633
  * @see https://eslint.org/docs/rules/one-var-declaration-per-line
1586
1634
  */
1587
1635
  "one-var-declaration-per-line": Linter.RuleEntry<["initializations" | "always"]>;
@@ -1598,6 +1646,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1598
1646
  * Rule to enforce consistent linebreak style for operators.
1599
1647
  *
1600
1648
  * @since 0.19.0
1649
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/operator-linebreak) in `@stylistic/eslint-plugin-js`.
1601
1650
  * @see https://eslint.org/docs/rules/operator-linebreak
1602
1651
  */
1603
1652
  "operator-linebreak": Linter.RuleEntry<
@@ -1613,6 +1662,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1613
1662
  * Rule to require or disallow padding within blocks.
1614
1663
  *
1615
1664
  * @since 0.9.0
1665
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/padded-blocks) in `@stylistic/eslint-plugin-js`.
1616
1666
  * @see https://eslint.org/docs/rules/padded-blocks
1617
1667
  */
1618
1668
  "padded-blocks": Linter.RuleEntry<
@@ -1631,6 +1681,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1631
1681
  * Rule to require or disallow padding lines between statements.
1632
1682
  *
1633
1683
  * @since 4.0.0-beta.0
1684
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/padding-line-between-statements) in `@stylistic/eslint-plugin-js`.
1634
1685
  * @see https://eslint.org/docs/rules/padding-line-between-statements
1635
1686
  */
1636
1687
  "padding-line-between-statements": Linter.RuleEntry<
@@ -1655,6 +1706,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1655
1706
  * Rule to require quotes around object literal property names.
1656
1707
  *
1657
1708
  * @since 0.0.6
1709
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/quote-props) in `@stylistic/eslint-plugin-js`.
1658
1710
  * @see https://eslint.org/docs/rules/quote-props
1659
1711
  */
1660
1712
  "quote-props":
@@ -1746,6 +1798,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1746
1798
  * Rule to enforce consistent spacing before and after semicolons.
1747
1799
  *
1748
1800
  * @since 0.16.0
1801
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/semi-spacing) in `@stylistic/eslint-plugin-js`.
1749
1802
  * @see https://eslint.org/docs/rules/semi-spacing
1750
1803
  */
1751
1804
  "semi-spacing": Linter.RuleEntry<
@@ -1767,6 +1820,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1767
1820
  * Rule to enforce location of semicolons.
1768
1821
  *
1769
1822
  * @since 4.0.0-beta.0
1823
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/semi-style) in `@stylistic/eslint-plugin-js`.
1770
1824
  * @see https://eslint.org/docs/rules/semi-style
1771
1825
  */
1772
1826
  "semi-style": Linter.RuleEntry<["last" | "first"]>;
@@ -1822,6 +1876,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1822
1876
  * Rule to enforce consistent spacing before blocks.
1823
1877
  *
1824
1878
  * @since 0.9.0
1879
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-before-blocks) in `@stylistic/eslint-plugin-js`.
1825
1880
  * @see https://eslint.org/docs/rules/space-before-blocks
1826
1881
  */
1827
1882
  "space-before-blocks": Linter.RuleEntry<
@@ -1832,6 +1887,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1832
1887
  * Rule to enforce consistent spacing before `function` definition opening parenthesis.
1833
1888
  *
1834
1889
  * @since 0.18.0
1890
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-before-function-paren) in `@stylistic/eslint-plugin-js`.
1835
1891
  * @see https://eslint.org/docs/rules/space-before-function-paren
1836
1892
  */
1837
1893
  "space-before-function-paren": Linter.RuleEntry<
@@ -1842,6 +1898,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1842
1898
  * Rule to enforce consistent spacing inside parentheses.
1843
1899
  *
1844
1900
  * @since 0.8.0
1901
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-in-parens) in `@stylistic/eslint-plugin-js`.
1845
1902
  * @see https://eslint.org/docs/rules/space-in-parens
1846
1903
  */
1847
1904
  "space-in-parens": Linter.RuleEntry<
@@ -1857,6 +1914,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1857
1914
  * Rule to require spacing around infix operators.
1858
1915
  *
1859
1916
  * @since 0.2.0
1917
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-infix-ops) in `@stylistic/eslint-plugin-js`.
1860
1918
  * @see https://eslint.org/docs/rules/space-infix-ops
1861
1919
  */
1862
1920
  "space-infix-ops": Linter.RuleEntry<
@@ -1874,6 +1932,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1874
1932
  * Rule to enforce consistent spacing before or after unary operators.
1875
1933
  *
1876
1934
  * @since 0.10.0
1935
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/space-unary-ops) in `@stylistic/eslint-plugin-js`.
1877
1936
  * @see https://eslint.org/docs/rules/space-unary-ops
1878
1937
  */
1879
1938
  "space-unary-ops": Linter.RuleEntry<
@@ -1896,6 +1955,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1896
1955
  * Rule to enforce consistent spacing after the `//` or `/*` in a comment.
1897
1956
  *
1898
1957
  * @since 0.23.0
1958
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/spaced-comment) in `@stylistic/eslint-plugin-js`.
1899
1959
  * @see https://eslint.org/docs/rules/spaced-comment
1900
1960
  */
1901
1961
  "spaced-comment": Linter.RuleEntry<
@@ -1924,6 +1984,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1924
1984
  * Rule to enforce spacing around colons of switch statements.
1925
1985
  *
1926
1986
  * @since 4.0.0-beta.0
1987
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/switch-colon-spacing) in `@stylistic/eslint-plugin-js`.
1927
1988
  * @see https://eslint.org/docs/rules/switch-colon-spacing
1928
1989
  */
1929
1990
  "switch-colon-spacing": Linter.RuleEntry<
@@ -1945,6 +2006,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1945
2006
  * Rule to require or disallow spacing between template tags and their literals.
1946
2007
  *
1947
2008
  * @since 3.15.0
2009
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/template-tag-spacing) in `@stylistic/eslint-plugin-js`.
1948
2010
  * @see https://eslint.org/docs/rules/template-tag-spacing
1949
2011
  */
1950
2012
  "template-tag-spacing": Linter.RuleEntry<["never" | "always"]>;
@@ -1961,6 +2023,7 @@ export interface StylisticIssues extends Linter.RulesRecord {
1961
2023
  * Rule to require parenthesis around regex literals.
1962
2024
  *
1963
2025
  * @since 0.1.0
2026
+ * @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/wrap-regex) in `@stylistic/eslint-plugin-js`.
1964
2027
  * @see https://eslint.org/docs/rules/wrap-regex
1965
2028
  */
1966
2029
  "wrap-regex": Linter.RuleEntry<[]>;
@@ -185,11 +185,19 @@ export interface Variables extends Linter.RulesRecord {
185
185
  ignoreRestSiblings: boolean;
186
186
  argsIgnorePattern: string;
187
187
  /**
188
- * @default 'none'
188
+ * @default 'all'
189
189
  */
190
190
  caughtErrors: "none" | "all";
191
191
  caughtErrorsIgnorePattern: string;
192
192
  destructuredArrayIgnorePattern: string;
193
+ /**
194
+ * @default false
195
+ */
196
+ ignoreClassWithStaticInitBlock: boolean;
197
+ /**
198
+ * @default false
199
+ */
200
+ reportUsedIgnorePattern: boolean;
193
201
  }>,
194
202
  ]
195
203
  >;
@@ -14,13 +14,14 @@
14
14
  const { FileEnumerator } = require("./cli-engine/file-enumerator");
15
15
  const { ESLint: FlatESLint, shouldUseFlatConfig } = require("./eslint/eslint");
16
16
  const { LegacyESLint } = require("./eslint/legacy-eslint");
17
+ const builtinRules = require("./rules");
17
18
 
18
19
  //-----------------------------------------------------------------------------
19
20
  // Exports
20
21
  //-----------------------------------------------------------------------------
21
22
 
22
23
  module.exports = {
23
- builtinRules: require("./rules"),
24
+ builtinRules,
24
25
  FlatESLint,
25
26
  shouldUseFlatConfig,
26
27
  FileEnumerator,
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "9.11.1",
3
+ "version": "9.13.0",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
+ "type": "commonjs",
6
7
  "bin": {
7
8
  "eslint": "./bin/eslint.js"
8
9
  },
@@ -26,6 +27,19 @@
26
27
  "default": "./lib/universal.js"
27
28
  }
28
29
  },
30
+ "typesVersions": {
31
+ "*": {
32
+ "use-at-your-own-risk": [
33
+ "./lib/types/use-at-your-own-risk.d.ts"
34
+ ],
35
+ "rules": [
36
+ "./lib/types/rules/index.d.ts"
37
+ ],
38
+ "universal": [
39
+ "./lib/types/universal.d.ts"
40
+ ]
41
+ }
42
+ },
29
43
  "scripts": {
30
44
  "build:docs:update-links": "node tools/fetch-docs-links.js",
31
45
  "build:site": "node Makefile.js gensite",
@@ -38,6 +52,7 @@
38
52
  "lint:unused": "knip",
39
53
  "lint:fix": "trunk check -y --ignore=docs/**/*.js -a --filter=eslint && trunk check -y --ignore=docs/**/*.js",
40
54
  "lint:fix:docs:js": "trunk check -y --ignore=** --ignore=!docs/**/*.js -a --flter=eslint && trunk check -y --ignore=** --ignore=!docs/**/*.js",
55
+ "lint:types": "attw --pack",
41
56
  "release:generate:alpha": "node Makefile.js generatePrerelease -- alpha",
42
57
  "release:generate:beta": "node Makefile.js generatePrerelease -- beta",
43
58
  "release:generate:latest": "node Makefile.js generateRelease -- latest",
@@ -85,13 +100,13 @@
85
100
  "@eslint-community/eslint-utils": "^4.2.0",
86
101
  "@eslint-community/regexpp": "^4.11.0",
87
102
  "@eslint/config-array": "^0.18.0",
88
- "@eslint/core": "^0.6.0",
103
+ "@eslint/core": "^0.7.0",
89
104
  "@eslint/eslintrc": "^3.1.0",
90
- "@eslint/js": "9.11.1",
105
+ "@eslint/js": "9.13.0",
91
106
  "@eslint/plugin-kit": "^0.2.0",
107
+ "@humanfs/node": "^0.16.5",
92
108
  "@humanwhocodes/module-importer": "^1.0.1",
93
- "@humanwhocodes/retry": "^0.3.0",
94
- "@nodelib/fs.walk": "^1.2.8",
109
+ "@humanwhocodes/retry": "^0.3.1",
95
110
  "@types/estree": "^1.0.6",
96
111
  "@types/json-schema": "^7.0.15",
97
112
  "ajv": "^6.12.4",
@@ -99,9 +114,9 @@
99
114
  "cross-spawn": "^7.0.2",
100
115
  "debug": "^4.3.2",
101
116
  "escape-string-regexp": "^4.0.0",
102
- "eslint-scope": "^8.0.2",
103
- "eslint-visitor-keys": "^4.0.0",
104
- "espree": "^10.1.0",
117
+ "eslint-scope": "^8.1.0",
118
+ "eslint-visitor-keys": "^4.1.0",
119
+ "espree": "^10.2.0",
105
120
  "esquery": "^1.5.0",
106
121
  "esutils": "^2.0.2",
107
122
  "fast-deep-equal": "^3.1.3",
@@ -111,19 +126,18 @@
111
126
  "ignore": "^5.2.0",
112
127
  "imurmurhash": "^0.1.4",
113
128
  "is-glob": "^4.0.0",
114
- "is-path-inside": "^3.0.3",
115
129
  "json-stable-stringify-without-jsonify": "^1.0.1",
116
130
  "lodash.merge": "^4.6.2",
117
131
  "minimatch": "^3.1.2",
118
132
  "natural-compare": "^1.4.0",
119
133
  "optionator": "^0.9.3",
120
- "strip-ansi": "^6.0.1",
121
134
  "text-table": "^0.2.0"
122
135
  },
123
136
  "devDependencies": {
137
+ "@arethetypeswrong/cli": "^0.16.4",
124
138
  "@babel/core": "^7.4.3",
125
139
  "@babel/preset-env": "^7.4.3",
126
- "@eslint/json": "^0.4.0",
140
+ "@eslint/json": "^0.5.0",
127
141
  "@trunkio/launcher": "^1.3.0",
128
142
  "@types/node": "^20.11.5",
129
143
  "@typescript-eslint/parser": "^8.4.0",
@@ -153,8 +167,8 @@
153
167
  "globals": "^15.0.0",
154
168
  "got": "^11.8.3",
155
169
  "gray-matter": "^4.0.3",
156
- "jiti": "^1.21.6",
157
- "knip": "^5.21.0",
170
+ "jiti": "^2.1.0",
171
+ "knip": "^5.32.0",
158
172
  "lint-staged": "^11.0.0",
159
173
  "load-perf": "^0.2.0",
160
174
  "markdown-it": "^12.2.0",
@@ -166,7 +180,7 @@
166
180
  "metascraper-logo": "^5.25.7",
167
181
  "metascraper-logo-favicon": "^5.25.7",
168
182
  "metascraper-title": "^5.25.7",
169
- "mocha": "^8.3.2",
183
+ "mocha": "^10.7.3",
170
184
  "node-polyfill-webpack-plugin": "^1.0.3",
171
185
  "npm-license": "^0.3.3",
172
186
  "pirates": "^4.0.5",