eslint-plugin-react-x 1.37.1-next.0 → 1.37.1-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.
package/dist/index.js CHANGED
@@ -136,7 +136,7 @@ var settings3 = {
136
136
 
137
137
  // package.json
138
138
  var name4 = "eslint-plugin-react-x";
139
- var version = "1.37.1-next.0";
139
+ var version = "1.37.1-next.1";
140
140
  var createRule = shared.createRuleForPlugin("x");
141
141
 
142
142
  // src/rules/avoid-shorthand-boolean.ts
@@ -1576,7 +1576,7 @@ function create24(context) {
1576
1576
  };
1577
1577
  }
1578
1578
  const leftType = typeUtils.getConstrainedTypeAtLocation(services, left);
1579
- const leftTypeVariants = inspectVariantTypes(tsApiUtils.unionTypeParts(leftType));
1579
+ const leftTypeVariants = inspectVariantTypes(tsApiUtils.unionConstituents(leftType));
1580
1580
  const isLeftValid = Array.from(leftTypeVariants.values()).every((type) => allowedVariants.some((allowed) => allowed === type));
1581
1581
  if (isLeftValid) {
1582
1582
  return getReportDescriptor(right);
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import { compare } from 'compare-versions';
9
9
  import * as VAR from '@eslint-react/var';
10
10
  import { getConstrainedTypeAtLocation, isTypeReadonly } from '@typescript-eslint/type-utils';
11
11
  import { ESLintUtils } from '@typescript-eslint/utils';
12
- import { unionTypeParts, isTypeFlagSet, isTrueLiteralType, isFalseLiteralType } from 'ts-api-utils';
12
+ import { unionConstituents, isTypeFlagSet, isTrueLiteralType, isFalseLiteralType } from 'ts-api-utils';
13
13
  import ts from 'typescript';
14
14
 
15
15
  var __defProp = Object.defineProperty;
@@ -109,7 +109,7 @@ var settings3 = {
109
109
 
110
110
  // package.json
111
111
  var name4 = "eslint-plugin-react-x";
112
- var version = "1.37.1-next.0";
112
+ var version = "1.37.1-next.1";
113
113
  var createRule = createRuleForPlugin("x");
114
114
 
115
115
  // src/rules/avoid-shorthand-boolean.ts
@@ -1549,7 +1549,7 @@ function create24(context) {
1549
1549
  };
1550
1550
  }
1551
1551
  const leftType = getConstrainedTypeAtLocation(services, left);
1552
- const leftTypeVariants = inspectVariantTypes(unionTypeParts(leftType));
1552
+ const leftTypeVariants = inspectVariantTypes(unionConstituents(leftType));
1553
1553
  const isLeftValid = Array.from(leftTypeVariants.values()).every((type) => allowedVariants.some((allowed) => allowed === type));
1554
1554
  if (isLeftValid) {
1555
1555
  return getReportDescriptor(right);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.37.1-next.0",
3
+ "version": "1.37.1-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,17 +49,17 @@
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.37.1-next.0",
53
- "@eslint-react/core": "1.37.1-next.0",
54
- "@eslint-react/eff": "1.37.1-next.0",
55
- "@eslint-react/jsx": "1.37.1-next.0",
56
- "@eslint-react/shared": "1.37.1-next.0",
57
- "@eslint-react/var": "1.37.1-next.0"
52
+ "@eslint-react/ast": "1.37.1-next.1",
53
+ "@eslint-react/core": "1.37.1-next.1",
54
+ "@eslint-react/eff": "1.37.1-next.1",
55
+ "@eslint-react/jsx": "1.37.1-next.1",
56
+ "@eslint-react/var": "1.37.1-next.1",
57
+ "@eslint-react/shared": "1.37.1-next.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.0.12",
61
61
  "@types/react-dom": "^19.0.4",
62
- "ts-api-utils": "^2.0.1",
62
+ "ts-api-utils": "^2.1.0",
63
63
  "tsup": "^8.4.0",
64
64
  "@local/configs": "0.0.0"
65
65
  },