Sources: https://eslint.org/docs/user-guide/configuring
ESLint is an open source project originally created by Nicholas C. Zakas in June 2013. Its goal is to provide a pluggable linting utility for JavaScript.
To use :
In npm project directory:
npm install eslint --save-dev #This will install eslint for current project only. not recommended
or,
npm install eslint -g #This will install eslint for all project. although project level configuration will be required.
Then Configure,
npm install eslint eslint-config-standard -g # This configures eslint for basic usage.
npm install eslint-config-google -g. #This will configure eslint in best way as per google standards. (Highly Recommended).