@eslint-react/var 2.7.5-next.6 → 2.7.5-next.8
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.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ type ObjectType = {
|
|
|
60
60
|
reason: "call-expression" | "unsupported-node";
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Detect the ObjectType of a given node
|
|
64
64
|
* @param node The node to check
|
|
65
65
|
* @param initialScope The initial scope to check for variable declarations
|
|
66
66
|
* @returns The ObjectType of the node, or undefined if not detected
|
|
@@ -89,7 +89,7 @@ declare function isAssignmentTargetEqual(context: RuleContext, a: TSESTree.Node,
|
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/is-node-value-equal.d.ts
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Determine whether node value equals to another node value
|
|
93
93
|
* @param a node to compare
|
|
94
94
|
* @param b node to compare
|
|
95
95
|
* @param initialScopes initial scopes of the two nodes
|
package/dist/index.js
CHANGED
|
@@ -143,7 +143,7 @@ function getChildScopes(scope) {
|
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/get-object-type.ts
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Detect the ObjectType of a given node
|
|
147
147
|
* @param node The node to check
|
|
148
148
|
* @param initialScope The initial scope to check for variable declarations
|
|
149
149
|
* @returns The ObjectType of the node, or undefined if not detected
|
|
@@ -220,7 +220,7 @@ const thisBlockTypes = [
|
|
|
220
220
|
AST_NODE_TYPES.Program
|
|
221
221
|
];
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
223
|
+
* Determine whether node value equals to another node value
|
|
224
224
|
* @param a node to compare
|
|
225
225
|
* @param b node to compare
|
|
226
226
|
* @param initialScopes initial scopes of the two nodes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/var",
|
|
3
|
-
"version": "2.7.5-next.
|
|
3
|
+
"version": "2.7.5-next.8",
|
|
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,9 +34,9 @@
|
|
|
34
34
|
"@typescript-eslint/types": "^8.54.0",
|
|
35
35
|
"@typescript-eslint/utils": "^8.54.0",
|
|
36
36
|
"ts-pattern": "^5.9.0",
|
|
37
|
-
"@eslint-react/ast": "2.7.5-next.
|
|
38
|
-
"@eslint-react/eff": "2.7.5-next.
|
|
39
|
-
"@eslint-react/shared": "2.7.5-next.
|
|
37
|
+
"@eslint-react/ast": "2.7.5-next.8",
|
|
38
|
+
"@eslint-react/eff": "2.7.5-next.8",
|
|
39
|
+
"@eslint-react/shared": "2.7.5-next.8"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"tsdown": "^0.20.1",
|