@eslint-react/core 2.8.1-beta.0 → 2.8.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.d.ts +3 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -532,7 +532,7 @@ type FindEnclosingComponentOrHookFilter = (n: TSESTree.Node, name: string | null
|
|
|
532
532
|
* @param test Optional test function to customize component or hook identification
|
|
533
533
|
* @returns The enclosing component or hook node, or `null` if none is found
|
|
534
534
|
*/
|
|
535
|
-
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.
|
|
535
|
+
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | undefined;
|
|
536
536
|
//#endregion
|
|
537
537
|
//#region src/hierarchy/is-inside-component-or-hook.d.ts
|
|
538
538
|
/**
|
|
@@ -715,7 +715,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
715
715
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
716
716
|
} | {
|
|
717
717
|
readonly kind: "expression";
|
|
718
|
-
readonly node: TSESTree.
|
|
718
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
719
719
|
readonly toStatic: () => unknown;
|
|
720
720
|
} | {
|
|
721
721
|
readonly kind: "element";
|
|
@@ -723,7 +723,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
723
723
|
readonly toStatic: () => undefined;
|
|
724
724
|
} | {
|
|
725
725
|
readonly kind: "spreadChild";
|
|
726
|
-
readonly node: TSESTree.
|
|
726
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
727
727
|
readonly toStatic: () => undefined;
|
|
728
728
|
} | {
|
|
729
729
|
readonly kind: "spreadProps";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.8.1-
|
|
3
|
+
"version": "2.8.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": {
|
|
@@ -34,10 +34,10 @@
|
|
|
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.8.1-
|
|
38
|
-
"@eslint-react/eff": "2.8.1-
|
|
39
|
-
"@eslint-react/
|
|
40
|
-
"@eslint-react/
|
|
37
|
+
"@eslint-react/ast": "2.8.1-next.0",
|
|
38
|
+
"@eslint-react/eff": "2.8.1-next.0",
|
|
39
|
+
"@eslint-react/shared": "2.8.1-next.0",
|
|
40
|
+
"@eslint-react/var": "2.8.1-next.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsdown": "^0.20.1",
|