eslint versions code example
Example 1: eslint npm install
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
Example 2: eslint use esversion 6
/*jshint esversion: 6 */
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
/*jshint esversion: 6 */