eslint-plugin-react-x 1.28.0-next.1 → 1.28.0-next.2

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.0-next.1";
140
+ var version = "1.28.0-next.2";
141
141
  var createRule = shared.createRuleForPlugin("x");
142
142
 
143
143
  // src/utils/get-associated-tokens.ts
@@ -496,7 +496,7 @@ var no_array_index_key_default = createRule({
496
496
  case types.AST_NODE_TYPES.TemplateLiteral:
497
497
  case types.AST_NODE_TYPES.BinaryExpression: {
498
498
  const descriptors = [];
499
- const expressions = node.type === types.AST_NODE_TYPES.TemplateLiteral ? node.expressions : AST11__namespace.getIdentifiersFromBinaryExpression(node);
499
+ const expressions = node.type === types.AST_NODE_TYPES.TemplateLiteral ? node.expressions : getIdentifiersFromBinaryExpression(node);
500
500
  for (const expression of expressions) {
501
501
  if (isArrayIndex(expression)) {
502
502
  descriptors.push({
@@ -577,6 +577,18 @@ var no_array_index_key_default = createRule({
577
577
  },
578
578
  defaultOptions: []
579
579
  });
580
+ function getIdentifiersFromBinaryExpression(side) {
581
+ if (side.type === types.AST_NODE_TYPES.Identifier) {
582
+ return [side];
583
+ }
584
+ if (side.type === types.AST_NODE_TYPES.BinaryExpression) {
585
+ return [
586
+ ...getIdentifiersFromBinaryExpression(side.left),
587
+ ...getIdentifiersFromBinaryExpression(side.right)
588
+ ];
589
+ }
590
+ return [];
591
+ }
580
592
  var RULE_NAME6 = "no-children-count";
581
593
  var RULE_FEATURES6 = [
582
594
  "CHK"
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.0-next.1";
113
+ var version = "1.28.0-next.2";
114
114
  var createRule = createRuleForPlugin("x");
115
115
 
116
116
  // src/utils/get-associated-tokens.ts
@@ -469,7 +469,7 @@ var no_array_index_key_default = createRule({
469
469
  case AST_NODE_TYPES.TemplateLiteral:
470
470
  case AST_NODE_TYPES.BinaryExpression: {
471
471
  const descriptors = [];
472
- const expressions = node.type === AST_NODE_TYPES.TemplateLiteral ? node.expressions : AST11.getIdentifiersFromBinaryExpression(node);
472
+ const expressions = node.type === AST_NODE_TYPES.TemplateLiteral ? node.expressions : getIdentifiersFromBinaryExpression(node);
473
473
  for (const expression of expressions) {
474
474
  if (isArrayIndex(expression)) {
475
475
  descriptors.push({
@@ -550,6 +550,18 @@ var no_array_index_key_default = createRule({
550
550
  },
551
551
  defaultOptions: []
552
552
  });
553
+ function getIdentifiersFromBinaryExpression(side) {
554
+ if (side.type === AST_NODE_TYPES.Identifier) {
555
+ return [side];
556
+ }
557
+ if (side.type === AST_NODE_TYPES.BinaryExpression) {
558
+ return [
559
+ ...getIdentifiersFromBinaryExpression(side.left),
560
+ ...getIdentifiersFromBinaryExpression(side.right)
561
+ ];
562
+ }
563
+ return [];
564
+ }
553
565
  var RULE_NAME6 = "no-children-count";
554
566
  var RULE_FEATURES6 = [
555
567
  "CHK"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.28.0-next.1",
3
+ "version": "1.28.0-next.2",
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.0-next.1",
54
- "@eslint-react/core": "1.28.0-next.1",
55
- "@eslint-react/eff": "1.28.0-next.1",
56
- "@eslint-react/shared": "1.28.0-next.1",
57
- "@eslint-react/var": "1.28.0-next.1",
58
- "@eslint-react/jsx": "1.28.0-next.1"
53
+ "@eslint-react/ast": "1.28.0-next.2",
54
+ "@eslint-react/core": "1.28.0-next.2",
55
+ "@eslint-react/eff": "1.28.0-next.2",
56
+ "@eslint-react/jsx": "1.28.0-next.2",
57
+ "@eslint-react/shared": "1.28.0-next.2",
58
+ "@eslint-react/var": "1.28.0-next.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.0.10",