Skip to content

test: review pr #1660 #1662#1671

Merged
Rel1cx merged 3 commits intomainfrom
test/review-pr-1660-1662
Mar 31, 2026
Merged

test: review pr #1660 #1662#1671
Rel1cx merged 3 commits intomainfrom
test/review-pr-1660-1662

Conversation

@Rel1cx
Copy link
Copy Markdown
Owner

@Rel1cx Rel1cx commented Mar 31, 2026

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Perf
  • Docs
  • Test
  • Chore
  • Enhancement
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • I have added a convincing reason for adding this feature, if necessary

Other information

Rel1cx added 3 commits March 31, 2026 20:36
Cover the following changes introduced in PR #1660:
- find-import-source: circular reference guard with visited Set
- is-react-api: correct suffix matching with endsWith
- component-detection-legacy: isRenderMethodLike covers ClassExpression,
  isClassComponent with optional context, isThisSetState -> isThisSetStateCall
- hook-is: isHook -> isHookDefinition rename, isHookCallWithName un-exported

Cover the following changes introduced in PR #1662:
- function-init-path: support ClassExpression in addition to ClassDeclaration
- node-equality: handle JSXNamespacedName in JSXAttribute comparison

New test files:
- packages/core/src/api/find-import-source.test.ts (6 tests)
- packages/core/src/api/is-react-api.test.ts (32 tests)
- packages/core/src/component/component-detection-legacy.test.ts (13 tests)
- packages/core/src/hook/hook-is.test.ts (20 tests)
- packages/utilities/ast/src/function-init-path.test.ts (6 tests)
- packages/utilities/ast/src/node-equality.test.ts (16 tests)
…n cases to isNodeEqual

PR #1662 changed JSXAttribute name comparison from direct string
comparison to recursive isNodeEqual(a.name, b.name), but did not
add handling for JSX name node types. This caused JSXAttribute
structural equality to always return false for non-reference-equal
nodes, as JSXIdentifier / JSXNamespacedName / JSXMemberExpression
all fell through to the default case.
@Rel1cx Rel1cx marked this pull request as ready for review March 31, 2026 12:39
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
eslint-react Ready Ready Preview, Comment Mar 31, 2026 0:39am

Request Review

@Rel1cx Rel1cx merged commit d665ea4 into main Mar 31, 2026
12 checks passed
@Rel1cx Rel1cx deleted the test/review-pr-1660-1662 branch March 31, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant