Skip to content

Conversation

y-hsgw
Copy link
Member

@y-hsgw y-hsgw commented Oct 13, 2025

Checks

Changes

  • Expand is-node-of-type helpers and identifier utilities to unwrap ChainExpression nodes.
  • Rework getStatementCallExpression to peel await/assignment/optional-chaining layers before returning the underlying call.

Context

Fixes: #686

@Belco90 Belco90 self-requested a review October 14, 2025 07:36
@Belco90 Belco90 changed the title fix(no-unnecessary-act): Handle optional chaining calls fix(no-unnecessary-act): handle optional chaining calls Oct 14, 2025
Copy link
Member

@Belco90 Belco90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@Belco90 Belco90 merged commit a5f66c2 into main Oct 14, 2025
32 checks passed
@Belco90 Belco90 deleted the feature/support-chain-expression branch October 14, 2025 07:42
Copy link

🎉 This PR is included in version 7.13.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive from no-unnecessary-act

2 participants