How to introduce a code formatter without messing up Git history
We still want to see who and why a line of code was changed after formatting
In all recent JavaScript projects we have used Prettier as an opinionated code formatter. Prettier is in fact opinionated as it only supports few customization options by design. Here is a quote from the documentation which…