-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(utils): extract isNotTokenOfTypeWithConditions
out of ast-utils
' predicates
#4502
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
Thanks for the PR, @MichaelDeBoey! 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. |
❌ Deploy Preview for typescript-eslint failed. 🔨 Explore the source changes: 19be9df 🔍 Inspect the deploy log: https://app.netlify.com/sites/typescript-eslint/deploys/6216d0a143dfc200073fda69 |
>) => | ||
( | ||
token, | ||
): token is Exclude< |
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.
Unfortunately, linting obliges me to add this type a second time 😢
Codecov Report
@@ Coverage Diff @@
## main #4502 +/- ##
==========================================
- Coverage 94.62% 92.19% -2.44%
==========================================
Files 149 204 +55
Lines 8072 8863 +791
Branches 2581 2752 +171
==========================================
+ Hits 7638 8171 +533
- Misses 239 483 +244
- Partials 195 209 +14
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e66f704
to
2b78b3c
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.
❤️🔥
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.
Ah, actually, codecov is right - could you make sure these are unit tested please?
At least isNotOptionalChainPunctuator
is duplicated in user code.
…ls`' `predicates`
4dc75d3
to
19be9df
Compare
@JoshuaKGoldberg The other helper functions also don't have any tests, so I think this is good to go as is? |
Hmm, I suppose so. It would be nice to have them be unit tested directly but I guess if none of them are we can have that as a followup issue. 🤷 |
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.
✅
This is the negative version of what I did in #3977