@eslint-react/core 1.53.0-next.0 → 1.53.1-beta.0
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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -546,7 +546,7 @@ declare function stringifyJsx(node: TSESTree$1.JSXIdentifier | TSESTree$1.JSXMem
|
|
|
546
546
|
//#endregion
|
|
547
547
|
//#region src/utils/get-instance-id.d.ts
|
|
548
548
|
/** @internal */
|
|
549
|
-
declare function getInstanceId(node: TSESTree.Node, prev?: TSESTree.Node): TSESTree.
|
|
549
|
+
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;
|
|
550
550
|
//#endregion
|
|
551
551
|
//#region src/utils/is-from-react.d.ts
|
|
552
552
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -546,7 +546,7 @@ declare function stringifyJsx(node: TSESTree$1.JSXIdentifier | TSESTree$1.JSXMem
|
|
|
546
546
|
//#endregion
|
|
547
547
|
//#region src/utils/get-instance-id.d.ts
|
|
548
548
|
/** @internal */
|
|
549
|
-
declare function getInstanceId(node: TSESTree.Node, prev?: TSESTree.Node): TSESTree.
|
|
549
|
+
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;
|
|
550
550
|
//#endregion
|
|
551
551
|
//#region src/utils/is-from-react.d.ts
|
|
552
552
|
/**
|
package/dist/index.js
CHANGED
|
@@ -296,7 +296,7 @@ function useHookCollector() {
|
|
|
296
296
|
//#region src/hook/hook-hierarchy.ts
|
|
297
297
|
function isFunctionOfUseEffectSetup(node) {
|
|
298
298
|
if (node == null) return false;
|
|
299
|
-
return node.parent?.type === __typescript_eslint_types.AST_NODE_TYPES.CallExpression && node.parent.
|
|
299
|
+
return node.parent?.type === __typescript_eslint_types.AST_NODE_TYPES.CallExpression && node.parent.arguments.at(0) === node && isUseEffectCallLoose(node.parent);
|
|
300
300
|
}
|
|
301
301
|
function isFunctionOfUseEffectCleanup(node) {
|
|
302
302
|
if (node == null) return false;
|
package/dist/index.mjs
CHANGED
|
@@ -273,7 +273,7 @@ function useHookCollector() {
|
|
|
273
273
|
//#region src/hook/hook-hierarchy.ts
|
|
274
274
|
function isFunctionOfUseEffectSetup(node) {
|
|
275
275
|
if (node == null) return false;
|
|
276
|
-
return node.parent?.type === AST_NODE_TYPES.CallExpression && node.parent.
|
|
276
|
+
return node.parent?.type === AST_NODE_TYPES.CallExpression && node.parent.arguments.at(0) === node && isUseEffectCallLoose(node.parent);
|
|
277
277
|
}
|
|
278
278
|
function isFunctionOfUseEffectCleanup(node) {
|
|
279
279
|
if (node == null) return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.53.
|
|
3
|
+
"version": "1.53.1-beta.0",
|
|
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": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.42.0",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.8.0",
|
|
44
|
-
"@eslint-react/ast": "1.53.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "1.53.1-beta.0",
|
|
45
|
+
"@eslint-react/kit": "1.53.1-beta.0",
|
|
46
|
+
"@eslint-react/shared": "1.53.1-beta.0",
|
|
47
|
+
"@eslint-react/eff": "1.53.1-beta.0",
|
|
48
|
+
"@eslint-react/var": "1.53.1-beta.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsdown": "^0.14.2",
|