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 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.json
s 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.js
oreslint.config.js
and wait for ESLint to initialize - create a new
.ts
file in./src
or./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 Window
from 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 |