eslint install code example
Example 1: installing eslint globally
npm install -g eslint
Example 2: eslint npm install
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
Example 3: eslint install npm
$ npm install eslint --save-dev
Example 4: running eslint
"lint": "eslint back/*.js && eslint backTest/*.js && eslint front/actions/*.js"