eslint-plugin-react-x 1.40.4-next.1 → 1.40.4-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
@@ -141,7 +141,7 @@ var settings3 = {
141
141
 
142
142
  // package.json
143
143
  var name4 = "eslint-plugin-react-x";
144
- var version = "1.40.4-next.1";
144
+ var version = "1.40.4-next.2";
145
145
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("x"));
146
146
 
147
147
  // src/rules/avoid-shorthand-boolean.ts
@@ -2522,7 +2522,7 @@ function create43(context) {
2522
2522
  if (value?.type !== types.AST_NODE_TYPES.JSXExpressionContainer) return;
2523
2523
  const valueExpression = value.expression;
2524
2524
  const initialScope = context.sourceCode.getScope(valueExpression);
2525
- const construction = VAR2__namespace.getValueConstruction(valueExpression, initialScope);
2525
+ const construction = VAR2__namespace.getConstructionDetectionResult(valueExpression, initialScope);
2526
2526
  if (construction == null) return;
2527
2527
  if (ER21__namespace.isReactHookCall(construction.node)) {
2528
2528
  return;
@@ -2596,10 +2596,10 @@ function create44(context) {
2596
2596
  const { value } = prop;
2597
2597
  const { right } = value;
2598
2598
  const initialScope = context.sourceCode.getScope(value);
2599
- const construction = VAR2__namespace.getValueConstruction(
2599
+ const construction = VAR2__namespace.getConstructionDetectionResult(
2600
2600
  value,
2601
2601
  initialScope,
2602
- VAR2__namespace.ValueConstructionHint.StrictCallExpression
2602
+ VAR2__namespace.ConstructionDetectionHint.StrictCallExpression
2603
2603
  );
2604
2604
  if (construction == null) {
2605
2605
  continue;
package/dist/index.mjs CHANGED
@@ -113,7 +113,7 @@ var settings3 = {
113
113
 
114
114
  // package.json
115
115
  var name4 = "eslint-plugin-react-x";
116
- var version = "1.40.4-next.1";
116
+ var version = "1.40.4-next.2";
117
117
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
118
118
 
119
119
  // src/rules/avoid-shorthand-boolean.ts
@@ -2494,7 +2494,7 @@ function create43(context) {
2494
2494
  if (value?.type !== AST_NODE_TYPES.JSXExpressionContainer) return;
2495
2495
  const valueExpression = value.expression;
2496
2496
  const initialScope = context.sourceCode.getScope(valueExpression);
2497
- const construction = VAR2.getValueConstruction(valueExpression, initialScope);
2497
+ const construction = VAR2.getConstructionDetectionResult(valueExpression, initialScope);
2498
2498
  if (construction == null) return;
2499
2499
  if (ER21.isReactHookCall(construction.node)) {
2500
2500
  return;
@@ -2568,10 +2568,10 @@ function create44(context) {
2568
2568
  const { value } = prop;
2569
2569
  const { right } = value;
2570
2570
  const initialScope = context.sourceCode.getScope(value);
2571
- const construction = VAR2.getValueConstruction(
2571
+ const construction = VAR2.getConstructionDetectionResult(
2572
2572
  value,
2573
2573
  initialScope,
2574
- VAR2.ValueConstructionHint.StrictCallExpression
2574
+ VAR2.ConstructionDetectionHint.StrictCallExpression
2575
2575
  );
2576
2576
  if (construction == null) {
2577
2577
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.40.4-next.1",
3
+ "version": "1.40.4-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,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/ast": "1.40.4-next.1",
54
- "@eslint-react/eff": "1.40.4-next.1",
55
- "@eslint-react/core": "1.40.4-next.1",
56
- "@eslint-react/jsx": "1.40.4-next.1",
57
- "@eslint-react/kit": "1.40.4-next.1",
58
- "@eslint-react/var": "1.40.4-next.1",
59
- "@eslint-react/shared": "1.40.4-next.1"
53
+ "@eslint-react/ast": "1.40.4-next.2",
54
+ "@eslint-react/eff": "1.40.4-next.2",
55
+ "@eslint-react/kit": "1.40.4-next.2",
56
+ "@eslint-react/core": "1.40.4-next.2",
57
+ "@eslint-react/jsx": "1.40.4-next.2",
58
+ "@eslint-react/shared": "1.40.4-next.2",
59
+ "@eslint-react/var": "1.40.4-next.2"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.1.0",