- ESLint is a modern linting tool for JS development to make your code consistent and bug free.
- Use
npm install eslint --global
to install ESLint globally. - Go to your project in the terminal and run
eslint --init
to initiate and setup linting for your project. - Install and automate your workflow in VSCode using ESLint extension.
To install ESLint, you need Node — version greater or equal to 4.0 — and npm — version greater or equal to 2. Open the terminal and enter npm install eslint --global
. This command will install ESLint globally in your computer.