-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
bugSomething isn't workingSomething isn't workingevaluating community engagementwe're looking for community engagement on this issue to show that this problem is widely importantwe're looking for community engagement on this issue to show that this problem is widely important
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 have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Issue Description
When EXPERIMENTAL_useProjectService: true
and at least two tsconfig.json
s include a non-empty common directory, typescript-eslint will not respect tsconfig.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 |
karlhorky, roman-petrov, juicyjusung, dboune, maxpatiiuk and 1 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingevaluating community engagementwe're looking for community engagement on this issue to show that this problem is widely importantwe're looking for community engagement on this issue to show that this problem is widely important