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
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I haveread the FAQ and my problem is not listed.
Repro
- Windows machine
- Enable case-sensitivity support by
fsutil.exe file SetCaseSensitiveInfo C:\folder\path enable
- Inside case-sensitivity folder create/open project that contains files with uppercased letters
- Run
eslint
Actual Result
Got errors, like this
C:\Users\nflaz\Projects\creevey\creevey\stories\TestViews.stories.tsx 0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.The file does not match your project config: stories\TestViews.stories.tsx.The file must be included in at least one of the projects provided
Expected Result
There shouldn't beParsing error: "parserOptions.project"
errors
Additional Info
After many hours of trying to figure out that was happening. I found this piece of code:
constuseCaseSensitiveFileNames= | |
ts.sys!==undefined ?ts.sys.useCaseSensitiveFileNames :true; | |
constcorrectPathCasing=useCaseSensitiveFileNames | |
?(filePath:string):string=>filePath | |
:(filePath:string):string=>filePath.toLowerCase(); |
It seems, like on system-level
useCaseSensitiveFileNames
is false, but my project folder has case sensitivity support. So I tried to setuseCaseSensitiveFileNames
to true and voi la, no moreparserOptions.project
errors.Versions
package | version |
---|---|
@typescript-eslint/typescript-estree | 5.14.0 |
TypeScript | 4.4.3 |
node | 14.19.0 |