eslint-plugin-react-x 1.36.2-next.0 → 1.36.2-next.1

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