Skip to content

Bug: Can't find tsconfig.json with project: true and imported config #11429

@dgerhardt

Description

@dgerhardt

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 using a config which extends another config and the base config uses project: true, ESLint fails with a parsing error.

Error: 0:0 error Parsing error: project was set to true but couldn't find any tsconfig.json relative to '[...]/eslint-extend-config-project-true-bug-repro/src/main.ts' within 'file:///[...]/eslint-extend-config-project-true-bug-repro'

This issue did not occur before version 8.37.0.

Reproduction Repository Link

https://github.com/dgerhardt/eslint-extend-config-project-true-bug-repro

Repro Steps

  1. clone the repo
  2. yarn install
  3. yarn eslint
  4. yarn eslint-ci[1-3] # fails

Versions

package version
typescript-eslint 8.38.0
TypeScript 5.8.3
ESLint 9.32.0
node 22.17.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions