install eslint in your project code example
Example 1: eslint npm install
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
Example 2: how to run eslint on the whole project
# cd to your root project folder
eslint "./**" --fix
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
# cd to your root project folder
eslint "./**" --fix