@eslint-react/core 2.0.0-next.179 → 2.0.0-next.180
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
|
@@ -471,7 +471,7 @@ declare function resolveAttributeValue(context: RuleContext, attribute: AST.TSES
|
|
|
471
471
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
472
472
|
} | {
|
|
473
473
|
readonly kind: "expression";
|
|
474
|
-
readonly node: TSESTree.
|
|
474
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
475
475
|
readonly toStatic: () => unknown;
|
|
476
476
|
} | {
|
|
477
477
|
readonly kind: "element";
|
|
@@ -479,7 +479,7 @@ declare function resolveAttributeValue(context: RuleContext, attribute: AST.TSES
|
|
|
479
479
|
readonly toStatic: () => undefined;
|
|
480
480
|
} | {
|
|
481
481
|
readonly kind: "spreadChild";
|
|
482
|
-
readonly node: TSESTree.
|
|
482
|
+
readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
|
|
483
483
|
readonly toStatic: () => undefined;
|
|
484
484
|
} | {
|
|
485
485
|
readonly kind: "spreadProps";
|
|
@@ -774,7 +774,7 @@ declare function getTypeVariants(types: ts.Type[]): Set<TypeVariant>;
|
|
|
774
774
|
* @param prev The previous AST node in the traversal (used for context)
|
|
775
775
|
* @internal
|
|
776
776
|
*/
|
|
777
|
-
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.
|
|
777
|
+
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;
|
|
778
778
|
//#endregion
|
|
779
779
|
//#region src/utils/is-from-react.d.ts
|
|
780
780
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.180",
|
|
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": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"birecord": "^0.1.1",
|
|
35
35
|
"ts-api-utils": "^2.1.0",
|
|
36
36
|
"ts-pattern": "^5.8.0",
|
|
37
|
-
"@eslint-react/ast": "2.0.0-next.
|
|
38
|
-
"@eslint-react/
|
|
39
|
-
"@eslint-react/
|
|
40
|
-
"@eslint-react/
|
|
41
|
-
"@eslint-react/
|
|
37
|
+
"@eslint-react/ast": "2.0.0-next.180",
|
|
38
|
+
"@eslint-react/kit": "2.0.0-next.180",
|
|
39
|
+
"@eslint-react/shared": "2.0.0-next.180",
|
|
40
|
+
"@eslint-react/eff": "2.0.0-next.180",
|
|
41
|
+
"@eslint-react/var": "2.0.0-next.180"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsdown": "^0.15.0",
|