Skip to content

Enhancement: Support ${configDir} in tsconfig.json #8992

@silverwind

Description

@silverwind

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

typescript-eslint

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

microsoft/TypeScript#57485 added support for ${configDir} in options like include and exclude, but it appears typescript-eslint does not support this yet.

When I try to set include: ['${configDir}/**/*'] in tsconfig.json, typescript-eslint errors immediately as it can no longer finding any files to lint.

Additional Info

Reproduction: https://stackblitz.com/edit/vitejs-vite-qhvz8p?file=package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.working as intendedIssues that are closed as they are working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions