@eslint-react/var 5.11.0 → 5.11.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Check, Compare, Extract, Traverse, isOneOf } from "@eslint-react/ast";
1
+ import { Check, Compare, Extract, Traverse } from "@eslint-react/ast";
2
2
  import { DefinitionType } from "@typescript-eslint/scope-manager";
3
3
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
4
4
  import { findVariable, getStaticValue } from "@typescript-eslint/utils/ast-utils";
@@ -251,7 +251,7 @@ function isValueEqual(context, a, b) {
251
251
  case a.type === AST_NODE_TYPES.MemberExpression && b.type === AST_NODE_TYPES.MemberExpression: return (a.computed && b.computed ? isValueEqual(context, a.property, b.property) : Compare.isEqual(a.property, b.property)) && isValueEqual(context, a.object, b.object);
252
252
  case a.type === AST_NODE_TYPES.ThisExpression && b.type === AST_NODE_TYPES.ThisExpression:
253
253
  if (aScope.block === bScope.block) return true;
254
- return Traverse.findParent(a, isOneOf(thisBlockTypes)) === Traverse.findParent(b, isOneOf(thisBlockTypes));
254
+ return Traverse.findParent(a, Check.isOneOf(thisBlockTypes)) === Traverse.findParent(b, Check.isOneOf(thisBlockTypes));
255
255
  default: {
256
256
  const aStatic = getStaticValue(a, aScope);
257
257
  const bStatic = getStaticValue(b, bScope);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/var",
3
- "version": "5.11.0",
3
+ "version": "5.11.3",
4
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": {
@@ -33,8 +33,8 @@
33
33
  "@typescript-eslint/types": "^8.62.1",
34
34
  "@typescript-eslint/utils": "^8.62.1",
35
35
  "ts-pattern": "^5.9.0",
36
- "@eslint-react/ast": "5.11.0",
37
- "@eslint-react/eslint": "5.11.0"
36
+ "@eslint-react/ast": "5.11.3",
37
+ "@eslint-react/eslint": "5.11.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@typescript-eslint/parser": "^8.62.1",
@@ -43,8 +43,8 @@
43
43
  "tsdown": "^0.22.3",
44
44
  "typescript": "6.0.3",
45
45
  "vitest": "^4.1.9",
46
- "@local/configs": "0.0.0",
47
- "@local/eff": "0.0.0"
46
+ "@local/eff": "0.0.0",
47
+ "@local/configs": "0.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "eslint": "*",