@eslint-react/core 2.0.0-next.187 → 2.0.0-next.189
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/dist/index.js +2 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -469,7 +469,7 @@ declare function resolveAttributeValue(context: RuleContext, attribute: AST.TSES
|
|
|
469
469
|
readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
|
|
470
470
|
} | {
|
|
471
471
|
readonly kind: "expression";
|
|
472
|
-
readonly node: TSESTree.
|
|
472
|
+
readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
|
|
473
473
|
readonly toStatic: () => unknown;
|
|
474
474
|
} | {
|
|
475
475
|
readonly kind: "element";
|
|
@@ -477,7 +477,7 @@ declare function resolveAttributeValue(context: RuleContext, attribute: AST.TSES
|
|
|
477
477
|
readonly toStatic: () => undefined;
|
|
478
478
|
} | {
|
|
479
479
|
readonly kind: "spreadChild";
|
|
480
|
-
readonly node: TSESTree.
|
|
480
|
+
readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
|
|
481
481
|
readonly toStatic: () => undefined;
|
|
482
482
|
} | {
|
|
483
483
|
readonly kind: "spreadProps";
|
|
@@ -660,7 +660,7 @@ declare function stringifyJsx(node: TSESTree$1.JSXIdentifier | TSESTree$1.JSXNam
|
|
|
660
660
|
* @param prev The previous AST node in the traversal (used for context)
|
|
661
661
|
* @internal
|
|
662
662
|
*/
|
|
663
|
-
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.
|
|
663
|
+
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.PrivateIdentifier | TSESTree.SequenceExpression | TSESTree.Super | TSESTree.TaggedTemplateExpression | TSESTree.TemplateLiteral | TSESTree.ThisExpression | TSESTree.TSAsExpression | TSESTree.TSInstantiationExpression | TSESTree.TSNonNullExpression | TSESTree.TSSatisfiesExpression | TSESTree.TSTypeAssertion | TSESTree.UnaryExpression | TSESTree.UpdateExpression | TSESTree.YieldExpression | undefined;
|
|
664
664
|
//#endregion
|
|
665
665
|
//#region src/utils/is-from-react.d.ts
|
|
666
666
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
2
2
|
import * as AST from "@eslint-react/ast";
|
|
3
3
|
import { constFalse, constTrue, dual, flip, getOrElseUpdate, identity, unit } from "@eslint-react/eff";
|
|
4
|
-
import { RE_ANNOTATION_JSX, RE_ANNOTATION_JSX_FRAG, RE_ANNOTATION_JSX_IMPORT_SOURCE, RE_ANNOTATION_JSX_RUNTIME, RE_COMPONENT_NAME, RE_COMPONENT_NAME_LOOSE
|
|
4
|
+
import { RE_ANNOTATION_JSX, RE_ANNOTATION_JSX_FRAG, RE_ANNOTATION_JSX_IMPORT_SOURCE, RE_ANNOTATION_JSX_RUNTIME, RE_COMPONENT_NAME, RE_COMPONENT_NAME_LOOSE } from "@eslint-react/kit";
|
|
5
5
|
import { getId } from "@eslint-react/shared";
|
|
6
6
|
import * as VAR from "@eslint-react/var";
|
|
7
7
|
import { getStaticValue } from "@typescript-eslint/utils/ast-utils";
|
|
@@ -981,7 +981,7 @@ function useComponentCollector(context, options = {}) {
|
|
|
981
981
|
initPath
|
|
982
982
|
});
|
|
983
983
|
},
|
|
984
|
-
...collectDisplayName ? { [SEL_DISPLAY_NAME_ASSIGNMENT_EXPRESSION](node) {
|
|
984
|
+
...collectDisplayName ? { [AST.SEL_DISPLAY_NAME_ASSIGNMENT_EXPRESSION](node) {
|
|
985
985
|
const { left, right } = node;
|
|
986
986
|
if (left.type !== AST_NODE_TYPES.MemberExpression) return;
|
|
987
987
|
const componentName = left.object.type === AST_NODE_TYPES.Identifier ? left.object.name : unit;
|
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.189",
|
|
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,14 +34,14 @@
|
|
|
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/eff": "2.0.0-next.
|
|
39
|
-
"@eslint-react/
|
|
40
|
-
"@eslint-react/
|
|
41
|
-
"@eslint-react/var": "2.0.0-next.
|
|
37
|
+
"@eslint-react/ast": "2.0.0-next.189",
|
|
38
|
+
"@eslint-react/eff": "2.0.0-next.189",
|
|
39
|
+
"@eslint-react/shared": "2.0.0-next.189",
|
|
40
|
+
"@eslint-react/kit": "2.0.0-next.189",
|
|
41
|
+
"@eslint-react/var": "2.0.0-next.189"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"tsdown": "^0.15.
|
|
44
|
+
"tsdown": "^0.15.4",
|
|
45
45
|
"@local/configs": "0.0.0"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|