This is part of a series about NodeJs best practices for your projects. Every project you build will become more maintainable with these practices. They are not everything (we will get there), but they are more than a good start.
This tutorial goes over setting up ESLint. You can check out the official docs right here: https://eslint.org/docs/user-guide/getting-started. The docs are pretty straightforward 😀
Let’s start by creating a new project
mkdir eslit-test cd eslint-test npm init -y
No we will add eslint
npm install eslint --save-dev
And initialize it by
That’s it! Now you can run lint using the command below or by connecting a plugin to your text editor. I use Atom + the Eslint plugin