As I’m experimenting with Vim/Neovim, I realized how much I rely on Prettier and ESlint for taking care of my JavaScript syntax.

But how can I have that with Vim?

It doesn’t come out of the box.

I found a useful article that walks you through installing it for Vim. It uses the ALE Plugin. ALE offers linting support for many languages, not only JavaScript.

The official documentation for the Vim Setup for Prettier is also worth a look.

For more with Vim and JavaScript you can also head over to JavaScript Playground: Setting up Vim for modern JavaScript Development.