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

Option to only run when .prettierrc file exists #16

Open
KidkArolis opened this issue Oct 3, 2018 · 3 comments
Open

Option to only run when .prettierrc file exists #16

KidkArolis opened this issue Oct 3, 2018 · 3 comments

Comments

@KidkArolis
Copy link

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.

@eddiemonge
Copy link

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)

@mesqueeb
Copy link

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.

@KidkArolis
Copy link
Author

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.

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

3 participants