-
Notifications
You must be signed in to change notification settings - Fork 887
[new-rule] Added new invalid-void rule #4736
[new-rule] Added new invalid-void rule #4736
Conversation
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.
Implementation generally looks good: some comments around semantics please!
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.
Looking good so far - mostly just interested in expanding the test coverage, since there are a lot of potential edge cases.
@JoshuaKGoldberg can you please take a look? Do I need to do fix something else? |
Planning on looking at pending PRs this week! |
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.
Almost there 🙏 I promise!
…actWalker to undefined from {}
There is CI error, but it looks like the master is failed too. |
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.
Looks great to me. Thanks so much for sticking through the PR reviews @timocov! 🚀
🕺 thank you @JoshuaKGoldberg |
@timocov, is it expected that this complains about types like |
Hey @buu700, I don't think that it was intended and I don't think that |
Whoops, sorry about the duplicate report, but thanks for the link! |
Yup, this was an error on my end for not noticing in review. Updated the fix PR. It should be in soon |
PR checklist
Overview of change:
Added new rule
no-invalid-void
which fails on every "invalid" usage of thevoid
type.CHANGELOG.md entry:
[new-rule]
no-invalid-void