Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bug:tsconfig.json not respected in new files when multiple tsconfigs include the same directory withprojectService enabled #8835

Open
Labels
bugSomething isn't workingevaluating community engagementwe're looking for community engagement on this issue to show that this problem is widely important
@fire332

Description

@fire332

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.

Possibly related:#8206#7435

Reproduction Repository Link

https://github.com/fire332/typescript-eslint-bug-repro/

Repro Steps

  1. clone the repo
  2. pnpm install
  3. open project in VSCode with the ESLint extension installed
  4. IMPORTANT: open.prettierrc.js oreslint.config.js and wait for ESLint to initialize
  5. create a new.ts file in./src or./src-alt
  6. problems reported will show:
This rule requires the `strictNullChecks` compiler option to be turned on to function correctly. eslint(@typescript-eslint/no-unnecessary-condition)
  1. runDeveloper: Reload Window from the command palette
  2. check the file you created and note there's no problems reported
  3. rename the file and note that the same problem will be reported again

Versions

packageversion
typescript-eslint7.5.0
TypeScript5.4.3
ESLint8.57.0
node>=20.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingevaluating community engagementwe're looking for community engagement on this issue to show that this problem is widely important

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp