prettier-standard-vscode
prettier-standard-vscode copied to clipboard
Option to only run when .prettierrc file exists
Not all of my projects use prettier/prettier-standard. Ideally this extension would only format on save if .prettierrc file is present. I could try to PR it as a new option if you're open to the idea.
Ideally you are running this on all your code. If not, you can disable it on a per project basis (I think, if not, that should be the option)
I need this as well.
I read somewhere that you can add this to your global VSCode settings:
"prettier.requireConfig": true,
which is what we want, but this doesn't seem to work.
It seems for VSCode, for both the official Esben's prettier plugin, as for the Numso prettier standard plugin, this doesn't work.
Personally, I've since moved to using prettier with the official prettier extension and healthier, which has vscode/sublime extensions.
This way I get my editor to apply prettier only if .prettierrc config is present and I get all the linting done by healthier which uses all standard rules that don't conflict with prettier.