eslint-plugin-react-x 5.8.5-next.2 → 5.8.6

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -143,7 +143,7 @@ const rules$6 = {
143
143
  //#endregion
144
144
  //#region package.json
145
145
  var name$6 = "eslint-plugin-react-x";
146
- var version = "5.8.5-next.2";
146
+ var version = "5.8.6";
147
147
 
148
148
  //#endregion
149
149
  //#region src/utils/create-rule.ts
@@ -1297,7 +1297,7 @@ const MUTATING_ARRAY_METHODS = new Set([
1297
1297
  /**
1298
1298
  * Check if a name is ref-like ("ref" or ends with "Ref").
1299
1299
  * Refs are mutable by design and exempted from immutability checks.
1300
- * @param name
1300
+ * @param name The identifier name to check.
1301
1301
  */
1302
1302
  function isRefLikeName(name) {
1303
1303
  return name === "ref" || name.endsWith("Ref");
@@ -1305,7 +1305,7 @@ function isRefLikeName(name) {
1305
1305
  /**
1306
1306
  * Check if any identifier or property name in a member-expression chain
1307
1307
  * is ref-like.
1308
- * @param node
1308
+ * @param node The AST node to inspect.
1309
1309
  */
1310
1310
  function hasRefLikeNameInChain(node) {
1311
1311
  if (node.type === AST_NODE_TYPES.Identifier) return isRefLikeName(node.name);
@@ -2633,6 +2633,7 @@ function create$27(context) {
2633
2633
  /**
2634
2634
  * Recursively inspects a node to find potential leaked conditional rendering
2635
2635
  * @param node The AST node to inspect
2636
+ * @param visited A set of visited identifier names to prevent infinite recursion.
2636
2637
  * @returns A report descriptor if a problem is found, otherwise `null`
2637
2638
  */
2638
2639
  function getReportDescriptor(node, visited = /* @__PURE__ */ new Set()) {
@@ -2907,8 +2908,8 @@ function isProcessEnvNodeEnvCompare(node, operator, value) {
2907
2908
  if (node == null) return false;
2908
2909
  if (node.type !== AST_NODE_TYPES.BinaryExpression) return false;
2909
2910
  if (node.operator !== operator) return false;
2910
- if (isProcessEnvNodeEnv(node.left) && Check.isLiteral("string")(node.right)) return node.right.value === value;
2911
- if (Check.isLiteral("string")(node.left) && isProcessEnvNodeEnv(node.right)) return node.left.value === value;
2911
+ if (isProcessEnvNodeEnv(node.left) && Check.isStringLiteral(node.right)) return node.right.value === value;
2912
+ if (Check.isStringLiteral(node.left) && isProcessEnvNodeEnv(node.right)) return node.left.value === value;
2912
2913
  return false;
2913
2914
  }
2914
2915
  function isDevelopmentOnlyCheck(node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "5.8.5-next.2",
3
+ "version": "5.8.6",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -36,21 +36,21 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@typescript-eslint/scope-manager": "^8.59.4",
40
- "@typescript-eslint/type-utils": "^8.59.4",
41
- "@typescript-eslint/types": "^8.59.4",
42
- "@typescript-eslint/typescript-estree": "^8.59.4",
43
- "@typescript-eslint/utils": "^8.59.4",
39
+ "@typescript-eslint/scope-manager": "^8.60.0",
40
+ "@typescript-eslint/type-utils": "^8.60.0",
41
+ "@typescript-eslint/types": "^8.60.0",
42
+ "@typescript-eslint/typescript-estree": "^8.60.0",
43
+ "@typescript-eslint/utils": "^8.60.0",
44
44
  "compare-versions": "^6.1.1",
45
45
  "string-ts": "^2.3.1",
46
46
  "ts-api-utils": "^2.5.0",
47
47
  "ts-pattern": "^5.9.0",
48
- "@eslint-react/ast": "5.8.5-next.2",
49
- "@eslint-react/core": "5.8.5-next.2",
50
- "@eslint-react/jsx": "5.8.5-next.2",
51
- "@eslint-react/shared": "5.8.5-next.2",
52
- "@eslint-react/eslint": "5.8.5-next.2",
53
- "@eslint-react/var": "5.8.5-next.2"
48
+ "@eslint-react/ast": "5.8.6",
49
+ "@eslint-react/core": "5.8.6",
50
+ "@eslint-react/eslint": "5.8.6",
51
+ "@eslint-react/jsx": "5.8.6",
52
+ "@eslint-react/shared": "5.8.6",
53
+ "@eslint-react/var": "5.8.6"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.2.15",
@@ -62,7 +62,7 @@
62
62
  "tsdown": "^0.22.0",
63
63
  "tsl": "^1.0.30",
64
64
  "tsl-dx": "^0.12.1",
65
- "typescript": "^6.0.3",
65
+ "typescript": "5.9.3",
66
66
  "@local/configs": "0.0.0",
67
67
  "@local/eff": "3.0.0-beta.72"
68
68
  },