eslint-plugin-react-x 1.37.2 → 1.37.3

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.2";
139
+ var version = "1.37.3";
140
140
  var createRule = shared.createRuleForPlugin("x");
141
141
 
142
142
  // src/rules/avoid-shorthand-boolean.ts
@@ -1579,7 +1579,7 @@ function create26(context) {
1579
1579
  };
1580
1580
  }
1581
1581
  const leftType = typeUtils.getConstrainedTypeAtLocation(services, left);
1582
- const leftTypeVariants = inspectVariantTypes(tsApiUtils.unionConstituents(leftType));
1582
+ const leftTypeVariants = inspectVariantTypes(tsApiUtils.unionTypeParts(leftType));
1583
1583
  const isLeftValid = Array.from(leftTypeVariants.values()).every((type) => allowedVariants.some((allowed) => allowed === type));
1584
1584
  if (isLeftValid) {
1585
1585
  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 { unionConstituents, isTypeFlagSet, isTrueLiteralType, isFalseLiteralType } from 'ts-api-utils';
12
+ import { unionTypeParts, isTypeFlagSet, isTrueLiteralType, isFalseLiteralType } from 'ts-api-utils';
13
13
  import ts from 'typescript';
14
14
  import { getTypeImmutability, isUnknown, isImmutable, isReadonlyShallow, isReadonlyDeep } from 'is-immutable-type';
15
15
 
@@ -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.2";
112
+ var version = "1.37.3";
113
113
  var createRule = createRuleForPlugin("x");
114
114
 
115
115
  // src/rules/avoid-shorthand-boolean.ts
@@ -1552,7 +1552,7 @@ function create26(context) {
1552
1552
  };
1553
1553
  }
1554
1554
  const leftType = getConstrainedTypeAtLocation(services, left);
1555
- const leftTypeVariants = inspectVariantTypes(unionConstituents(leftType));
1555
+ const leftTypeVariants = inspectVariantTypes(unionTypeParts(leftType));
1556
1556
  const isLeftValid = Array.from(leftTypeVariants.values()).every((type) => allowedVariants.some((allowed) => allowed === type));
1557
1557
  if (isLeftValid) {
1558
1558
  return getReportDescriptor(right);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.37.2",
3
+ "version": "1.37.3",
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.37.2",
54
- "@eslint-react/eff": "1.37.2",
55
- "@eslint-react/shared": "1.37.2",
56
- "@eslint-react/var": "1.37.2",
57
- "@eslint-react/core": "1.37.2",
58
- "@eslint-react/jsx": "1.37.2"
53
+ "@eslint-react/ast": "1.37.3",
54
+ "@eslint-react/jsx": "1.37.3",
55
+ "@eslint-react/shared": "1.37.3",
56
+ "@eslint-react/core": "1.37.3",
57
+ "@eslint-react/eff": "1.37.3",
58
+ "@eslint-react/var": "1.37.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.0.12",