@eslint-react/core 5.20.6 → 5.20.7
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 +1 -1
- package/dist/index.js +5 -0
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -434,7 +434,7 @@ export type FunctionSemanticNode = ClientFunctionSemanticNode | ServerFunctionSe
|
|
|
434
434
|
* @param node The function node to analyze.
|
|
435
435
|
* @returns The identifier node if found, `null` otherwise.
|
|
436
436
|
*/
|
|
437
|
-
export declare function getFunctionId(node: TSESTree.Expression | TSESTreeFunction): TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpressionWithBlockBody | TSESTree.ArrowFunctionExpressionWithExpressionBody | 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.
|
|
437
|
+
export declare function getFunctionId(node: TSESTree.Expression | TSESTreeFunction): TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpressionWithBlockBody | TSESTree.ArrowFunctionExpressionWithExpressionBody | 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.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.YieldNoStarExpression | TSESTree.YieldStarExpression | TSESTree.PrivateIdentifier | null;
|
|
438
438
|
/**
|
|
439
439
|
* Get the initialization path of a function node in the AST.
|
|
440
440
|
*
|
package/dist/index.js
CHANGED
|
@@ -639,6 +639,11 @@ function isJsxLike(context, node, hint = DEFAULT_JSX_DETECTION_HINT) {
|
|
|
639
639
|
if (node == null) return false;
|
|
640
640
|
if (Check.isJSX(node)) return true;
|
|
641
641
|
switch (node.type) {
|
|
642
|
+
case AST_NODE_TYPES.TSAsExpression:
|
|
643
|
+
case AST_NODE_TYPES.TSSatisfiesExpression:
|
|
644
|
+
case AST_NODE_TYPES.TSTypeAssertion:
|
|
645
|
+
case AST_NODE_TYPES.TSNonNullExpression: return visit(node.expression);
|
|
646
|
+
case AST_NODE_TYPES.AwaitExpression: return visit(node.argument);
|
|
642
647
|
case AST_NODE_TYPES.Literal:
|
|
643
648
|
switch (typeof node.value) {
|
|
644
649
|
case "boolean": return !(hint & JsxDetectionHint.DoNotIncludeJsxWithBooleanValue);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "5.20.
|
|
3
|
+
"version": "5.20.7",
|
|
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": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint-react/ast": "5.20.
|
|
33
|
-
"@eslint-react/eslint": "5.20.
|
|
34
|
-
"@eslint-react/shared": "5.20.
|
|
35
|
-
"@eslint-react/var": "5.20.
|
|
32
|
+
"@eslint-react/ast": "5.20.7",
|
|
33
|
+
"@eslint-react/eslint": "5.20.7",
|
|
34
|
+
"@eslint-react/shared": "5.20.7",
|
|
35
|
+
"@eslint-react/var": "5.20.7",
|
|
36
36
|
"@typescript-eslint/scope-manager": "^8.70.0",
|
|
37
37
|
"@typescript-eslint/types": "^8.70.0",
|
|
38
38
|
"@typescript-eslint/utils": "^8.70.0",
|