You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 unmetpeerDependencies
, which seems like a small price to pay.The text was updated successfully, but these errors were encountered: