eslint-plugin-react-x 1.43.0-next.0 → 1.43.1-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.
package/dist/index.js CHANGED
@@ -141,7 +141,7 @@ var settings3 = {
141
141
 
142
142
  // package.json
143
143
  var name4 = "eslint-plugin-react-x";
144
- var version = "1.43.0-next.0";
144
+ var version = "1.43.1-next.0";
145
145
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("x"));
146
146
 
147
147
  // src/rules/avoid-shorthand-boolean.ts
@@ -1790,9 +1790,6 @@ function create31(context) {
1790
1790
  if (!ER21__namespace.isCreateContextCall(context, node)) return;
1791
1791
  createCalls.push(node);
1792
1792
  },
1793
- [ER21__namespace.DISPLAY_NAME_ASSIGNMENT_SELECTOR](node) {
1794
- displayNameAssignments.push(node);
1795
- },
1796
1793
  "Program:exit"() {
1797
1794
  for (const call of createCalls) {
1798
1795
  const id = ER21__namespace.getInstanceId(call);
@@ -1816,6 +1813,9 @@ function create31(context) {
1816
1813
  });
1817
1814
  }
1818
1815
  }
1816
+ },
1817
+ [kit.SEL.DISPLAY_NAME_ASSIGNMENT_EXPRESSION](node) {
1818
+ displayNameAssignments.push(node);
1819
1819
  }
1820
1820
  };
1821
1821
  }
@@ -2603,7 +2603,7 @@ function create44(context) {
2603
2603
  }
2604
2604
  }
2605
2605
  },
2606
- "VariableDeclarator[id.type='ObjectPattern'][init.type='Identifier']"(node) {
2606
+ [kit.SEL.OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR](node) {
2607
2607
  const functionEntry = ctx.getCurrentEntry();
2608
2608
  if (functionEntry == null) return;
2609
2609
  eff.getOrUpdate(
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import { ESLintUtils } from '@typescript-eslint/utils';
4
4
  import { AST_NODE_TYPES } from '@typescript-eslint/types';
5
5
  import * as VAR2 from '@eslint-react/var';
6
6
  import { match, isMatching, P } from 'ts-pattern';
7
- import { JsxConfig, createReport } from '@eslint-react/kit';
7
+ import { JsxConfig, createReport, SEL } from '@eslint-react/kit';
8
8
  import ts, { JsxEmit } from 'typescript';
9
9
  import * as AST8 from '@eslint-react/ast';
10
10
  import * as ER21 from '@eslint-react/core';
@@ -113,7 +113,7 @@ var settings3 = {
113
113
 
114
114
  // package.json
115
115
  var name4 = "eslint-plugin-react-x";
116
- var version = "1.43.0-next.0";
116
+ var version = "1.43.1-next.0";
117
117
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
118
118
 
119
119
  // src/rules/avoid-shorthand-boolean.ts
@@ -1762,9 +1762,6 @@ function create31(context) {
1762
1762
  if (!ER21.isCreateContextCall(context, node)) return;
1763
1763
  createCalls.push(node);
1764
1764
  },
1765
- [ER21.DISPLAY_NAME_ASSIGNMENT_SELECTOR](node) {
1766
- displayNameAssignments.push(node);
1767
- },
1768
1765
  "Program:exit"() {
1769
1766
  for (const call of createCalls) {
1770
1767
  const id = ER21.getInstanceId(call);
@@ -1788,6 +1785,9 @@ function create31(context) {
1788
1785
  });
1789
1786
  }
1790
1787
  }
1788
+ },
1789
+ [SEL.DISPLAY_NAME_ASSIGNMENT_EXPRESSION](node) {
1790
+ displayNameAssignments.push(node);
1791
1791
  }
1792
1792
  };
1793
1793
  }
@@ -2575,7 +2575,7 @@ function create44(context) {
2575
2575
  }
2576
2576
  }
2577
2577
  },
2578
- "VariableDeclarator[id.type='ObjectPattern'][init.type='Identifier']"(node) {
2578
+ [SEL.OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR](node) {
2579
2579
  const functionEntry = ctx.getCurrentEntry();
2580
2580
  if (functionEntry == null) return;
2581
2581
  getOrUpdate(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.43.0-next.0",
3
+ "version": "1.43.1-next.0",
4
4
  "description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -50,13 +50,13 @@
50
50
  "is-immutable-type": "^5.0.1",
51
51
  "string-ts": "^2.2.1",
52
52
  "ts-pattern": "^5.7.0",
53
- "@eslint-react/core": "1.43.0-next.0",
54
- "@eslint-react/ast": "1.43.0-next.0",
55
- "@eslint-react/kit": "1.43.0-next.0",
56
- "@eslint-react/jsx": "1.43.0-next.0",
57
- "@eslint-react/eff": "1.43.0-next.0",
58
- "@eslint-react/shared": "1.43.0-next.0",
59
- "@eslint-react/var": "1.43.0-next.0"
53
+ "@eslint-react/ast": "1.43.1-next.0",
54
+ "@eslint-react/core": "1.43.1-next.0",
55
+ "@eslint-react/eff": "1.43.1-next.0",
56
+ "@eslint-react/kit": "1.43.1-next.0",
57
+ "@eslint-react/shared": "1.43.1-next.0",
58
+ "@eslint-react/var": "1.43.1-next.0",
59
+ "@eslint-react/jsx": "1.43.1-next.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.1.0",