@eslint-react/var 2.3.13-beta.4 → 2.3.13-beta.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.
- package/dist/index.js +2 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -176,6 +176,8 @@ const thisBlockTypes = [
|
|
|
176
176
|
* @returns `true` if node value equal
|
|
177
177
|
*/
|
|
178
178
|
function isNodeValueEqual(a, b, initialScopes) {
|
|
179
|
+
a = AST.isTypeExpression(a) ? AST.getUnderlyingExpression(a) : a;
|
|
180
|
+
b = AST.isTypeExpression(b) ? AST.getUnderlyingExpression(b) : b;
|
|
179
181
|
const [aScope, bScope] = initialScopes;
|
|
180
182
|
switch (true) {
|
|
181
183
|
case a === b: return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/var",
|
|
3
|
-
"version": "2.3.13-beta.
|
|
3
|
+
"version": "2.3.13-beta.6",
|
|
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": {
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"@typescript-eslint/types": "^8.48.1",
|
|
35
35
|
"@typescript-eslint/utils": "^8.48.1",
|
|
36
36
|
"ts-pattern": "^5.9.0",
|
|
37
|
-
"@eslint-react/ast": "2.3.13-beta.
|
|
38
|
-
"@eslint-react/eff": "2.3.13-beta.
|
|
37
|
+
"@eslint-react/ast": "2.3.13-beta.6",
|
|
38
|
+
"@eslint-react/eff": "2.3.13-beta.6"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"eslint": "^8.57.0 || ^9.0.0",
|
|
42
42
|
"typescript": ">=4.8.4 <6.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"tsdown": "^0.17.
|
|
45
|
+
"tsdown": "^0.17.1",
|
|
46
46
|
"@local/configs": "0.0.0"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|