@eslint-react/core 2.12.0-beta.0 → 2.12.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
|
@@ -543,7 +543,7 @@ type FindEnclosingComponentOrHookFilter = (n: TSESTree.Node, name: string | null
|
|
|
543
543
|
* @param test Optional test function to customize component or hook identification
|
|
544
544
|
* @returns The enclosing component or hook node, or `null` if none is ASAST.
|
|
545
545
|
*/
|
|
546
|
-
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.
|
|
546
|
+
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | undefined;
|
|
547
547
|
//#endregion
|
|
548
548
|
//#region src/hierarchy/is-inside-component-or-hook.d.ts
|
|
549
549
|
/**
|
|
@@ -741,7 +741,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: ast.T
|
|
|
741
741
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
742
742
|
} | {
|
|
743
743
|
readonly kind: "expression";
|
|
744
|
-
readonly node: TSESTree.
|
|
744
|
+
readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
|
|
745
745
|
readonly toStatic: () => unknown;
|
|
746
746
|
} | {
|
|
747
747
|
readonly kind: "element";
|
|
@@ -749,7 +749,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: ast.T
|
|
|
749
749
|
readonly toStatic: () => undefined;
|
|
750
750
|
} | {
|
|
751
751
|
readonly kind: "spreadChild";
|
|
752
|
-
readonly node: TSESTree.
|
|
752
|
+
readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
|
|
753
753
|
readonly toStatic: () => undefined;
|
|
754
754
|
} | {
|
|
755
755
|
readonly kind: "spreadProps";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.12.0
|
|
3
|
+
"version": "2.12.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.12.0
|
|
38
|
-
"@eslint-react/
|
|
39
|
-
"@eslint-react/shared": "2.12.0
|
|
40
|
-
"@eslint-react/
|
|
37
|
+
"@eslint-react/ast": "2.12.0",
|
|
38
|
+
"@eslint-react/eff": "2.12.0",
|
|
39
|
+
"@eslint-react/shared": "2.12.0",
|
|
40
|
+
"@eslint-react/var": "2.12.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsdown": "^0.20.3",
|