How it works...

The linter validation is essential for any project. Sometimes, this is a topic of discussion because most developers do not like to follow standards, but once everyone gets familiar with this style guide everything is more comfortable, and you will deliver better quality code.

So far, we know how to run the linter validation in our Terminal, but you can also add the ESLint validator to your IDE (Atom and VSC). For this example, we are going to use Atom.

Installing Atom plugins

In Atom (on a Mac) you can go to Preferences | +Install, and then you can find the Atom plugins. I'll give you a list of the plugins I use to improve my IDE and increase my productivity:

  • linter-eslint: Lint JS on the fly, using ESLint
  • editorconfig

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.