Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
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
typescript-estree
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
Right now, if you enable typed linting on an "out-of-project" file not listed inprojectService.allowDefaultProject
, you get this error:
0:0 error Parsing error: path/to/repo/eslint.config.mjs was not found by the project service. Consider either including itin the tsconfig.json or including itin allowDefaultProject
...but what if you tried to enable it inallowDefaultProject
and just mistyped? E.g. typing*.js
instead of*.mjs
for youreslint.config.mjs
?
It'd be nice if we gave an explicit"these are your patterns, none matched". Maybe...
0:0 error Parsing error: path/to/repo/eslint.config.mjs was not found by the project service. Consider either including itin the tsconfig.json or including itin allowDefaultProject. allowDefaultProject isset to ["*.js"], which does not match'eslint.config.mjs'.
Additional Info
I have personally made this mistake a bunch of times, and I co-authored the feature 😂. So I think this'd be valuable.
💖