Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I havesearched for related issues and found none that match my proposal.
- I have searched thecurrent rule list and found no rules that match my proposal.
- I haveread the FAQ and my problem is not listed.
Relevant Package
parser
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Description
I had been using theproject
setting for quite awhile, unaware that there's a newprojectService
setting that's generally recommended in its place. I wonder if there could be some warning to help users discover this - either printed at runtime or via compile time type checking.
We now recommend usingprojectService instead of project for easier configuration and faster linting.
My own experience withprojectService
has been that it is indeed faster. I understand from#8031 that it's not the case for 100% of projects. However, when there is a difference, it looks to be on the order of a few percent. On the other hand, theproject
setting has much more ability for users to create pathological settings that can really harm their performance in a very meaningful way (e.g.#2611)
I also see in#8031 that it says:
Our priority for the next year will be to improve the new Project Service API so that it works in all places the traditional Program API does.
We won't remove the traditional project program behavior unless and until the new Project Service API is able to fully replace it.
I'm not sure if there's a list of differences that exists currently. It may be hard to discover the ways in which differences remain. Deprecating theproject
setting would encourage users to attempt a migration and report any difficulties.
Additional Info
If there is some decision to help more actively push users towardsprojectService
it may be worth clarifying the updated stance in the pending blog post (#8031) and docs. I think in either case, theproject
setting would continue to be supported for awhile. It's really just a question of whether users should more actively be made aware ofprojectService
as an alternative