feat: support TS syntax in no-unused-expressions#19564
feat: support TS syntax in no-unused-expressions#19564snitin315 merged 18 commits intoeslint:mainfrom
no-unused-expressions#19564Conversation
✅ Deploy Preview for docs-eslint canceled.
|
4a3e168 to
2f2210c
Compare
2f2210c to
a050c53
Compare
JoshuaKGoldberg
left a comment
There was a problem hiding this comment.
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
JoshuaKGoldberg
left a comment
There was a problem hiding this comment.
A little bit more to remove, but I think this is getting there 🙂
snitin315
left a comment
There was a problem hiding this comment.
LGTM, thank you for your contribution ❤️
Leaving it open for @mdjermanovic
JoshuaKGoldberg
left a comment
There was a problem hiding this comment.
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
mdjermanovic
left a comment
There was a problem hiding this comment.
LGTM, thanks! Leaving open for @JoshuaKGoldberg and @snitin315 to verify.
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?