Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I have searched for related issues and found none that match my proposal.
- I have searched the current rule list and found no rules that match my proposal.
- I have read the FAQ and my problem is not listed.
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.
💖