-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): create no-invalid-void-type
rule
#1847
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
feat(eslint-plugin): create no-invalid-void-type
rule
#1847
Conversation
Thanks for the PR, @G-Rath! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
Codecov Report
@@ Coverage Diff @@
## master #1847 +/- ##
==========================================
+ Coverage 94.36% 94.37% +0.01%
==========================================
Files 166 167 +1
Lines 7608 7629 +21
Branches 2185 2192 +7
==========================================
+ Hits 7179 7200 +21
Misses 183 183
Partials 246 246
|
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.
not a full review, a few quick nitpicks on the doc.
I think we should name it a little bit clearer than the original rule.
no-invalid-void-type
would be better as it:
- shows it's banning something
- shows it only applies to the void type, not the operator.
invalid-void
ruleno-invalid-void-type
rule
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 for the most part.
A few comments.
Co-Authored-By: Brad Zacher <brad.zacher@gmail.com>
Co-Authored-By: Brad Zacher <brad.zacher@gmail.com>
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!
🎉
I think that this might be autofixable by replacing
void
withundefined
, but not enough that I'd be willing to place any bets just yet 😬😂