eslint-plugin-react-x 1.36.2-beta.1 → 1.36.2-next.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.
Files changed (3) hide show
  1. package/dist/index.js +129 -40
  2. package/dist/index.mjs +129 -40
  3. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -136,12 +136,14 @@ var settings3 = {
136
136
 
137
137
  // package.json
138
138
  var name4 = "eslint-plugin-react-x";
139
- var version = "1.36.2-beta.1";
139
+ var version = "1.36.2-next.0";
140
140
  var createRule = shared.createRuleForPlugin("x");
141
141
 
142
142
  // src/rules/avoid-shorthand-boolean.ts
143
143
  var RULE_NAME = "avoid-shorthand-boolean";
144
- var RULE_FEATURES = [];
144
+ var RULE_FEATURES = [
145
+ "CHK"
146
+ ];
145
147
  var avoid_shorthand_boolean_default = createRule({
146
148
  meta: {
147
149
  type: "problem",
@@ -178,7 +180,9 @@ function create(context) {
178
180
 
179
181
  // src/rules/avoid-shorthand-fragment.ts
180
182
  var RULE_NAME2 = "avoid-shorthand-fragment";
181
- var RULE_FEATURES2 = [];
183
+ var RULE_FEATURES2 = [
184
+ "CHK"
185
+ ];
182
186
  var avoid_shorthand_fragment_default = createRule({
183
187
  meta: {
184
188
  type: "problem",
@@ -206,7 +210,9 @@ function create2(context) {
206
210
  };
207
211
  }
208
212
  var RULE_NAME3 = "no-access-state-in-setstate";
209
- var RULE_FEATURES3 = [];
213
+ var RULE_FEATURES3 = [
214
+ "CHK"
215
+ ];
210
216
  function isKeyLiteral(node, key) {
211
217
  return tsPattern.match(key).with({ type: types.AST_NODE_TYPES.Literal }, eff.constTrue).with({ type: types.AST_NODE_TYPES.TemplateLiteral, expressions: [] }, eff.constTrue).with({ type: types.AST_NODE_TYPES.Identifier }, () => !node.computed).otherwise(eff.constFalse);
212
218
  }
@@ -318,7 +324,9 @@ function create3(context) {
318
324
  };
319
325
  }
320
326
  var RULE_NAME4 = "no-array-index-key";
321
- var RULE_FEATURES4 = [];
327
+ var RULE_FEATURES4 = [
328
+ "CHK"
329
+ ];
322
330
  var reactChildrenMethod = ["forEach", "map"];
323
331
  var iteratorFunctionIndexParamPosition = /* @__PURE__ */ new Map([
324
332
  ["every", 1],
@@ -511,7 +519,9 @@ function create4(context) {
511
519
  };
512
520
  }
513
521
  var RULE_NAME5 = "no-children-count";
514
- var RULE_FEATURES5 = [];
522
+ var RULE_FEATURES5 = [
523
+ "CHK"
524
+ ];
515
525
  var no_children_count_default = createRule({
516
526
  meta: {
517
527
  type: "problem",
@@ -541,7 +551,9 @@ function create5(context) {
541
551
  };
542
552
  }
543
553
  var RULE_NAME6 = "no-children-for-each";
544
- var RULE_FEATURES6 = [];
554
+ var RULE_FEATURES6 = [
555
+ "CHK"
556
+ ];
545
557
  var no_children_for_each_default = createRule({
546
558
  meta: {
547
559
  type: "problem",
@@ -571,7 +583,9 @@ function create6(context) {
571
583
  };
572
584
  }
573
585
  var RULE_NAME7 = "no-children-map";
574
- var RULE_FEATURES7 = [];
586
+ var RULE_FEATURES7 = [
587
+ "CHK"
588
+ ];
575
589
  var no_children_map_default = createRule({
576
590
  meta: {
577
591
  type: "problem",
@@ -600,7 +614,9 @@ var no_children_map_default = createRule({
600
614
  defaultOptions: []
601
615
  });
602
616
  var RULE_NAME8 = "no-children-only";
603
- var RULE_FEATURES8 = [];
617
+ var RULE_FEATURES8 = [
618
+ "CHK"
619
+ ];
604
620
  var no_children_only_default = createRule({
605
621
  meta: {
606
622
  type: "problem",
@@ -630,7 +646,9 @@ function create7(context) {
630
646
  };
631
647
  }
632
648
  var RULE_NAME9 = "no-children-prop";
633
- var RULE_FEATURES9 = [];
649
+ var RULE_FEATURES9 = [
650
+ "CHK"
651
+ ];
634
652
  var no_children_prop_default = createRule({
635
653
  meta: {
636
654
  type: "problem",
@@ -665,7 +683,9 @@ function create8(context) {
665
683
  };
666
684
  }
667
685
  var RULE_NAME10 = "no-children-to-array";
668
- var RULE_FEATURES10 = [];
686
+ var RULE_FEATURES10 = [
687
+ "CHK"
688
+ ];
669
689
  var no_children_to_array_default = createRule({
670
690
  meta: {
671
691
  type: "problem",
@@ -695,7 +715,9 @@ function create9(context) {
695
715
  };
696
716
  }
697
717
  var RULE_NAME11 = "no-class-component";
698
- var RULE_FEATURES11 = [];
718
+ var RULE_FEATURES11 = [
719
+ "CHK"
720
+ ];
699
721
  var no_class_component_default = createRule({
700
722
  meta: {
701
723
  type: "problem",
@@ -735,7 +757,9 @@ function create10(context) {
735
757
  };
736
758
  }
737
759
  var RULE_NAME12 = "no-clone-element";
738
- var RULE_FEATURES12 = [];
760
+ var RULE_FEATURES12 = [
761
+ "CHK"
762
+ ];
739
763
  var no_clone_element_default = createRule({
740
764
  meta: {
741
765
  type: "problem",
@@ -766,7 +790,9 @@ function create11(context) {
766
790
  };
767
791
  }
768
792
  var RULE_NAME13 = "no-comment-textnodes";
769
- var RULE_FEATURES13 = [];
793
+ var RULE_FEATURES13 = [
794
+ "CHK"
795
+ ];
770
796
  var no_comment_textnodes_default = createRule({
771
797
  meta: {
772
798
  type: "problem",
@@ -811,7 +837,9 @@ var no_comment_textnodes_default = createRule({
811
837
  defaultOptions: []
812
838
  });
813
839
  var RULE_NAME14 = "no-complex-conditional-rendering";
814
- var RULE_FEATURES14 = [];
840
+ var RULE_FEATURES14 = [
841
+ "CHK"
842
+ ];
815
843
  var no_complex_conditional_rendering_default = createRule({
816
844
  meta: {
817
845
  type: "problem",
@@ -855,6 +883,7 @@ function create12(context) {
855
883
  }
856
884
  var RULE_NAME15 = "no-component-will-mount";
857
885
  var RULE_FEATURES15 = [
886
+ "CHK",
858
887
  "MOD"
859
888
  ];
860
889
  function isComponentWillMount(node) {
@@ -906,6 +935,7 @@ function create13(context) {
906
935
  }
907
936
  var RULE_NAME16 = "no-component-will-receive-props";
908
937
  var RULE_FEATURES16 = [
938
+ "CHK",
909
939
  "MOD"
910
940
  ];
911
941
  function isComponentWillUpdate(node) {
@@ -957,6 +987,7 @@ function create14(context) {
957
987
  }
958
988
  var RULE_NAME17 = "no-component-will-update";
959
989
  var RULE_FEATURES17 = [
990
+ "CHK",
960
991
  "MOD"
961
992
  ];
962
993
  function isComponentWillUpdate2(node) {
@@ -1008,6 +1039,7 @@ function create15(context) {
1008
1039
  }
1009
1040
  var RULE_NAME18 = "no-context-provider";
1010
1041
  var RULE_FEATURES18 = [
1042
+ "CHK",
1011
1043
  "MOD"
1012
1044
  ];
1013
1045
  var no_context_provider_default = createRule({
@@ -1060,7 +1092,9 @@ function create16(context) {
1060
1092
  };
1061
1093
  }
1062
1094
  var RULE_NAME19 = "no-create-ref";
1063
- var RULE_FEATURES19 = [];
1095
+ var RULE_FEATURES19 = [
1096
+ "CHK"
1097
+ ];
1064
1098
  var no_create_ref_default = createRule({
1065
1099
  meta: {
1066
1100
  type: "problem",
@@ -1087,7 +1121,9 @@ function create17(context) {
1087
1121
  };
1088
1122
  }
1089
1123
  var RULE_NAME20 = "no-default-props";
1090
- var RULE_FEATURES20 = [];
1124
+ var RULE_FEATURES20 = [
1125
+ "CHK"
1126
+ ];
1091
1127
  var no_default_props_default = createRule({
1092
1128
  meta: {
1093
1129
  type: "problem",
@@ -1139,7 +1175,9 @@ function create18(context) {
1139
1175
  };
1140
1176
  }
1141
1177
  var RULE_NAME21 = "no-direct-mutation-state";
1142
- var RULE_FEATURES21 = [];
1178
+ var RULE_FEATURES21 = [
1179
+ "CHK"
1180
+ ];
1143
1181
  function isConstructorFunction(node) {
1144
1182
  return AST11__namespace.isOneOf([types.AST_NODE_TYPES.FunctionDeclaration, types.AST_NODE_TYPES.FunctionExpression])(node) && AST11__namespace.isMethodOrProperty(node.parent) && node.parent.key.type === types.AST_NODE_TYPES.Identifier && node.parent.key.name === "constructor";
1145
1183
  }
@@ -1181,7 +1219,9 @@ function create19(context) {
1181
1219
  };
1182
1220
  }
1183
1221
  var RULE_NAME22 = "no-duplicate-jsx-props";
1184
- var RULE_FEATURES22 = [];
1222
+ var RULE_FEATURES22 = [
1223
+ "CHK"
1224
+ ];
1185
1225
  var no_duplicate_jsx_props_default = createRule({
1186
1226
  meta: {
1187
1227
  type: "problem",
@@ -1223,7 +1263,9 @@ function create20(context) {
1223
1263
  };
1224
1264
  }
1225
1265
  var RULE_NAME23 = "no-duplicate-key";
1226
- var RULE_FEATURES23 = [];
1266
+ var RULE_FEATURES23 = [
1267
+ "CHK"
1268
+ ];
1227
1269
  var no_duplicate_key_default = createRule({
1228
1270
  meta: {
1229
1271
  type: "problem",
@@ -1306,6 +1348,7 @@ function create21(context) {
1306
1348
  }
1307
1349
  var RULE_NAME24 = "no-forward-ref";
1308
1350
  var RULE_FEATURES24 = [
1351
+ "CHK",
1309
1352
  "MOD"
1310
1353
  ];
1311
1354
  var no_forward_ref_default = createRule({
@@ -1414,7 +1457,9 @@ function getComponentPropsFixes(context, fixer, node, typeArguments) {
1414
1457
  ];
1415
1458
  }
1416
1459
  var RULE_NAME25 = "no-implicit-key";
1417
- var RULE_FEATURES25 = [];
1460
+ var RULE_FEATURES25 = [
1461
+ "CHK"
1462
+ ];
1418
1463
  var no_implicit_key_default = createRule({
1419
1464
  meta: {
1420
1465
  type: "problem",
@@ -1447,6 +1492,7 @@ function create23(context) {
1447
1492
  }
1448
1493
  var RULE_NAME26 = "no-leaked-conditional-rendering";
1449
1494
  var RULE_FEATURES26 = [
1495
+ "CHK",
1450
1496
  "TSC"
1451
1497
  ];
1452
1498
  var tsHelpers = {
@@ -1601,7 +1647,9 @@ function create24(context) {
1601
1647
  };
1602
1648
  }
1603
1649
  var RULE_NAME27 = "no-missing-component-display-name";
1604
- var RULE_FEATURES27 = [];
1650
+ var RULE_FEATURES27 = [
1651
+ "CHK"
1652
+ ];
1605
1653
  var no_missing_component_display_name_default = createRule({
1606
1654
  meta: {
1607
1655
  type: "problem",
@@ -1654,7 +1702,9 @@ function create25(context) {
1654
1702
  };
1655
1703
  }
1656
1704
  var RULE_NAME28 = "no-missing-context-display-name";
1657
- var RULE_FEATURES28 = [];
1705
+ var RULE_FEATURES28 = [
1706
+ "CHK"
1707
+ ];
1658
1708
  var no_missing_context_display_name_default = createRule({
1659
1709
  meta: {
1660
1710
  type: "problem",
@@ -1710,7 +1760,9 @@ function create26(context) {
1710
1760
  };
1711
1761
  }
1712
1762
  var RULE_NAME29 = "no-missing-key";
1713
- var RULE_FEATURES29 = [];
1763
+ var RULE_FEATURES29 = [
1764
+ "CHK"
1765
+ ];
1714
1766
  var no_missing_key_default = createRule({
1715
1767
  meta: {
1716
1768
  type: "problem",
@@ -1843,7 +1895,9 @@ function isArrayFromCall(node) {
1843
1895
  return node.type === types.AST_NODE_TYPES.CallExpression && node.callee.type === types.AST_NODE_TYPES.MemberExpression && node.callee.property.type === types.AST_NODE_TYPES.Identifier && node.callee.property.name === "from";
1844
1896
  }
1845
1897
  var RULE_NAME30 = "no-nested-component-definitions";
1846
- var RULE_FEATURES30 = [];
1898
+ var RULE_FEATURES30 = [
1899
+ "CHK"
1900
+ ];
1847
1901
  var no_nested_component_definitions_default = createRule({
1848
1902
  meta: {
1849
1903
  type: "problem",
@@ -1953,7 +2007,9 @@ function isInsideCreateElementProps(context, node) {
1953
2007
  return prop === call.arguments[1];
1954
2008
  }
1955
2009
  var RULE_NAME31 = "no-prop-types";
1956
- var RULE_FEATURES31 = [];
2010
+ var RULE_FEATURES31 = [
2011
+ "CHK"
2012
+ ];
1957
2013
  var no_prop_types_default = createRule({
1958
2014
  meta: {
1959
2015
  type: "problem",
@@ -2007,7 +2063,9 @@ function create29(context) {
2007
2063
  };
2008
2064
  }
2009
2065
  var RULE_NAME32 = "no-redundant-should-component-update";
2010
- var RULE_FEATURES32 = [];
2066
+ var RULE_FEATURES32 = [
2067
+ "CHK"
2068
+ ];
2011
2069
  function isShouldComponentUpdate(node) {
2012
2070
  return AST11__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "shouldComponentUpdate";
2013
2071
  }
@@ -2055,7 +2113,9 @@ function create30(context) {
2055
2113
  };
2056
2114
  }
2057
2115
  var RULE_NAME33 = "no-set-state-in-component-did-mount";
2058
- var RULE_FEATURES33 = [];
2116
+ var RULE_FEATURES33 = [
2117
+ "CHK"
2118
+ ];
2059
2119
  function isComponentDidMount(node) {
2060
2120
  return AST11__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "componentDidMount";
2061
2121
  }
@@ -2097,7 +2157,9 @@ function create31(context) {
2097
2157
  };
2098
2158
  }
2099
2159
  var RULE_NAME34 = "no-set-state-in-component-did-update";
2100
- var RULE_FEATURES34 = [];
2160
+ var RULE_FEATURES34 = [
2161
+ "CHK"
2162
+ ];
2101
2163
  function isComponentDidUpdate(node) {
2102
2164
  return AST11__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "componentDidUpdate";
2103
2165
  }
@@ -2139,7 +2201,9 @@ function create32(context) {
2139
2201
  };
2140
2202
  }
2141
2203
  var RULE_NAME35 = "no-set-state-in-component-will-update";
2142
- var RULE_FEATURES35 = [];
2204
+ var RULE_FEATURES35 = [
2205
+ "CHK"
2206
+ ];
2143
2207
  function isComponentWillUpdate3(node) {
2144
2208
  return AST11__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "componentWillUpdate";
2145
2209
  }
@@ -2181,7 +2245,9 @@ function create33(context) {
2181
2245
  };
2182
2246
  }
2183
2247
  var RULE_NAME36 = "no-string-refs";
2184
- var RULE_FEATURES36 = [];
2248
+ var RULE_FEATURES36 = [
2249
+ "CHK"
2250
+ ];
2185
2251
  function containsStringLiteral({ value }) {
2186
2252
  return value?.type === types.AST_NODE_TYPES.Literal && typeof value.value === "string";
2187
2253
  }
@@ -2226,7 +2292,9 @@ function create34(context) {
2226
2292
  };
2227
2293
  }
2228
2294
  var RULE_NAME37 = "no-unsafe-component-will-mount";
2229
- var RULE_FEATURES37 = [];
2295
+ var RULE_FEATURES37 = [
2296
+ "CHK"
2297
+ ];
2230
2298
  function isUnsafeComponentWillMount(node) {
2231
2299
  return AST11__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "UNSAFE_componentWillMount";
2232
2300
  }
@@ -2268,7 +2336,9 @@ function create35(context) {
2268
2336
  };
2269
2337
  }
2270
2338
  var RULE_NAME38 = "no-unsafe-component-will-receive-props";
2271
- var RULE_FEATURES38 = [];
2339
+ var RULE_FEATURES38 = [
2340
+ "CHK"
2341
+ ];
2272
2342
  function isUnsafeComponentWillReceiveProps(node) {
2273
2343
  return AST11__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "UNSAFE_componentWillReceiveProps";
2274
2344
  }
@@ -2312,7 +2382,9 @@ function create36(context) {
2312
2382
  };
2313
2383
  }
2314
2384
  var RULE_NAME39 = "no-unsafe-component-will-update";
2315
- var RULE_FEATURES39 = [];
2385
+ var RULE_FEATURES39 = [
2386
+ "CHK"
2387
+ ];
2316
2388
  function isUnsafeComponentWillUpdate(node) {
2317
2389
  return AST11__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "UNSAFE_componentWillUpdate";
2318
2390
  }
@@ -2354,7 +2426,9 @@ function create37(context) {
2354
2426
  };
2355
2427
  }
2356
2428
  var RULE_NAME40 = "no-unstable-context-value";
2357
- var RULE_FEATURES40 = [];
2429
+ var RULE_FEATURES40 = [
2430
+ "CHK"
2431
+ ];
2358
2432
  var no_unstable_context_value_default = createRule({
2359
2433
  meta: {
2360
2434
  type: "problem",
@@ -2427,7 +2501,9 @@ function isContextName(name5, isReact18OrBelow) {
2427
2501
  return false;
2428
2502
  }
2429
2503
  var RULE_NAME41 = "no-unstable-default-props";
2430
- var RULE_FEATURES41 = [];
2504
+ var RULE_FEATURES41 = [
2505
+ "CHK"
2506
+ ];
2431
2507
  var no_unstable_default_props_default = createRule({
2432
2508
  meta: {
2433
2509
  type: "problem",
@@ -2501,7 +2577,9 @@ function create39(context) {
2501
2577
  };
2502
2578
  }
2503
2579
  var RULE_NAME42 = "no-unused-class-component-members";
2504
- var RULE_FEATURES42 = [];
2580
+ var RULE_FEATURES42 = [
2581
+ "CHK"
2582
+ ];
2505
2583
  var LIFECYCLE_METHODS = /* @__PURE__ */ new Set([
2506
2584
  "componentDidCatch",
2507
2585
  "componentDidMount",
@@ -2649,7 +2727,9 @@ function create40(context) {
2649
2727
  };
2650
2728
  }
2651
2729
  var RULE_NAME43 = "no-unused-state";
2652
- var RULE_FEATURES43 = [];
2730
+ var RULE_FEATURES43 = [
2731
+ "CHK"
2732
+ ];
2653
2733
  function isKeyLiteral3(node, key) {
2654
2734
  return tsPattern.match(key).with({ type: types.AST_NODE_TYPES.Literal }, eff.constTrue).with({ type: types.AST_NODE_TYPES.TemplateLiteral, expressions: [] }, eff.constTrue).with({ type: types.AST_NODE_TYPES.Identifier }, () => !node.computed).otherwise(eff.constFalse);
2655
2735
  }
@@ -2805,6 +2885,7 @@ function create41(context) {
2805
2885
  }
2806
2886
  var RULE_NAME44 = "no-use-context";
2807
2887
  var RULE_FEATURES44 = [
2888
+ "CHK",
2808
2889
  "MOD"
2809
2890
  ];
2810
2891
  var no_use_context_default = createRule({
@@ -2903,7 +2984,9 @@ function getAssociatedTokens(context, node) {
2903
2984
  }
2904
2985
  }
2905
2986
  var RULE_NAME45 = "no-useless-forward-ref";
2906
- var RULE_FEATURES45 = [];
2987
+ var RULE_FEATURES45 = [
2988
+ "CHK"
2989
+ ];
2907
2990
  var no_useless_forward_ref_default = createRule({
2908
2991
  meta: {
2909
2992
  type: "problem",
@@ -3084,7 +3167,9 @@ function create44(context, [option]) {
3084
3167
  };
3085
3168
  }
3086
3169
  var RULE_NAME47 = "prefer-destructuring-assignment";
3087
- var RULE_FEATURES46 = [];
3170
+ var RULE_FEATURES46 = [
3171
+ "CHK"
3172
+ ];
3088
3173
  function isMemberExpressionWithObjectName(node) {
3089
3174
  return node.object.type === types.AST_NODE_TYPES.Identifier && "name" in node.object;
3090
3175
  }
@@ -3166,6 +3251,7 @@ function create45(context) {
3166
3251
  }
3167
3252
  var RULE_NAME48 = "prefer-react-namespace-import";
3168
3253
  var RULE_FEATURES47 = [
3254
+ "CHK",
3169
3255
  "FIX"
3170
3256
  ];
3171
3257
  var prefer_react_namespace_import_default = createRule({
@@ -3220,6 +3306,7 @@ ${importStringPrefix} ${specifiers} from ${importSourceQuoted}${semiColon}`
3220
3306
  }
3221
3307
  var RULE_NAME49 = "prefer-read-only-props";
3222
3308
  var RULE_FEATURES48 = [
3309
+ "CHK",
3223
3310
  "TSC"
3224
3311
  ];
3225
3312
  var prefer_read_only_props_default = createRule({
@@ -3261,6 +3348,7 @@ function create47(context) {
3261
3348
  }
3262
3349
  var RULE_NAME50 = "prefer-shorthand-boolean";
3263
3350
  var RULE_FEATURES49 = [
3351
+ "CHK",
3264
3352
  "FIX"
3265
3353
  ];
3266
3354
  var prefer_shorthand_boolean_default = createRule({
@@ -3302,6 +3390,7 @@ function create48(context) {
3302
3390
  }
3303
3391
  var RULE_NAME51 = "prefer-shorthand-fragment";
3304
3392
  var RULE_FEATURES50 = [
3393
+ "CHK",
3305
3394
  "FIX"
3306
3395
  ];
3307
3396
  var prefer_shorthand_fragment_default = createRule({
package/dist/index.mjs CHANGED
@@ -109,12 +109,14 @@ var settings3 = {
109
109
 
110
110
  // package.json
111
111
  var name4 = "eslint-plugin-react-x";
112
- var version = "1.36.2-beta.1";
112
+ var version = "1.36.2-next.0";
113
113
  var createRule = createRuleForPlugin("x");
114
114
 
115
115
  // src/rules/avoid-shorthand-boolean.ts
116
116
  var RULE_NAME = "avoid-shorthand-boolean";
117
- var RULE_FEATURES = [];
117
+ var RULE_FEATURES = [
118
+ "CHK"
119
+ ];
118
120
  var avoid_shorthand_boolean_default = createRule({
119
121
  meta: {
120
122
  type: "problem",
@@ -151,7 +153,9 @@ function create(context) {
151
153
 
152
154
  // src/rules/avoid-shorthand-fragment.ts
153
155
  var RULE_NAME2 = "avoid-shorthand-fragment";
154
- var RULE_FEATURES2 = [];
156
+ var RULE_FEATURES2 = [
157
+ "CHK"
158
+ ];
155
159
  var avoid_shorthand_fragment_default = createRule({
156
160
  meta: {
157
161
  type: "problem",
@@ -179,7 +183,9 @@ function create2(context) {
179
183
  };
180
184
  }
181
185
  var RULE_NAME3 = "no-access-state-in-setstate";
182
- var RULE_FEATURES3 = [];
186
+ var RULE_FEATURES3 = [
187
+ "CHK"
188
+ ];
183
189
  function isKeyLiteral(node, key) {
184
190
  return match(key).with({ type: AST_NODE_TYPES.Literal }, constTrue).with({ type: AST_NODE_TYPES.TemplateLiteral, expressions: [] }, constTrue).with({ type: AST_NODE_TYPES.Identifier }, () => !node.computed).otherwise(constFalse);
185
191
  }
@@ -291,7 +297,9 @@ function create3(context) {
291
297
  };
292
298
  }
293
299
  var RULE_NAME4 = "no-array-index-key";
294
- var RULE_FEATURES4 = [];
300
+ var RULE_FEATURES4 = [
301
+ "CHK"
302
+ ];
295
303
  var reactChildrenMethod = ["forEach", "map"];
296
304
  var iteratorFunctionIndexParamPosition = /* @__PURE__ */ new Map([
297
305
  ["every", 1],
@@ -484,7 +492,9 @@ function create4(context) {
484
492
  };
485
493
  }
486
494
  var RULE_NAME5 = "no-children-count";
487
- var RULE_FEATURES5 = [];
495
+ var RULE_FEATURES5 = [
496
+ "CHK"
497
+ ];
488
498
  var no_children_count_default = createRule({
489
499
  meta: {
490
500
  type: "problem",
@@ -514,7 +524,9 @@ function create5(context) {
514
524
  };
515
525
  }
516
526
  var RULE_NAME6 = "no-children-for-each";
517
- var RULE_FEATURES6 = [];
527
+ var RULE_FEATURES6 = [
528
+ "CHK"
529
+ ];
518
530
  var no_children_for_each_default = createRule({
519
531
  meta: {
520
532
  type: "problem",
@@ -544,7 +556,9 @@ function create6(context) {
544
556
  };
545
557
  }
546
558
  var RULE_NAME7 = "no-children-map";
547
- var RULE_FEATURES7 = [];
559
+ var RULE_FEATURES7 = [
560
+ "CHK"
561
+ ];
548
562
  var no_children_map_default = createRule({
549
563
  meta: {
550
564
  type: "problem",
@@ -573,7 +587,9 @@ var no_children_map_default = createRule({
573
587
  defaultOptions: []
574
588
  });
575
589
  var RULE_NAME8 = "no-children-only";
576
- var RULE_FEATURES8 = [];
590
+ var RULE_FEATURES8 = [
591
+ "CHK"
592
+ ];
577
593
  var no_children_only_default = createRule({
578
594
  meta: {
579
595
  type: "problem",
@@ -603,7 +619,9 @@ function create7(context) {
603
619
  };
604
620
  }
605
621
  var RULE_NAME9 = "no-children-prop";
606
- var RULE_FEATURES9 = [];
622
+ var RULE_FEATURES9 = [
623
+ "CHK"
624
+ ];
607
625
  var no_children_prop_default = createRule({
608
626
  meta: {
609
627
  type: "problem",
@@ -638,7 +656,9 @@ function create8(context) {
638
656
  };
639
657
  }
640
658
  var RULE_NAME10 = "no-children-to-array";
641
- var RULE_FEATURES10 = [];
659
+ var RULE_FEATURES10 = [
660
+ "CHK"
661
+ ];
642
662
  var no_children_to_array_default = createRule({
643
663
  meta: {
644
664
  type: "problem",
@@ -668,7 +688,9 @@ function create9(context) {
668
688
  };
669
689
  }
670
690
  var RULE_NAME11 = "no-class-component";
671
- var RULE_FEATURES11 = [];
691
+ var RULE_FEATURES11 = [
692
+ "CHK"
693
+ ];
672
694
  var no_class_component_default = createRule({
673
695
  meta: {
674
696
  type: "problem",
@@ -708,7 +730,9 @@ function create10(context) {
708
730
  };
709
731
  }
710
732
  var RULE_NAME12 = "no-clone-element";
711
- var RULE_FEATURES12 = [];
733
+ var RULE_FEATURES12 = [
734
+ "CHK"
735
+ ];
712
736
  var no_clone_element_default = createRule({
713
737
  meta: {
714
738
  type: "problem",
@@ -739,7 +763,9 @@ function create11(context) {
739
763
  };
740
764
  }
741
765
  var RULE_NAME13 = "no-comment-textnodes";
742
- var RULE_FEATURES13 = [];
766
+ var RULE_FEATURES13 = [
767
+ "CHK"
768
+ ];
743
769
  var no_comment_textnodes_default = createRule({
744
770
  meta: {
745
771
  type: "problem",
@@ -784,7 +810,9 @@ var no_comment_textnodes_default = createRule({
784
810
  defaultOptions: []
785
811
  });
786
812
  var RULE_NAME14 = "no-complex-conditional-rendering";
787
- var RULE_FEATURES14 = [];
813
+ var RULE_FEATURES14 = [
814
+ "CHK"
815
+ ];
788
816
  var no_complex_conditional_rendering_default = createRule({
789
817
  meta: {
790
818
  type: "problem",
@@ -828,6 +856,7 @@ function create12(context) {
828
856
  }
829
857
  var RULE_NAME15 = "no-component-will-mount";
830
858
  var RULE_FEATURES15 = [
859
+ "CHK",
831
860
  "MOD"
832
861
  ];
833
862
  function isComponentWillMount(node) {
@@ -879,6 +908,7 @@ function create13(context) {
879
908
  }
880
909
  var RULE_NAME16 = "no-component-will-receive-props";
881
910
  var RULE_FEATURES16 = [
911
+ "CHK",
882
912
  "MOD"
883
913
  ];
884
914
  function isComponentWillUpdate(node) {
@@ -930,6 +960,7 @@ function create14(context) {
930
960
  }
931
961
  var RULE_NAME17 = "no-component-will-update";
932
962
  var RULE_FEATURES17 = [
963
+ "CHK",
933
964
  "MOD"
934
965
  ];
935
966
  function isComponentWillUpdate2(node) {
@@ -981,6 +1012,7 @@ function create15(context) {
981
1012
  }
982
1013
  var RULE_NAME18 = "no-context-provider";
983
1014
  var RULE_FEATURES18 = [
1015
+ "CHK",
984
1016
  "MOD"
985
1017
  ];
986
1018
  var no_context_provider_default = createRule({
@@ -1033,7 +1065,9 @@ function create16(context) {
1033
1065
  };
1034
1066
  }
1035
1067
  var RULE_NAME19 = "no-create-ref";
1036
- var RULE_FEATURES19 = [];
1068
+ var RULE_FEATURES19 = [
1069
+ "CHK"
1070
+ ];
1037
1071
  var no_create_ref_default = createRule({
1038
1072
  meta: {
1039
1073
  type: "problem",
@@ -1060,7 +1094,9 @@ function create17(context) {
1060
1094
  };
1061
1095
  }
1062
1096
  var RULE_NAME20 = "no-default-props";
1063
- var RULE_FEATURES20 = [];
1097
+ var RULE_FEATURES20 = [
1098
+ "CHK"
1099
+ ];
1064
1100
  var no_default_props_default = createRule({
1065
1101
  meta: {
1066
1102
  type: "problem",
@@ -1112,7 +1148,9 @@ function create18(context) {
1112
1148
  };
1113
1149
  }
1114
1150
  var RULE_NAME21 = "no-direct-mutation-state";
1115
- var RULE_FEATURES21 = [];
1151
+ var RULE_FEATURES21 = [
1152
+ "CHK"
1153
+ ];
1116
1154
  function isConstructorFunction(node) {
1117
1155
  return AST11.isOneOf([AST_NODE_TYPES.FunctionDeclaration, AST_NODE_TYPES.FunctionExpression])(node) && AST11.isMethodOrProperty(node.parent) && node.parent.key.type === AST_NODE_TYPES.Identifier && node.parent.key.name === "constructor";
1118
1156
  }
@@ -1154,7 +1192,9 @@ function create19(context) {
1154
1192
  };
1155
1193
  }
1156
1194
  var RULE_NAME22 = "no-duplicate-jsx-props";
1157
- var RULE_FEATURES22 = [];
1195
+ var RULE_FEATURES22 = [
1196
+ "CHK"
1197
+ ];
1158
1198
  var no_duplicate_jsx_props_default = createRule({
1159
1199
  meta: {
1160
1200
  type: "problem",
@@ -1196,7 +1236,9 @@ function create20(context) {
1196
1236
  };
1197
1237
  }
1198
1238
  var RULE_NAME23 = "no-duplicate-key";
1199
- var RULE_FEATURES23 = [];
1239
+ var RULE_FEATURES23 = [
1240
+ "CHK"
1241
+ ];
1200
1242
  var no_duplicate_key_default = createRule({
1201
1243
  meta: {
1202
1244
  type: "problem",
@@ -1279,6 +1321,7 @@ function create21(context) {
1279
1321
  }
1280
1322
  var RULE_NAME24 = "no-forward-ref";
1281
1323
  var RULE_FEATURES24 = [
1324
+ "CHK",
1282
1325
  "MOD"
1283
1326
  ];
1284
1327
  var no_forward_ref_default = createRule({
@@ -1387,7 +1430,9 @@ function getComponentPropsFixes(context, fixer, node, typeArguments) {
1387
1430
  ];
1388
1431
  }
1389
1432
  var RULE_NAME25 = "no-implicit-key";
1390
- var RULE_FEATURES25 = [];
1433
+ var RULE_FEATURES25 = [
1434
+ "CHK"
1435
+ ];
1391
1436
  var no_implicit_key_default = createRule({
1392
1437
  meta: {
1393
1438
  type: "problem",
@@ -1420,6 +1465,7 @@ function create23(context) {
1420
1465
  }
1421
1466
  var RULE_NAME26 = "no-leaked-conditional-rendering";
1422
1467
  var RULE_FEATURES26 = [
1468
+ "CHK",
1423
1469
  "TSC"
1424
1470
  ];
1425
1471
  var tsHelpers = {
@@ -1574,7 +1620,9 @@ function create24(context) {
1574
1620
  };
1575
1621
  }
1576
1622
  var RULE_NAME27 = "no-missing-component-display-name";
1577
- var RULE_FEATURES27 = [];
1623
+ var RULE_FEATURES27 = [
1624
+ "CHK"
1625
+ ];
1578
1626
  var no_missing_component_display_name_default = createRule({
1579
1627
  meta: {
1580
1628
  type: "problem",
@@ -1627,7 +1675,9 @@ function create25(context) {
1627
1675
  };
1628
1676
  }
1629
1677
  var RULE_NAME28 = "no-missing-context-display-name";
1630
- var RULE_FEATURES28 = [];
1678
+ var RULE_FEATURES28 = [
1679
+ "CHK"
1680
+ ];
1631
1681
  var no_missing_context_display_name_default = createRule({
1632
1682
  meta: {
1633
1683
  type: "problem",
@@ -1683,7 +1733,9 @@ function create26(context) {
1683
1733
  };
1684
1734
  }
1685
1735
  var RULE_NAME29 = "no-missing-key";
1686
- var RULE_FEATURES29 = [];
1736
+ var RULE_FEATURES29 = [
1737
+ "CHK"
1738
+ ];
1687
1739
  var no_missing_key_default = createRule({
1688
1740
  meta: {
1689
1741
  type: "problem",
@@ -1816,7 +1868,9 @@ function isArrayFromCall(node) {
1816
1868
  return node.type === AST_NODE_TYPES.CallExpression && node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.property.type === AST_NODE_TYPES.Identifier && node.callee.property.name === "from";
1817
1869
  }
1818
1870
  var RULE_NAME30 = "no-nested-component-definitions";
1819
- var RULE_FEATURES30 = [];
1871
+ var RULE_FEATURES30 = [
1872
+ "CHK"
1873
+ ];
1820
1874
  var no_nested_component_definitions_default = createRule({
1821
1875
  meta: {
1822
1876
  type: "problem",
@@ -1926,7 +1980,9 @@ function isInsideCreateElementProps(context, node) {
1926
1980
  return prop === call.arguments[1];
1927
1981
  }
1928
1982
  var RULE_NAME31 = "no-prop-types";
1929
- var RULE_FEATURES31 = [];
1983
+ var RULE_FEATURES31 = [
1984
+ "CHK"
1985
+ ];
1930
1986
  var no_prop_types_default = createRule({
1931
1987
  meta: {
1932
1988
  type: "problem",
@@ -1980,7 +2036,9 @@ function create29(context) {
1980
2036
  };
1981
2037
  }
1982
2038
  var RULE_NAME32 = "no-redundant-should-component-update";
1983
- var RULE_FEATURES32 = [];
2039
+ var RULE_FEATURES32 = [
2040
+ "CHK"
2041
+ ];
1984
2042
  function isShouldComponentUpdate(node) {
1985
2043
  return AST11.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "shouldComponentUpdate";
1986
2044
  }
@@ -2028,7 +2086,9 @@ function create30(context) {
2028
2086
  };
2029
2087
  }
2030
2088
  var RULE_NAME33 = "no-set-state-in-component-did-mount";
2031
- var RULE_FEATURES33 = [];
2089
+ var RULE_FEATURES33 = [
2090
+ "CHK"
2091
+ ];
2032
2092
  function isComponentDidMount(node) {
2033
2093
  return AST11.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "componentDidMount";
2034
2094
  }
@@ -2070,7 +2130,9 @@ function create31(context) {
2070
2130
  };
2071
2131
  }
2072
2132
  var RULE_NAME34 = "no-set-state-in-component-did-update";
2073
- var RULE_FEATURES34 = [];
2133
+ var RULE_FEATURES34 = [
2134
+ "CHK"
2135
+ ];
2074
2136
  function isComponentDidUpdate(node) {
2075
2137
  return AST11.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "componentDidUpdate";
2076
2138
  }
@@ -2112,7 +2174,9 @@ function create32(context) {
2112
2174
  };
2113
2175
  }
2114
2176
  var RULE_NAME35 = "no-set-state-in-component-will-update";
2115
- var RULE_FEATURES35 = [];
2177
+ var RULE_FEATURES35 = [
2178
+ "CHK"
2179
+ ];
2116
2180
  function isComponentWillUpdate3(node) {
2117
2181
  return AST11.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "componentWillUpdate";
2118
2182
  }
@@ -2154,7 +2218,9 @@ function create33(context) {
2154
2218
  };
2155
2219
  }
2156
2220
  var RULE_NAME36 = "no-string-refs";
2157
- var RULE_FEATURES36 = [];
2221
+ var RULE_FEATURES36 = [
2222
+ "CHK"
2223
+ ];
2158
2224
  function containsStringLiteral({ value }) {
2159
2225
  return value?.type === AST_NODE_TYPES.Literal && typeof value.value === "string";
2160
2226
  }
@@ -2199,7 +2265,9 @@ function create34(context) {
2199
2265
  };
2200
2266
  }
2201
2267
  var RULE_NAME37 = "no-unsafe-component-will-mount";
2202
- var RULE_FEATURES37 = [];
2268
+ var RULE_FEATURES37 = [
2269
+ "CHK"
2270
+ ];
2203
2271
  function isUnsafeComponentWillMount(node) {
2204
2272
  return AST11.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "UNSAFE_componentWillMount";
2205
2273
  }
@@ -2241,7 +2309,9 @@ function create35(context) {
2241
2309
  };
2242
2310
  }
2243
2311
  var RULE_NAME38 = "no-unsafe-component-will-receive-props";
2244
- var RULE_FEATURES38 = [];
2312
+ var RULE_FEATURES38 = [
2313
+ "CHK"
2314
+ ];
2245
2315
  function isUnsafeComponentWillReceiveProps(node) {
2246
2316
  return AST11.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "UNSAFE_componentWillReceiveProps";
2247
2317
  }
@@ -2285,7 +2355,9 @@ function create36(context) {
2285
2355
  };
2286
2356
  }
2287
2357
  var RULE_NAME39 = "no-unsafe-component-will-update";
2288
- var RULE_FEATURES39 = [];
2358
+ var RULE_FEATURES39 = [
2359
+ "CHK"
2360
+ ];
2289
2361
  function isUnsafeComponentWillUpdate(node) {
2290
2362
  return AST11.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "UNSAFE_componentWillUpdate";
2291
2363
  }
@@ -2327,7 +2399,9 @@ function create37(context) {
2327
2399
  };
2328
2400
  }
2329
2401
  var RULE_NAME40 = "no-unstable-context-value";
2330
- var RULE_FEATURES40 = [];
2402
+ var RULE_FEATURES40 = [
2403
+ "CHK"
2404
+ ];
2331
2405
  var no_unstable_context_value_default = createRule({
2332
2406
  meta: {
2333
2407
  type: "problem",
@@ -2400,7 +2474,9 @@ function isContextName(name5, isReact18OrBelow) {
2400
2474
  return false;
2401
2475
  }
2402
2476
  var RULE_NAME41 = "no-unstable-default-props";
2403
- var RULE_FEATURES41 = [];
2477
+ var RULE_FEATURES41 = [
2478
+ "CHK"
2479
+ ];
2404
2480
  var no_unstable_default_props_default = createRule({
2405
2481
  meta: {
2406
2482
  type: "problem",
@@ -2474,7 +2550,9 @@ function create39(context) {
2474
2550
  };
2475
2551
  }
2476
2552
  var RULE_NAME42 = "no-unused-class-component-members";
2477
- var RULE_FEATURES42 = [];
2553
+ var RULE_FEATURES42 = [
2554
+ "CHK"
2555
+ ];
2478
2556
  var LIFECYCLE_METHODS = /* @__PURE__ */ new Set([
2479
2557
  "componentDidCatch",
2480
2558
  "componentDidMount",
@@ -2622,7 +2700,9 @@ function create40(context) {
2622
2700
  };
2623
2701
  }
2624
2702
  var RULE_NAME43 = "no-unused-state";
2625
- var RULE_FEATURES43 = [];
2703
+ var RULE_FEATURES43 = [
2704
+ "CHK"
2705
+ ];
2626
2706
  function isKeyLiteral3(node, key) {
2627
2707
  return match(key).with({ type: AST_NODE_TYPES.Literal }, constTrue).with({ type: AST_NODE_TYPES.TemplateLiteral, expressions: [] }, constTrue).with({ type: AST_NODE_TYPES.Identifier }, () => !node.computed).otherwise(constFalse);
2628
2708
  }
@@ -2778,6 +2858,7 @@ function create41(context) {
2778
2858
  }
2779
2859
  var RULE_NAME44 = "no-use-context";
2780
2860
  var RULE_FEATURES44 = [
2861
+ "CHK",
2781
2862
  "MOD"
2782
2863
  ];
2783
2864
  var no_use_context_default = createRule({
@@ -2876,7 +2957,9 @@ function getAssociatedTokens(context, node) {
2876
2957
  }
2877
2958
  }
2878
2959
  var RULE_NAME45 = "no-useless-forward-ref";
2879
- var RULE_FEATURES45 = [];
2960
+ var RULE_FEATURES45 = [
2961
+ "CHK"
2962
+ ];
2880
2963
  var no_useless_forward_ref_default = createRule({
2881
2964
  meta: {
2882
2965
  type: "problem",
@@ -3057,7 +3140,9 @@ function create44(context, [option]) {
3057
3140
  };
3058
3141
  }
3059
3142
  var RULE_NAME47 = "prefer-destructuring-assignment";
3060
- var RULE_FEATURES46 = [];
3143
+ var RULE_FEATURES46 = [
3144
+ "CHK"
3145
+ ];
3061
3146
  function isMemberExpressionWithObjectName(node) {
3062
3147
  return node.object.type === AST_NODE_TYPES.Identifier && "name" in node.object;
3063
3148
  }
@@ -3139,6 +3224,7 @@ function create45(context) {
3139
3224
  }
3140
3225
  var RULE_NAME48 = "prefer-react-namespace-import";
3141
3226
  var RULE_FEATURES47 = [
3227
+ "CHK",
3142
3228
  "FIX"
3143
3229
  ];
3144
3230
  var prefer_react_namespace_import_default = createRule({
@@ -3193,6 +3279,7 @@ ${importStringPrefix} ${specifiers} from ${importSourceQuoted}${semiColon}`
3193
3279
  }
3194
3280
  var RULE_NAME49 = "prefer-read-only-props";
3195
3281
  var RULE_FEATURES48 = [
3282
+ "CHK",
3196
3283
  "TSC"
3197
3284
  ];
3198
3285
  var prefer_read_only_props_default = createRule({
@@ -3234,6 +3321,7 @@ function create47(context) {
3234
3321
  }
3235
3322
  var RULE_NAME50 = "prefer-shorthand-boolean";
3236
3323
  var RULE_FEATURES49 = [
3324
+ "CHK",
3237
3325
  "FIX"
3238
3326
  ];
3239
3327
  var prefer_shorthand_boolean_default = createRule({
@@ -3275,6 +3363,7 @@ function create48(context) {
3275
3363
  }
3276
3364
  var RULE_NAME51 = "prefer-shorthand-fragment";
3277
3365
  var RULE_FEATURES50 = [
3366
+ "CHK",
3278
3367
  "FIX"
3279
3368
  ];
3280
3369
  var prefer_shorthand_fragment_default = createRule({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.36.2-beta.1",
3
+ "version": "1.36.2-next.0",
4
4
  "description": "A set of composable linting rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,12 +49,12 @@
49
49
  "compare-versions": "^6.1.1",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.6.2",
52
- "@eslint-react/ast": "1.36.2-beta.1",
53
- "@eslint-react/core": "1.36.2-beta.1",
54
- "@eslint-react/eff": "1.36.2-beta.1",
55
- "@eslint-react/jsx": "1.36.2-beta.1",
56
- "@eslint-react/shared": "1.36.2-beta.1",
57
- "@eslint-react/var": "1.36.2-beta.1"
52
+ "@eslint-react/ast": "1.36.2-next.0",
53
+ "@eslint-react/core": "1.36.2-next.0",
54
+ "@eslint-react/jsx": "1.36.2-next.0",
55
+ "@eslint-react/shared": "1.36.2-next.0",
56
+ "@eslint-react/eff": "1.36.2-next.0",
57
+ "@eslint-react/var": "1.36.2-next.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.0.11",