@eslint-react/var 1.26.3-next.2 → 1.26.3-next.21

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
@@ -289,7 +289,7 @@ function getValueConstruction(node, initialScope, hint = ValueConstructionHint.N
289
289
  return getValueConstruction(node.alternate, initialScope, hint);
290
290
  }
291
291
  case types.AST_NODE_TYPES.Identifier: {
292
- if (!("name" in node && typeof node.name === "string")) {
292
+ if (!("name" in node) || typeof node.name !== "string") {
293
293
  return eff._;
294
294
  }
295
295
  const variable = initialScope.set.get(node.name);
@@ -303,7 +303,7 @@ function getValueConstruction(node, initialScope, hint = ValueConstructionHint.N
303
303
  return eff._;
304
304
  }
305
305
  default: {
306
- if (!("expression" in node && typeof node.expression === "object")) {
306
+ if (!("expression" in node) || typeof node.expression !== "object") {
307
307
  return eff._;
308
308
  }
309
309
  return getValueConstruction(node.expression, initialScope, hint);
package/dist/index.mjs CHANGED
@@ -267,7 +267,7 @@ function getValueConstruction(node, initialScope, hint = ValueConstructionHint.N
267
267
  return getValueConstruction(node.alternate, initialScope, hint);
268
268
  }
269
269
  case AST_NODE_TYPES.Identifier: {
270
- if (!("name" in node && typeof node.name === "string")) {
270
+ if (!("name" in node) || typeof node.name !== "string") {
271
271
  return _;
272
272
  }
273
273
  const variable = initialScope.set.get(node.name);
@@ -281,7 +281,7 @@ function getValueConstruction(node, initialScope, hint = ValueConstructionHint.N
281
281
  return _;
282
282
  }
283
283
  default: {
284
- if (!("expression" in node && typeof node.expression === "object")) {
284
+ if (!("expression" in node) || typeof node.expression !== "object") {
285
285
  return _;
286
286
  }
287
287
  return getValueConstruction(node.expression, initialScope, hint);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eslint-react/var",
3
- "version": "1.26.3-next.2",
4
- "description": "ESLint React's TSESTree AST utility module for static analysis of variables",
3
+ "version": "1.26.3-next.21",
4
+ "description": "ESLint React's TSESTree AST utility module for static analysis of variables.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
7
7
  "url": "https://github.com/Rel1cx/eslint-react/issues"
@@ -35,17 +35,17 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "^8.23.0",
39
- "@typescript-eslint/types": "^8.23.0",
40
- "@typescript-eslint/utils": "^8.23.0",
38
+ "@typescript-eslint/scope-manager": "^8.24.1",
39
+ "@typescript-eslint/types": "^8.24.1",
40
+ "@typescript-eslint/utils": "^8.24.1",
41
41
  "string-ts": "^2.2.1",
42
42
  "ts-pattern": "^5.6.2",
43
- "@eslint-react/ast": "1.26.3-next.2",
44
- "@eslint-react/eff": "1.26.3-next.2"
43
+ "@eslint-react/eff": "1.26.3-next.21",
44
+ "@eslint-react/ast": "1.26.3-next.21"
45
45
  },
46
46
  "devDependencies": {
47
47
  "tsup": "^8.3.6",
48
- "@workspace/configs": "0.0.0"
48
+ "@local/configs": "0.0.0"
49
49
  },
50
50
  "engines": {
51
51
  "bun": ">=1.0.15",
@@ -54,6 +54,6 @@
54
54
  "scripts": {
55
55
  "build": "tsup",
56
56
  "lint:publish": "publint",
57
- "lint:type": "tsc --noEmit"
57
+ "lint:ts": "tsc --noEmit"
58
58
  }
59
59
  }