npm eslint code example
Example 1: eslint npm install
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
Example 2: npm eslint
npm install eslint-plugin-react-hooks --save-dev
$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
npm install eslint-plugin-react-hooks --save-dev