@eslint-react/core 5.13.0 → 5.13.2
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 +10 -6
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { RegExpLike } from "@eslint-react/shared";
|
|
|
5
5
|
import ts from "typescript";
|
|
6
6
|
import { RuleContext } from "@eslint-react/eslint";
|
|
7
7
|
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
8
|
-
|
|
9
8
|
//#region src/api.d.ts
|
|
10
9
|
declare namespace isAPI {
|
|
11
10
|
type ReturnType = {
|
|
@@ -288,7 +287,7 @@ type FunctionSemanticNode = ClientFunctionSemanticNode | ServerFunctionSemanticN
|
|
|
288
287
|
* @param node - The function node to analyze.
|
|
289
288
|
* @returns The identifier node if found, `null` otherwise.
|
|
290
289
|
*/
|
|
291
|
-
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.
|
|
290
|
+
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;
|
|
292
291
|
/**
|
|
293
292
|
* Identifies the initialization path of a function node in the AST.
|
|
294
293
|
*
|
|
@@ -389,10 +388,15 @@ interface FunctionComponentSemanticNode extends SemanticNode {
|
|
|
389
388
|
* Component flag constants
|
|
390
389
|
*/
|
|
391
390
|
declare const FunctionComponentFlag: {
|
|
392
|
-
/** No flags set */
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
391
|
+
/** No flags set */
|
|
392
|
+
None: bigint;
|
|
393
|
+
/** Indicates the component is a pure component (ex: extends PureComponent) */
|
|
394
|
+
PureComponent: bigint;
|
|
395
|
+
/** Indicates the component creates elements using `createElement` instead of JSX */
|
|
396
|
+
CreateElement: bigint;
|
|
397
|
+
/** Indicates the component is memoized (ex: React.memo) */
|
|
398
|
+
Memo: bigint;
|
|
399
|
+
/** Indicates the component forwards a ref (ex: React.forwardRef) */
|
|
396
400
|
ForwardRef: bigint;
|
|
397
401
|
};
|
|
398
402
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.2",
|
|
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": {
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"@typescript-eslint/types": "^8.63.0",
|
|
34
34
|
"@typescript-eslint/utils": "^8.63.0",
|
|
35
35
|
"ts-pattern": "^5.9.0",
|
|
36
|
-
"@eslint-react/
|
|
37
|
-
"@eslint-react/
|
|
38
|
-
"@eslint-react/
|
|
39
|
-
"@eslint-react/shared": "5.13.
|
|
40
|
-
"@eslint-react/var": "5.13.
|
|
36
|
+
"@eslint-react/ast": "5.13.2",
|
|
37
|
+
"@eslint-react/jsx": "5.13.2",
|
|
38
|
+
"@eslint-react/eslint": "5.13.2",
|
|
39
|
+
"@eslint-react/shared": "5.13.2",
|
|
40
|
+
"@eslint-react/var": "5.13.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@typescript-eslint/parser": "^8.63.0",
|
|
44
44
|
"@typescript-eslint/typescript-estree": "^8.63.0",
|
|
45
45
|
"eslint": "^10.6.0",
|
|
46
|
-
"tsdown": "^0.22.
|
|
46
|
+
"tsdown": "^0.22.4",
|
|
47
47
|
"typescript": "6.0.3",
|
|
48
48
|
"vitest": "^4.1.10",
|
|
49
49
|
"@local/configs": "0.0.0",
|