@eslint-react/core 2.7.1-next.3 → 2.7.1
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
|
@@ -426,7 +426,7 @@ declare function isComponentWrapperCallbackLoose(context: RuleContext, node: TSE
|
|
|
426
426
|
* @param node The starting node
|
|
427
427
|
* @returns The enclosing assignment target node, or undefined if not found
|
|
428
428
|
*/
|
|
429
|
-
declare function findEnclosingAssignmentTarget(node: TSESTree.Node): TSESTree.
|
|
429
|
+
declare function findEnclosingAssignmentTarget(node: TSESTree.Node): 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.JSXElement | TSESTree.JSXFragment | TSESTree.BigIntLiteral | TSESTree.BooleanLiteral | TSESTree.NullLiteral | TSESTree.NumberLiteral | TSESTree.RegExpLiteral | TSESTree.StringLiteral | TSESTree.LogicalExpression | TSESTree.MemberExpressionComputedName | TSESTree.MemberExpressionNonComputedName | TSESTree.MetaProperty | TSESTree.NewExpression | TSESTree.ObjectExpression | TSESTree.ObjectPattern | TSESTree.PrivateIdentifier | TSESTree.SequenceExpression | TSESTree.Super | TSESTree.TaggedTemplateExpression | TSESTree.TemplateLiteral | 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 | undefined;
|
|
430
430
|
/**
|
|
431
431
|
* Type representing the possible assignment targets returned by `findEnclosingAssignmentTarget`
|
|
432
432
|
*/
|
|
@@ -440,7 +440,7 @@ type FindEnclosingComponentOrHookFilter = (n: TSESTree.Node, name: string | null
|
|
|
440
440
|
* @param test Optional test function to customize component or hook identification
|
|
441
441
|
* @returns The enclosing component or hook node, or `null` if none is found
|
|
442
442
|
*/
|
|
443
|
-
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.
|
|
443
|
+
declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | undefined;
|
|
444
444
|
//#endregion
|
|
445
445
|
//#region src/hierarchy/is-inside-component-or-hook.d.ts
|
|
446
446
|
/**
|
|
@@ -619,7 +619,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
619
619
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
620
620
|
} | {
|
|
621
621
|
readonly kind: "expression";
|
|
622
|
-
readonly node: TSESTree.
|
|
622
|
+
readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
|
|
623
623
|
readonly toStatic: () => unknown;
|
|
624
624
|
} | {
|
|
625
625
|
readonly kind: "element";
|
|
@@ -627,7 +627,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: AST.T
|
|
|
627
627
|
readonly toStatic: () => undefined;
|
|
628
628
|
} | {
|
|
629
629
|
readonly kind: "spreadChild";
|
|
630
|
-
readonly node: TSESTree.
|
|
630
|
+
readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
|
|
631
631
|
readonly toStatic: () => undefined;
|
|
632
632
|
} | {
|
|
633
633
|
readonly kind: "spreadProps";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.7.1
|
|
3
|
+
"version": "2.7.1",
|
|
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.1
|
|
39
|
-
"@eslint-react/eff": "2.7.1
|
|
40
|
-
"@eslint-react/
|
|
41
|
-
"@eslint-react/
|
|
38
|
+
"@eslint-react/ast": "2.7.1",
|
|
39
|
+
"@eslint-react/eff": "2.7.1",
|
|
40
|
+
"@eslint-react/shared": "2.7.1",
|
|
41
|
+
"@eslint-react/var": "2.7.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsdown": "^0.20.0-beta.3",
|