npm install eslint global 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: npm eslint
npm install eslint-plugin-react-hooks --save-dev