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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy