CodeX
Published in

CodeX

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

Photo by Farzad Nazifi on Unsplash

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…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store