-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
feat: support TS syntax in no-unused-expressions
#19564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for docs-eslint canceled.
|
4a3e168
to
2f2210c
Compare
2f2210c
to
a050c53
Compare
There was a problem hiding this 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?
2abed4a
to
532a759
Compare
There was a problem hiding this 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 🙂
There was a problem hiding this 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
There was a problem hiding this 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>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
no-unused-expressions
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?