@eslint-react/core 2.7.4 → 2.7.5-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
|
@@ -511,7 +511,7 @@ type FindEnclosingComponentOrHookFilter = (n: TSESTree.Node, name: string | null
|
|
|
511
511
|
* @param test Optional test function to customize component or hook identification
|
|
512
512
|
* @returns The enclosing component or hook node, or `null` if none is found
|
|
513
513
|
*/
|
|
514
|
-
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.
|
|
514
|
+
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | undefined;
|
|
515
515
|
//#endregion
|
|
516
516
|
//#region src/hierarchy/is-inside-component-or-hook.d.ts
|
|
517
517
|
/**
|
|
@@ -695,7 +695,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
695
695
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
696
696
|
} | {
|
|
697
697
|
readonly kind: "expression";
|
|
698
|
-
readonly node: TSESTree.
|
|
698
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
699
699
|
readonly toStatic: () => unknown;
|
|
700
700
|
} | {
|
|
701
701
|
readonly kind: "element";
|
|
@@ -703,7 +703,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
703
703
|
readonly toStatic: () => undefined;
|
|
704
704
|
} | {
|
|
705
705
|
readonly kind: "spreadChild";
|
|
706
|
-
readonly node: TSESTree.
|
|
706
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
707
707
|
readonly toStatic: () => undefined;
|
|
708
708
|
} | {
|
|
709
709
|
readonly kind: "spreadProps";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.5-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": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@typescript-eslint/utils": "^8.53.1",
|
|
36
36
|
"birecord": "^0.1.1",
|
|
37
37
|
"ts-pattern": "^5.9.0",
|
|
38
|
-
"@eslint-react/ast": "2.7.
|
|
39
|
-
"@eslint-react/
|
|
40
|
-
"@eslint-react/var": "2.7.
|
|
41
|
-
"@eslint-react/
|
|
38
|
+
"@eslint-react/ast": "2.7.5-next.0",
|
|
39
|
+
"@eslint-react/shared": "2.7.5-next.0",
|
|
40
|
+
"@eslint-react/var": "2.7.5-next.0",
|
|
41
|
+
"@eslint-react/eff": "2.7.5-next.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsdown": "^0.20.1",
|