Closed sancelot closed 1 year ago
I faced the same issue. The current workaround I found is to remove yarn prettier:check
from .husky/pre-commit
. Because that script fails for some reason
The problem is newline character disagreement. The prettier check doesn't understand whether or not your repo is configured to check in files in the newline format of the origin repo. I was able to run the "prettier:write", attempt to add the files to my commit, and then git figured out the newlines matched correctly, so they don't actually get added to the commit. With them sitting in my working tree with the newlines that prettier expects now, the prettier check passes.
Should be resolved by https://github.com/three-types/three-ts-types/pull/338.
yarn version 1.22.15
Problem description:
I added myself to contributors and when I want to commit, it fails with next message
Suggested solution:
I tried adding .gitattributes refs https://github.com/prettier/prettier/issues/7825 , but it has not helped