-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(typescript-estree): correct TSImportType
property name when assert
#11115
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
fix(typescript-estree): correct TSImportType
property name when assert
#11115
Conversation
Thanks for the PR, @overlookmotel! 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. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
View your CI Pipeline Execution ↗ for commit 5de0989.
☁️ Nx Cloud last updated this comment at |
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #11115 +/- ##
==========================================
- Coverage 90.90% 90.89% -0.02%
==========================================
Files 498 498
Lines 50655 50663 +8
Branches 8335 8335
==========================================
Hits 46049 46049
- Misses 4591 4599 +8
Partials 15 15
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Could someone please advise on how to fix the |
#6701 🫠. This PR is fine, it's the test coverage reporting that's wrong. You can ignore codecov. That's what I'd do (along with an exasperated sigh). If you want to be awesome and go the extra mile, you could try to fix #6701. 😄 |
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.
...s/ast-spec/src/type/TSImportType/fixtures/type-import-type-with-import-attributes/fixture.ts
Outdated
Show resolved
Hide resolved
I aspire to being awesome, but I'm sorry to say I wouldn't have a clue how to do that! |
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 - great work!
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.
🙌
TSImportType
property name when assert
TSImportType
property name when assert
PR Checklist
TSImportType
'soption
object always has keywith
#11114Overview
I guess
token.getText()
is the best API to use to obtain the property name, but I'm unfamiliar with bothtypescript-eslint
and TypeScript compiler, so I may well be on the wrong track. Ditto I think I've put the test in the right place.If any changes required (or if I've gone about this in completely the wrong way), please do let me know.