Skip to content

Conversation

SwetaTanwar
Copy link
Contributor

@SwetaTanwar SwetaTanwar commented Mar 23, 2025

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

What changes did you make? (Give an overview)

Related to #19173
Made current eslint/no-unused-expressions typescript syntax aware as per @typescript-eslint/no-unused-expressions

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Mar 23, 2025
Copy link

linux-foundation-easycla bot commented Mar 23, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@eslint-github-bot eslint-github-bot bot added the feature This change adds a new feature to ESLint label Mar 23, 2025
@SwetaTanwar SwetaTanwar marked this pull request as ready for review March 23, 2025 07:31
@SwetaTanwar SwetaTanwar requested a review from a team as a code owner March 23, 2025 07:31
@github-actions github-actions bot added the rule Relates to ESLint's core rules label Mar 23, 2025
Copy link

netlify bot commented Mar 23, 2025

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit fb6e4d1
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/67f604fbd01a8900086fd31a

@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Mar 23, 2025
@SwetaTanwar SwetaTanwar reopened this Mar 23, 2025
@github-project-automation github-project-automation bot moved this from Complete to Evaluating in Triage Mar 23, 2025
@SwetaTanwar SwetaTanwar force-pushed the ts/no-unused-expressions branch from 4a3e168 to 2f2210c Compare March 23, 2025 08:24
@github-project-automation github-project-automation bot moved this from Evaluating to Complete in Triage Mar 23, 2025
@SwetaTanwar SwetaTanwar reopened this Mar 23, 2025
@github-project-automation github-project-automation bot moved this from Complete to Evaluating in Triage Mar 23, 2025
@SwetaTanwar SwetaTanwar force-pushed the ts/no-unused-expressions branch from 2f2210c to a050c53 Compare March 23, 2025 08:29
@JoshuaKGoldberg JoshuaKGoldberg changed the title feat: make no-unused-expression ts syntax aware feat: make no-unused-expressions ts syntax aware Mar 24, 2025
Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

A great start! 🚀

I found a few areas of code that can be trimmed down or outright removed without causing any unit test failures. The unit tests cover pretty much what typescript-eslint's current tests do, so my hunch is it's all dead code. But, were there other cases you wanted to cover with the extra code?

@JoshuaKGoldberg JoshuaKGoldberg moved this from Evaluating to Feedback Needed in Triage Mar 24, 2025
@JoshuaKGoldberg JoshuaKGoldberg moved this from Feedback Needed to Implementing in Triage Mar 24, 2025
@snitin315 snitin315 added accepted There is consensus among the team that this change meets the criteria for inclusion contributor pool labels Mar 24, 2025
@SwetaTanwar SwetaTanwar force-pushed the ts/no-unused-expressions branch from 2abed4a to 532a759 Compare March 24, 2025 17:55
Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

A little bit more to remove, but I think this is getting there 🙂

snitin315
snitin315 previously approved these changes Mar 31, 2025
Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for your contribution ❤️

Leaving it open for @mdjermanovic

Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

SO much code deletion, awesome! What a great simplification. 👏

Just one last thing from me, I think, for clarifying docs a bit.

Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
snitin315
snitin315 previously approved these changes Mar 31, 2025
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
@mdjermanovic mdjermanovic changed the title feat: make no-unused-expressions ts syntax aware feat: support TS syntax in no-unused-expressions Apr 1, 2025
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Leaving open for @JoshuaKGoldberg and @snitin315 to verify.

Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

// @JoshuaKGoldberg

Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

:shipit:

@snitin315 snitin315 merged commit 77d6d5b into eslint:main Apr 9, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from Second Review Needed to Complete in Triage Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion contributor pool feature This change adds a new feature to ESLint rule Relates to ESLint's core rules
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

4 participants