@eslint-react/var 5.21.0 → 5.21.1
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 +4 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -732,7 +732,10 @@ function isValueEqual(context, a, b) {
|
|
|
732
732
|
* @internal
|
|
733
733
|
*/
|
|
734
734
|
function isAssignmentTargetEqual(context, a, b) {
|
|
735
|
-
|
|
735
|
+
const unwrappedA = Check.isTypeExpression(a) ? Extract.unwrap(a) : a;
|
|
736
|
+
const unwrappedB = Check.isTypeExpression(b) ? Extract.unwrap(b) : b;
|
|
737
|
+
if (Check.isIdentifier(unwrappedA) && Check.isIdentifier(unwrappedB)) return isValueEqual(context, unwrappedA, unwrappedB);
|
|
738
|
+
return Compare.isEqual(unwrappedA, unwrappedB) || isValueEqual(context, unwrappedA, unwrappedB);
|
|
736
739
|
}
|
|
737
740
|
|
|
738
741
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/var",
|
|
3
|
-
"version": "5.21.
|
|
3
|
+
"version": "5.21.1",
|
|
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": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint-react/ast": "5.21.
|
|
33
|
-
"@eslint-react/eslint": "5.21.
|
|
32
|
+
"@eslint-react/ast": "5.21.1",
|
|
33
|
+
"@eslint-react/eslint": "5.21.1",
|
|
34
34
|
"@typescript-eslint/scope-manager": "^8.70.1",
|
|
35
35
|
"@typescript-eslint/types": "^8.70.1",
|
|
36
36
|
"@typescript-eslint/utils": "^8.70.1",
|