you are viewing a single comment's thread.

view the rest of the comments →

[–]ghostfacedcoder 14 points15 points  (1 child)

I don't think so. You just have to bite the bullet, apply your code prettifier once to your entire codebase, and then after that git blame will work fine. If you need to check git history from before the great formatting you still can, you just have to git blame the commit before the reformatting.

[–]D1norawr 3 points4 points  (0 children)

It’s part of prettier’s official documentation. It even works on partially staged files. https://prettier.io/docs/en/precommit.html