@eslint-react/core 2.0.4-next.0 → 2.0.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 +3 -3
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -480,7 +480,7 @@ declare function resolveAttributeValue(context: RuleContext, attribute: AST.TSES
|
|
|
480
480
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
481
481
|
} | {
|
|
482
482
|
readonly kind: "expression";
|
|
483
|
-
readonly node: TSESTree.
|
|
483
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
484
484
|
readonly toStatic: () => unknown;
|
|
485
485
|
} | {
|
|
486
486
|
readonly kind: "element";
|
|
@@ -488,7 +488,7 @@ declare function resolveAttributeValue(context: RuleContext, attribute: AST.TSES
|
|
|
488
488
|
readonly toStatic: () => undefined;
|
|
489
489
|
} | {
|
|
490
490
|
readonly kind: "spreadChild";
|
|
491
|
-
readonly node: TSESTree.
|
|
491
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
492
492
|
readonly toStatic: () => undefined;
|
|
493
493
|
} | {
|
|
494
494
|
readonly kind: "spreadProps";
|
|
@@ -671,7 +671,7 @@ declare function stringifyJsx(node: TSESTree$1.JSXIdentifier | TSESTree$1.JSXNam
|
|
|
671
671
|
* @param prev The previous AST node in the traversal (used for context)
|
|
672
672
|
* @internal
|
|
673
673
|
*/
|
|
674
|
-
declare function getInstanceId(node: TSESTree.Node, prev?: TSESTree.Node): TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpression | TSESTree.AssignmentExpression | TSESTree.AwaitExpression | TSESTree.BinaryExpression | 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.
|
|
674
|
+
declare function getInstanceId(node: TSESTree.Node, prev?: TSESTree.Node): TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpression | TSESTree.AssignmentExpression | TSESTree.AwaitExpression | TSESTree.BinaryExpression | 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.UnaryExpression | TSESTree.UpdateExpression | TSESTree.YieldExpression | TSESTree.PrivateIdentifier | undefined;
|
|
675
675
|
//#endregion
|
|
676
676
|
//#region src/utils/is-from-react.d.ts
|
|
677
677
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.0.4
|
|
3
|
+
"version": "2.0.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": {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@typescript-eslint/utils": "^8.45.0",
|
|
33
33
|
"birecord": "^0.1.1",
|
|
34
34
|
"ts-pattern": "^5.8.0",
|
|
35
|
-
"@eslint-react/ast": "2.0.4
|
|
36
|
-
"@eslint-react/kit": "2.0.4
|
|
37
|
-
"@eslint-react/
|
|
38
|
-
"@eslint-react/
|
|
39
|
-
"@eslint-react/var": "2.0.4
|
|
35
|
+
"@eslint-react/ast": "2.0.4",
|
|
36
|
+
"@eslint-react/kit": "2.0.4",
|
|
37
|
+
"@eslint-react/eff": "2.0.4",
|
|
38
|
+
"@eslint-react/shared": "2.0.4",
|
|
39
|
+
"@eslint-react/var": "2.0.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"tsdown": "^0.15.5",
|