@eslint-react/ast 2.0.0-next.175 → 2.0.0-next.176
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 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -313,8 +313,7 @@ function getNestedReturnStatements(node) {
|
|
|
313
313
|
const boundaryNode = isFunction(node) ? node : findParentNode(node, isFunction);
|
|
314
314
|
simpleTraverse(node, { enter(node$1) {
|
|
315
315
|
if (node$1.type !== AST_NODE_TYPES.ReturnStatement) return;
|
|
316
|
-
|
|
317
|
-
if (parentFunction !== boundaryNode) return;
|
|
316
|
+
if (findParentNode(node$1, isFunction) !== boundaryNode) return;
|
|
318
317
|
statements.push(node$1);
|
|
319
318
|
} });
|
|
320
319
|
return statements;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/ast",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.176",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"./package.json"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@typescript-eslint/types": "^8.
|
|
31
|
-
"@typescript-eslint/typescript-estree": "^8.
|
|
32
|
-
"@typescript-eslint/utils": "^8.
|
|
30
|
+
"@typescript-eslint/types": "^8.43.0",
|
|
31
|
+
"@typescript-eslint/typescript-estree": "^8.43.0",
|
|
32
|
+
"@typescript-eslint/utils": "^8.43.0",
|
|
33
33
|
"string-ts": "^2.2.1",
|
|
34
34
|
"ts-pattern": "^5.8.0",
|
|
35
|
-
"@eslint-react/eff": "2.0.0-next.
|
|
35
|
+
"@eslint-react/eff": "2.0.0-next.176"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"tsdown": "^0.14.2",
|