@eslint-react/var 3.0.0 → 4.0.0-beta.0
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 +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -234,7 +234,7 @@ function isValueEqual(context, a, b) {
|
|
|
234
234
|
case a.type === AST_NODE_TYPES.MemberExpression && b.type === AST_NODE_TYPES.MemberExpression: return ast.isNodeEqual(a.property, b.property) && isValueEqual(context, a.object, b.object);
|
|
235
235
|
case a.type === AST_NODE_TYPES.ThisExpression && b.type === AST_NODE_TYPES.ThisExpression:
|
|
236
236
|
if (aScope.block === bScope.block) return true;
|
|
237
|
-
return ast.
|
|
237
|
+
return ast.findParent(a, ast.isOneOf(thisBlockTypes)) === ast.findParent(b, ast.isOneOf(thisBlockTypes));
|
|
238
238
|
default: {
|
|
239
239
|
const aStatic = getStaticValue(a, aScope);
|
|
240
240
|
const bStatic = getStaticValue(b, bScope);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/var",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.0",
|
|
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": {
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"./package.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@typescript-eslint/scope-manager": "^8.57.
|
|
34
|
-
"@typescript-eslint/types": "^8.57.
|
|
35
|
-
"@typescript-eslint/utils": "^8.57.
|
|
33
|
+
"@typescript-eslint/scope-manager": "^8.57.2",
|
|
34
|
+
"@typescript-eslint/types": "^8.57.2",
|
|
35
|
+
"@typescript-eslint/utils": "^8.57.2",
|
|
36
36
|
"ts-pattern": "^5.9.0",
|
|
37
|
-
"@eslint-react/ast": "
|
|
38
|
-
"@eslint-react/shared": "
|
|
37
|
+
"@eslint-react/ast": "4.0.0-beta.0",
|
|
38
|
+
"@eslint-react/shared": "4.0.0-beta.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@typescript-eslint/typescript-estree": "^8.57.
|
|
42
|
-
"tsdown": "^0.21.
|
|
43
|
-
"@local/
|
|
44
|
-
"@local/
|
|
41
|
+
"@typescript-eslint/typescript-estree": "^8.57.2",
|
|
42
|
+
"tsdown": "^0.21.4",
|
|
43
|
+
"@local/configs": "0.0.0",
|
|
44
|
+
"@local/eff": "3.0.0-beta.72"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"eslint": "^10.0.0",
|