eslint-plugin-react-x 1.28.1-next.2 → 1.28.1-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -137,7 +137,7 @@ var settings3 = {
137
137
 
138
138
  // package.json
139
139
  var name4 = "eslint-plugin-react-x";
140
- var version = "1.28.1-next.2";
140
+ var version = "1.28.1-next.4";
141
141
  var createRule = shared.createRuleForPlugin("x");
142
142
 
143
143
  // src/utils/get-associated-tokens.ts
@@ -269,7 +269,7 @@ var RULE_FEATURES4 = [
269
269
  "CHK"
270
270
  ];
271
271
  function getName(node) {
272
- if (AST11__namespace.isTypeExpression(node)) {
272
+ if (AST11__namespace.isTsOnlyExpression(node)) {
273
273
  return getName(node.expression);
274
274
  }
275
275
  if (node.type === types.AST_NODE_TYPES.Identifier || node.type === types.AST_NODE_TYPES.PrivateIdentifier) {
@@ -1246,7 +1246,7 @@ var RULE_FEATURES22 = [
1246
1246
  "CHK"
1247
1247
  ];
1248
1248
  function getName2(node) {
1249
- if (AST11__namespace.isTypeExpression(node)) {
1249
+ if (AST11__namespace.isTsOnlyExpression(node)) {
1250
1250
  return getName2(node.expression);
1251
1251
  }
1252
1252
  if (node.type === types.AST_NODE_TYPES.Identifier || node.type === types.AST_NODE_TYPES.PrivateIdentifier) {
@@ -1400,7 +1400,7 @@ var no_duplicate_key_default = createRule({
1400
1400
  if (!AST11__namespace.isFunction(iter)) return;
1401
1401
  const arg0 = call?.arguments[0];
1402
1402
  if (call == null || arg0 == null) return;
1403
- if (AST11__namespace.unwrapTypeExpression(arg0) !== iter) {
1403
+ if (AST11__namespace.getEcmaExpression(arg0) !== iter) {
1404
1404
  return;
1405
1405
  }
1406
1406
  keyedEntries.set(call, {
@@ -1761,9 +1761,9 @@ var no_missing_component_display_name_default = createRule({
1761
1761
  } = core.useComponentCollector(
1762
1762
  context,
1763
1763
  {
1764
- hint: core.DEFAULT_COMPONENT_HINT,
1765
1764
  collectDisplayName: true,
1766
- collectHookCalls: false
1765
+ collectHookCalls: false,
1766
+ hint: core.DEFAULT_COMPONENT_HINT
1767
1767
  }
1768
1768
  );
1769
1769
  return {
@@ -2693,7 +2693,7 @@ var LIFECYCLE_METHODS = /* @__PURE__ */ new Set([
2693
2693
  "UNSAFE_componentWillUpdate"
2694
2694
  ]);
2695
2695
  function getName3(node) {
2696
- if (AST11__namespace.isTypeExpression(node)) {
2696
+ if (AST11__namespace.isTsOnlyExpression(node)) {
2697
2697
  return getName3(node.expression);
2698
2698
  }
2699
2699
  if (node.type === types.AST_NODE_TYPES.Identifier || node.type === types.AST_NODE_TYPES.PrivateIdentifier) {
@@ -2837,7 +2837,7 @@ var RULE_FEATURES44 = [
2837
2837
  "CHK"
2838
2838
  ];
2839
2839
  function getName4(node) {
2840
- if (AST11__namespace.isTypeExpression(node)) {
2840
+ if (AST11__namespace.isTsOnlyExpression(node)) {
2841
2841
  return getName4(node.expression);
2842
2842
  }
2843
2843
  if (node.type === types.AST_NODE_TYPES.Identifier || node.type === types.AST_NODE_TYPES.PrivateIdentifier) {
package/dist/index.mjs CHANGED
@@ -110,7 +110,7 @@ var settings3 = {
110
110
 
111
111
  // package.json
112
112
  var name4 = "eslint-plugin-react-x";
113
- var version = "1.28.1-next.2";
113
+ var version = "1.28.1-next.4";
114
114
  var createRule = createRuleForPlugin("x");
115
115
 
116
116
  // src/utils/get-associated-tokens.ts
@@ -242,7 +242,7 @@ var RULE_FEATURES4 = [
242
242
  "CHK"
243
243
  ];
244
244
  function getName(node) {
245
- if (AST11.isTypeExpression(node)) {
245
+ if (AST11.isTsOnlyExpression(node)) {
246
246
  return getName(node.expression);
247
247
  }
248
248
  if (node.type === AST_NODE_TYPES.Identifier || node.type === AST_NODE_TYPES.PrivateIdentifier) {
@@ -1219,7 +1219,7 @@ var RULE_FEATURES22 = [
1219
1219
  "CHK"
1220
1220
  ];
1221
1221
  function getName2(node) {
1222
- if (AST11.isTypeExpression(node)) {
1222
+ if (AST11.isTsOnlyExpression(node)) {
1223
1223
  return getName2(node.expression);
1224
1224
  }
1225
1225
  if (node.type === AST_NODE_TYPES.Identifier || node.type === AST_NODE_TYPES.PrivateIdentifier) {
@@ -1373,7 +1373,7 @@ var no_duplicate_key_default = createRule({
1373
1373
  if (!AST11.isFunction(iter)) return;
1374
1374
  const arg0 = call?.arguments[0];
1375
1375
  if (call == null || arg0 == null) return;
1376
- if (AST11.unwrapTypeExpression(arg0) !== iter) {
1376
+ if (AST11.getEcmaExpression(arg0) !== iter) {
1377
1377
  return;
1378
1378
  }
1379
1379
  keyedEntries.set(call, {
@@ -1734,9 +1734,9 @@ var no_missing_component_display_name_default = createRule({
1734
1734
  } = useComponentCollector(
1735
1735
  context,
1736
1736
  {
1737
- hint: DEFAULT_COMPONENT_HINT,
1738
1737
  collectDisplayName: true,
1739
- collectHookCalls: false
1738
+ collectHookCalls: false,
1739
+ hint: DEFAULT_COMPONENT_HINT
1740
1740
  }
1741
1741
  );
1742
1742
  return {
@@ -2666,7 +2666,7 @@ var LIFECYCLE_METHODS = /* @__PURE__ */ new Set([
2666
2666
  "UNSAFE_componentWillUpdate"
2667
2667
  ]);
2668
2668
  function getName3(node) {
2669
- if (AST11.isTypeExpression(node)) {
2669
+ if (AST11.isTsOnlyExpression(node)) {
2670
2670
  return getName3(node.expression);
2671
2671
  }
2672
2672
  if (node.type === AST_NODE_TYPES.Identifier || node.type === AST_NODE_TYPES.PrivateIdentifier) {
@@ -2810,7 +2810,7 @@ var RULE_FEATURES44 = [
2810
2810
  "CHK"
2811
2811
  ];
2812
2812
  function getName4(node) {
2813
- if (AST11.isTypeExpression(node)) {
2813
+ if (AST11.isTsOnlyExpression(node)) {
2814
2814
  return getName4(node.expression);
2815
2815
  }
2816
2816
  if (node.type === AST_NODE_TYPES.Identifier || node.type === AST_NODE_TYPES.PrivateIdentifier) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.28.1-next.2",
3
+ "version": "1.28.1-next.4",
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",
@@ -50,12 +50,12 @@
50
50
  "is-immutable-type": "^5.0.1",
51
51
  "string-ts": "^2.2.1",
52
52
  "ts-pattern": "^5.6.2",
53
- "@eslint-react/ast": "1.28.1-next.2",
54
- "@eslint-react/eff": "1.28.1-next.2",
55
- "@eslint-react/core": "1.28.1-next.2",
56
- "@eslint-react/jsx": "1.28.1-next.2",
57
- "@eslint-react/shared": "1.28.1-next.2",
58
- "@eslint-react/var": "1.28.1-next.2"
53
+ "@eslint-react/ast": "1.28.1-next.4",
54
+ "@eslint-react/eff": "1.28.1-next.4",
55
+ "@eslint-react/jsx": "1.28.1-next.4",
56
+ "@eslint-react/core": "1.28.1-next.4",
57
+ "@eslint-react/shared": "1.28.1-next.4",
58
+ "@eslint-react/var": "1.28.1-next.4"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.0.10",