-
-
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
feat(typescript-estree): add maximumDefaultProjectFileMatchCount and wide allowDefaultProjectForFiles glob restrictions #8925
Conversation
Thanks for the PR, @JoshuaKGoldberg! 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. |
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.
Aside: filed #8926 to reduce the scale of this kind of huge FAQs list.
@@ -499,6 +533,6 @@ If you think you're having issues with performance, see our [Performance Trouble | |||
|
|||
## Are TypeScript project references supported? | |||
|
|||
No, TypeScript project references are not yet supported. | |||
Yes, but only with [`EXPERIMENTAL_useProjectService`](../packages/Parser.mdx#experimental_useprojectservice). |
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.
Aside: we'll definitely want more explanation here 😄 but quickly noted this in the meantime. Once this & a few more v8 milestone PRs are in, #7350 tracks a full blog post / explainer / revamp.
Is this meant to impact situations where From my understanding the project service should be loading the closest |
Hmm, every single file hitting this does sound like a bug. I'd appreciate an issue - yes please! |
Will do, thanks. I haven't managed to reproduce this outside of one specific large & complex monorepo, so I'll see if I can narrow it down to reproduce. |
I'm also seeing this match every file when linting a directory containing a project config, even after setting |
Here's a simple reproduction:
You should see something like this:
|
Having the same issue with Setting |
Heyall, per our PR contributing guide please don't post on resolved PRs. The comments tend to get lost and this isn't an effective way to discuss issues. Please file a new issue with the appropriate template if you've got something to report that hasn't yet been reported. #9032 tracks the general case of this error. Nobody's investigated to see what the actual issue is (if you have time, please do!). That would be the issue to subscribe to for updates. If you've got any new information to add such as investigation results or a new kind of reproduction, please add it there. Saying "I also have this issue!" doesn't give us any information and just gives an unnecessary notification to everyone in the thread.
Thanks for trying out the new project service though! Very exciting to see folks using it & giving feedback. Even if it's a bug on our end. 😄 ❤️ |
PR Checklist
parserOptions.useProjectService.allowDefaultProjectForFiles
#8923Overview
Adds the two safety checks for
allowDefaultProjectForFiles
as suggested in the issue:maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING
option with a default value of8
allowDefaultProjectForFiles
doesn't include**
./*.*s
, as that's what I'd expect to be convenient & reasonable alongside the count maximumAdds an FAQs blog post to explain them.
💖