Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed as not planned
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Issue Description
WhenEXPERIMENTAL_useProjectService: true and at least twotsconfig.jsons include a non-empty common directory, typescript-eslint will not respecttsconfig.json for new/renamed files until ESLint is reloaded.
Reproduction Repository Link
https://github.com/fire332/typescript-eslint-bug-repro/
Repro Steps
- clone the repo
pnpm install- open project in VSCode with the ESLint extension installed
- IMPORTANT: open
.prettierrc.jsoreslint.config.jsand wait for ESLint to initialize - create a new
.tsfile in./srcor./src-alt - problems reported will show:
This rule requires the `strictNullChecks` compiler option to be turned on to function correctly. eslint(@typescript-eslint/no-unnecessary-condition)- run
Developer: Reload Windowfrom the command palette - check the file you created and note there's no problems reported
- rename the file and note that the same problem will be reported again
Versions
| package | version |
|---|---|
typescript-eslint | 7.5.0 |
TypeScript | 5.4.3 |
ESLint | 8.57.0 |
node | >=20.11.1 |