Skip to content

Enhancement: Turn rule-schema-to-typescript-types into a public reusable package #10469

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

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

Relevant Package

rule-schema-to-typescript-types

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

Coming over from eslint/eslint#18912: @fasttime is trying out @typescript-eslint/rule-schema-to-typescript-types on core ESLint rules. Which I think is great - the package has theoretical use outside just typescript-eslint!

The package is marked as private now and so is not published to npm. But I think we should make it public so consumers such as ESLint core can use it.

Additional Info

Per eslint/eslint#18912 (comment), the package does have a few limitations at the moment:

  • It doesn't include comments, which IMO could be useful
  • Some core rules, e.g. logical-assignment-operators, use schemas in a way it doesn't support

If we do make it public, those and other limitations would be good followup issues IMO.

Another thought could be: should we split it out of the typescript-eslint monorepo into its own dedicated repository? IMO that would also be a followup discussion. Having it in this repo is nice. It lets us share infra with the rest of the monorepo's packages, and keep its development & package releases in sync with them.

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestteam assignedA member of the typescript-eslint team should work on this.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions