Skip to content

RFC: Deprecates @types/prettier and maintains type definitions in prettier/prettier repository #14033

@sosukesuzuki

Description

@sosukesuzuki

Background

Proposal

  1. Moves @types/prettier to https://github.com/prettier/prettier.
  2. Deprecates @types/prettier.

Pros

  • Definitely Typed is a huge repository, so it is slightly hard to fix for us.
  • Easy to synchronize type definitions with Prettier's API implementation.
  • API users do not need to install @types/prettier, need only prettier.
  • Some plugins are implemented in TypeScript, so improving their development experience makes a lot of sense.

Cons

  • Increase the maintenance cost.
  • Increase the npm package size.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiIssues with Prettier's Application Programming Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.type:metaIssues about the status of Prettier, or anything else about Prettier itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions