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
prettier: A change in prettier causes problem in the recommendation of usage with lint-staged #6
Comments
A possible workaround which is not as good as
It requires:
It will prettify even partial staged files correctly and commit them correctly. However it does not allow to see the changes prettier did before the commit happens. |
|
It is solved by the latest
|
By now |
prettier/pretty-quick#14 is fixed - |
Our usage recommendation for prettier-config with lint-staged does not work anymore with prettier 1.15.3.
In 1.15.3 they changed the status code to "0" in any case using the options
--write
and--list-different
together. This leads to the fact that the commit now works despite errors. Another commit must therefore be appended. (discussion)The solution worked perfect before ;-)
I'm unsure what we should do now.
I don't really like these ideas:
git add
to "lint-staged" config--list-different
only will prevent the commit, but won't give us meaningful feedbackAny ideas?
The text was updated successfully, but these errors were encountered: