@eslint-react/core 2.7.2-beta.3 → 2.7.2-beta.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 +4 -4
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ declare function isComponentWrapperCallbackLoose(context: RuleContext, node: TSE
|
|
|
431
431
|
* @param node The starting node
|
|
432
432
|
* @returns The enclosing assignment target node, or undefined if not found
|
|
433
433
|
*/
|
|
434
|
-
declare function findEnclosingAssignmentTarget(node: TSESTree.Node): TSESTree.
|
|
434
|
+
declare function findEnclosingAssignmentTarget(node: TSESTree.Node): TSESTree.JSXElement | TSESTree.BigIntLiteral | TSESTree.BooleanLiteral | TSESTree.NullLiteral | TSESTree.NumberLiteral | TSESTree.RegExpLiteral | TSESTree.StringLiteral | TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpression | TSESTree.AssignmentExpression | TSESTree.AwaitExpression | TSESTree.PrivateInExpression | TSESTree.SymmetricBinaryExpression | TSESTree.CallExpression | TSESTree.ChainExpression | TSESTree.ClassExpression | TSESTree.ConditionalExpression | TSESTree.FunctionExpression | TSESTree.Identifier | TSESTree.ImportExpression | TSESTree.JSXFragment | TSESTree.TemplateLiteral | TSESTree.LogicalExpression | TSESTree.MemberExpressionComputedName | TSESTree.MemberExpressionNonComputedName | TSESTree.MetaProperty | TSESTree.NewExpression | TSESTree.ObjectExpression | TSESTree.ObjectPattern | TSESTree.SequenceExpression | TSESTree.Super | TSESTree.TaggedTemplateExpression | TSESTree.ThisExpression | TSESTree.TSAsExpression | TSESTree.TSInstantiationExpression | TSESTree.TSNonNullExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion | TSESTree.UnaryExpressionBitwiseNot | TSESTree.UnaryExpressionDelete | TSESTree.UnaryExpressionMinus | TSESTree.UnaryExpressionNot | TSESTree.UnaryExpressionPlus | TSESTree.UnaryExpressionTypeof | TSESTree.UnaryExpressionVoid | TSESTree.UpdateExpression | TSESTree.YieldExpression | TSESTree.PrivateIdentifier | undefined;
|
|
435
435
|
/**
|
|
436
436
|
* Type representing the possible assignment targets returned by `findEnclosingAssignmentTarget`
|
|
437
437
|
*/
|
|
@@ -445,7 +445,7 @@ type FindEnclosingComponentOrHookFilter = (n: TSESTree.Node, name: string | null
|
|
|
445
445
|
* @param test Optional test function to customize component or hook identification
|
|
446
446
|
* @returns The enclosing component or hook node, or `null` if none is found
|
|
447
447
|
*/
|
|
448
|
-
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.
|
|
448
|
+
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | undefined;
|
|
449
449
|
//#endregion
|
|
450
450
|
//#region src/hierarchy/is-inside-component-or-hook.d.ts
|
|
451
451
|
/**
|
|
@@ -624,7 +624,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
624
624
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
625
625
|
} | {
|
|
626
626
|
readonly kind: "expression";
|
|
627
|
-
readonly node: TSESTree.
|
|
627
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
628
628
|
readonly toStatic: () => unknown;
|
|
629
629
|
} | {
|
|
630
630
|
readonly kind: "element";
|
|
@@ -632,7 +632,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
632
632
|
readonly toStatic: () => undefined;
|
|
633
633
|
} | {
|
|
634
634
|
readonly kind: "spreadChild";
|
|
635
|
-
readonly node: TSESTree.
|
|
635
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
636
636
|
readonly toStatic: () => undefined;
|
|
637
637
|
} | {
|
|
638
638
|
readonly kind: "spreadProps";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.7.2-beta.
|
|
3
|
+
"version": "2.7.2-beta.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": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@typescript-eslint/utils": "^8.53.0",
|
|
36
36
|
"birecord": "^0.1.1",
|
|
37
37
|
"ts-pattern": "^5.9.0",
|
|
38
|
-
"@eslint-react/ast": "2.7.2-beta.
|
|
39
|
-
"@eslint-react/
|
|
40
|
-
"@eslint-react/
|
|
41
|
-
"@eslint-react/
|
|
38
|
+
"@eslint-react/ast": "2.7.2-beta.4",
|
|
39
|
+
"@eslint-react/shared": "2.7.2-beta.4",
|
|
40
|
+
"@eslint-react/var": "2.7.2-beta.4",
|
|
41
|
+
"@eslint-react/eff": "2.7.2-beta.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsdown": "^0.20.0-beta.3",
|