@eslint-react/core 3.0.0-next.17 → 3.0.0-next.18
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
|
@@ -534,7 +534,7 @@ type FindEnclosingComponentOrHookFilter = (n: TSESTree.Node, name: string | null
|
|
|
534
534
|
* @param test Optional test function to customize component or hook identification
|
|
535
535
|
* @returns The enclosing component or hook node, or `null` if none is ASAST.
|
|
536
536
|
*/
|
|
537
|
-
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.
|
|
537
|
+
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | undefined;
|
|
538
538
|
//#endregion
|
|
539
539
|
//#region src/hierarchy/is-inside-component-or-hook.d.ts
|
|
540
540
|
/**
|
|
@@ -732,7 +732,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: ast.T
|
|
|
732
732
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
733
733
|
} | {
|
|
734
734
|
readonly kind: "expression";
|
|
735
|
-
readonly node: TSESTree.
|
|
735
|
+
readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
|
|
736
736
|
readonly toStatic: () => unknown;
|
|
737
737
|
} | {
|
|
738
738
|
readonly kind: "element";
|
|
@@ -740,7 +740,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: ast.T
|
|
|
740
740
|
readonly toStatic: () => undefined;
|
|
741
741
|
} | {
|
|
742
742
|
readonly kind: "spreadChild";
|
|
743
|
-
readonly node: TSESTree.
|
|
743
|
+
readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
|
|
744
744
|
readonly toStatic: () => undefined;
|
|
745
745
|
} | {
|
|
746
746
|
readonly kind: "spreadProps";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.18",
|
|
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": "canary",
|
|
35
35
|
"@typescript-eslint/utils": "canary",
|
|
36
36
|
"ts-pattern": "^5.9.0",
|
|
37
|
-
"@eslint-react/ast": "3.0.0-next.
|
|
38
|
-
"@eslint-react/eff": "3.0.0-next.
|
|
39
|
-
"@eslint-react/
|
|
40
|
-
"@eslint-react/
|
|
37
|
+
"@eslint-react/ast": "3.0.0-next.18",
|
|
38
|
+
"@eslint-react/eff": "3.0.0-next.18",
|
|
39
|
+
"@eslint-react/shared": "3.0.0-next.18",
|
|
40
|
+
"@eslint-react/var": "3.0.0-next.18"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsdown": "^0.20.3",
|