-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(typescript-estree): don't add in-project files to defaultProjectMatchedFiles #9097
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): don't add in-project files to defaultProjectMatchedFiles #9097
Conversation
…atchedFiles Only add path to defaultProjectMatchedFiles if opened.configFileName is falsy.
Thanks for the PR, @ehoogeveen-medweb! 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. |
Linting is clean locally. From the log, it looks like |
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.
Source code change looks nice and clean! 🙌
Ensure it does not throw for in-project files
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.
@ehoogeveen-medweb @JoshuaKGoldberg Thanks for the PR, review and merge 🙌 I'm trying out the v8 alpha releases, and I didn't see this change in
Would it be possible to get a v8 alpha version published with this change? I tried opening a PR to merge
|
We merged the |
PR Checklist
Overview
Only add path to
defaultProjectMatchedFiles
ifopened.configFileName
is falsy.The fix itself is pretty trivial and existing tests still pass, but I might need some help with adding a new testcase. I tried adapting the existing testcase at
typescript-eslint/packages/typescript-estree/tests/lib/useProgramFromProjectService.test.ts
Line 122 in 77fc366