Description
This package declares prettier
in optionalDependencies
:
component-compiler-utils/package.json
Lines 68 to 70 in 8b0da74
I'm not sure if that was the intention, but when this @vue/component-compiler-utils
is a dependency (or sub-dependency) in a given project, that optionalDependencies
will be installed. And it's kinda pointless and unwanted to install prettier
in my projects where I don't use it, I feel.
I know that I can use npm i --no-optional
but that's a poor solution as nobody remembers to use it.
Also, I understand that it might not be desired to have prettier
in peerDependencies
as then it will trigger a warning when not installed.
Maybe just mention in the documentation that if you want to use prettier you have to add it manually?