-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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(type-utils): treat custom type roots as external #6870
fix(type-utils): treat custom type roots as external #6870
Conversation
Thanks for the PR, @RebeccaStevens! 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. |
Adding a test for this would probably be quite convoluted, right? |
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.
Yip, similar to the other one, seems reasonable but let's test 👍
72a70f3
to
58728a8
Compare
58728a8
to
5ff6ac0
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.
@@ -30,4 +30,15 @@ declare module 'typescript' { | |||
*/ | |||
intrinsicName?: string; | |||
} | |||
|
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.
Adding our own type declarations for the internal sourceFileToPackageName
seems fishy to me, but that's a decision the maintainers need to do.
I presume you are aware of #6861 - however, there has been no response in the corresponding TS 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.
Yeah for now I think it's fine. If they change that API we should see breakages in the TS version upgrade PR.
@RebeccaStevens I'm hoping to get through the last bits of v6 work today since we're set to launch on Monday. I think that'll just entail merging |
Hmm, yeah, these unit tests are tough. I ran out of time tonight. Will try again tomorrow. |
😕 I can't figure this out. 9b49480 shows a unit test that I would think should populate To repro:
|
Yeah, I gave up on the test too. I came to the conclusion that internal test API thingy isn't setup to do these sort of tests. I didn't want to open that can of worms of editing that. If I remember right, local tests I tried using a separate repo passed. I can't really turn those into unit test though. |
This was unintentionally auto-closed when we merged the |
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.
PR Checklist
typeMatchesSpecifier
PackageSpecifier
should match custom type roots #6868Overview