Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Prettier and Biome optional peer dependencies #19

Open
silvenon opened this issue Aug 16, 2024 · 0 comments
Open

Make Prettier and Biome optional peer dependencies #19

silvenon opened this issue Aug 16, 2024 · 0 comments

Comments

@silvenon
Copy link

silvenon commented Aug 16, 2024

What do you think of making Prettier and Biome optional dependencies, and conditionally importing whichever one is selected as the formatter? That way people get to install Prettier or Biome version they want, or none.

I've never done this before, but it seems like marking them as optional peer dependencies would be the way to go in that scenario using peerDependenciesMeta. ChatGPT says that npm v7+ supports this, and that only Yarn v1 would print out warnings for unmet peerDependencies, which seems like a small price to pay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant