@eslint-react/core 1.52.0-beta.0 → 1.52.1-next.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 +0 -6
- package/dist/index.mjs +0 -6
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -802,12 +802,6 @@ function useComponentCollector(context, options = {}) {
|
|
|
802
802
|
const entry = functionEntries.at(-1);
|
|
803
803
|
if (entry == null) return;
|
|
804
804
|
if (!entry.isComponent) return functionEntries.pop();
|
|
805
|
-
const shouldDrop = AST9__namespace.getNestedReturnStatements(entry.node.body).slice().reverse().some((r) => {
|
|
806
|
-
return context.sourceCode.getScope(r).block === entry.node && r.argument != null && !isJsxLike(context.sourceCode, r.argument, hint);
|
|
807
|
-
});
|
|
808
|
-
if (shouldDrop) {
|
|
809
|
-
components.delete(entry.key);
|
|
810
|
-
}
|
|
811
805
|
return functionEntries.pop();
|
|
812
806
|
};
|
|
813
807
|
const ctx = {
|
package/dist/index.mjs
CHANGED
|
@@ -776,12 +776,6 @@ function useComponentCollector(context, options = {}) {
|
|
|
776
776
|
const entry = functionEntries.at(-1);
|
|
777
777
|
if (entry == null) return;
|
|
778
778
|
if (!entry.isComponent) return functionEntries.pop();
|
|
779
|
-
const shouldDrop = AST9.getNestedReturnStatements(entry.node.body).slice().reverse().some((r) => {
|
|
780
|
-
return context.sourceCode.getScope(r).block === entry.node && r.argument != null && !isJsxLike(context.sourceCode, r.argument, hint);
|
|
781
|
-
});
|
|
782
|
-
if (shouldDrop) {
|
|
783
|
-
components.delete(entry.key);
|
|
784
|
-
}
|
|
785
779
|
return functionEntries.pop();
|
|
786
780
|
};
|
|
787
781
|
const ctx = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.1-next.0",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.34.0",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.7.1",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/kit": "1.52.
|
|
47
|
-
"@eslint-react/var": "1.52.
|
|
48
|
-
"@eslint-react/shared": "1.52.
|
|
44
|
+
"@eslint-react/ast": "1.52.1-next.0",
|
|
45
|
+
"@eslint-react/eff": "1.52.1-next.0",
|
|
46
|
+
"@eslint-react/kit": "1.52.1-next.0",
|
|
47
|
+
"@eslint-react/var": "1.52.1-next.0",
|
|
48
|
+
"@eslint-react/shared": "1.52.1-next.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.5.0",
|