Photo by James Harrison on Unsplash.

According to Prettier’s documentation, to use Prettier as a rule in ESLint, like most of the projects do, has its downsides:

- You end up with a lot of red squiggly lines in your editor, which gets annoying. Prettier is supposed to make you forget about formatting — and not be in your face about it!

- They are slower than running Prettier directly.

- They’re yet one layer of indirection where things may break.

https://prettier.io/docs/en/integrating-with-linters.html#notes

Prettier was meant to take care of your styling for you.

Now let’s learn how to integrate them the right way.

First of all, you need VSCode, Node.js, and Yarn installed. …

João Vitor

Front-end developer using ReactJS, Next.js and Angular

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