@eslint-react/core 2.8.1-next.3 → 2.8.1-next.4
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
|
@@ -538,7 +538,7 @@ type FindEnclosingComponentOrHookFilter = (n: TSESTree.Node, name: string | null
|
|
|
538
538
|
* @param test Optional test function to customize component or hook identification
|
|
539
539
|
* @returns The enclosing component or hook node, or `null` if none is found
|
|
540
540
|
*/
|
|
541
|
-
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.
|
|
541
|
+
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | undefined;
|
|
542
542
|
//#endregion
|
|
543
543
|
//#region src/hierarchy/is-inside-component-or-hook.d.ts
|
|
544
544
|
/**
|
|
@@ -725,7 +725,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
725
725
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
726
726
|
} | {
|
|
727
727
|
readonly kind: "expression";
|
|
728
|
-
readonly node: TSESTree.
|
|
728
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
729
729
|
readonly toStatic: () => unknown;
|
|
730
730
|
} | {
|
|
731
731
|
readonly kind: "element";
|
|
@@ -733,7 +733,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
733
733
|
readonly toStatic: () => undefined;
|
|
734
734
|
} | {
|
|
735
735
|
readonly kind: "spreadChild";
|
|
736
|
-
readonly node: TSESTree.
|
|
736
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
737
737
|
readonly toStatic: () => undefined;
|
|
738
738
|
} | {
|
|
739
739
|
readonly kind: "spreadProps";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.8.1-next.
|
|
3
|
+
"version": "2.8.1-next.4",
|
|
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-next.
|
|
38
|
-
"@eslint-react/
|
|
39
|
-
"@eslint-react/
|
|
40
|
-
"@eslint-react/var": "2.8.1-next.
|
|
37
|
+
"@eslint-react/ast": "2.8.1-next.4",
|
|
38
|
+
"@eslint-react/shared": "2.8.1-next.4",
|
|
39
|
+
"@eslint-react/eff": "2.8.1-next.4",
|
|
40
|
+
"@eslint-react/var": "2.8.1-next.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsdown": "^0.20.1",
|