Skip to content

Enhancement: Include projectService: true in type-checked configs #10507

@kirkwaiblinger

Description

@kirkwaiblinger

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

I propose that a config should be created identical to recommendedTypeChecked (as well as for its *TypeChecked friends) but with projectService: true specified. That way, just as tseslint.configs.recommended enables TS language support in tseslint.configs.recommended[0], the proposed config would enable TS language support with typed linting support that more-or-less works out of the box for Most™️ projects. I think this could significantly reduce the burden on users for setting up typed linting.

I think it would be breaking to modify the existing configs, so we'd have to come up with a name for the projectService: true variant. Maybe tseslint.configs.recommendedPreconfiguredTypeChecked? Idk what a good name would be 🤷‍♂️

Additional Info

Refs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked by external APIBlocked by a tool we depend on exposing an API, such as TypeScript's Type Relationship APIenhancementNew feature or requestpreset config changeProposal for an addition, removal, or general change to a preset config

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions