Setup Prettier

In this guide, we are integrating the prettier formatter in our projects. We can break it down to the following steps: Installation Run as Git hook VSCode integration Installation Instead of using npx we will install prettier locally, because we want to lock down the version of prettier and it will be faster to execute each time. npm install --save-dev --save-exact prettier@v3 Prettier ships with a set of sensible defaults, but if we want to override any of them, here’s what to do:...

June 1, 2023 · 3 min