-
Notifications
You must be signed in to change notification settings - Fork 62
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
Auto-format only if Prettier Config Found #101
Comments
Yeah, looks pretty similar, but I didn't understand why "disabling autoformat if a prettier config isn't found" solves the problem with @dliuzzi's old files. So I thought maybe we were talking about different things. |
See #96 |
@jonlabelle there are some problems too if this is not implemented: Users who have |
Maybe we could have an option for ignoring 'command not found' errors? :) I'm just trying to ignore that horrible message for every save, without disabling autoformat, or adding ignore paths for every project in the settings. |
Why not just install prettier globally? When applicable, your local prettier will always resolve first. |
If I install prettier globally, JsPrettier formats the file on projects where I don't want to (the reason of this issue), which is much worse than the error popup. |
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. |
It would be great to have an option to only enable autoformat when a .prettierrc is defined on the root of the project.
I use Sublime Text with a lot of projects and many of them don't use Prettier, so currently every time I switch between projects I have to go to the settings file to disable/enable autoformat. Example:
Prettier version:
1.10.2
Platform Details:
Sublime Text 3 Build 3126, Linux.
The text was updated successfully, but these errors were encountered: