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

Only format on save if config present #82

Closed
einarlove opened this issue Oct 16, 2017 · 2 comments
Closed

Only format on save if config present #82

einarlove opened this issue Oct 16, 2017 · 2 comments

Comments

@einarlove
Copy link

Hi,
Would it be possible to configure jsPrettier to only format on save if it detects a prettier config file—.prettierrc, prettier.config.js, package.json—and disabled if not. Bonus if I could format current file manually regardless.

Maybe the "auto_format_on_save" could take false | true | "config-present"?

@jonlabelle
Copy link
Owner

jonlabelle commented Oct 17, 2017

Seems a bit obscure, though I'm not exactly sure what you're trying to accomplish.

See the Usage section for guidance on the different ways you can manually format the current file, or selection(s).

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants