Content-Length: 265237 | pFad | https://github.com/typescript-eslint/typescript-eslint/issues/11413

B0 Bug: `project: true` doesn't permit trailing pathsep in `tsconfigRootDir` · Issue #11413 · typescript-eslint/typescript-eslint · GitHub
Skip to content

Bug: project: true doesn't permit trailing pathsep in tsconfigRootDir #11413

@kirkwaiblinger

Description

@kirkwaiblinger

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

I expect that project: true should search for tsconfig.json files in the tsconfigRootDir, even if it's written with a trailing slash.

Reproduction Repository Link

https://github.com/kirkwaiblinger/typescript-eslint-project-true-trailing-pathsep

Repro Steps

  1. clone the repo
  2. npm i
  3. npm run lint

Versions

{
  "eslint": "9.31.0",
  "typescript": "5.8.3",
  "typescript-eslint": "8.37.0"
}

Additional Info

See #11407 and #11398 (comment)

Likely, this doesn't have a huge user impact, because __dirname and import.meta.dirname don't include the trailing path sep, but we managed to cause bugs for ourselves when programmatically inferring tsconfigRootDir!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageWaiting for team members to take a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/typescript-eslint/typescript-eslint/issues/11413

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy