The issue is resolved for me after installing the following in a row:
npm install eslint-plugin-import eslint-plugin-flowtype eslint-plugin-jsx-a11y eslint-plugin-react
Have you tried installing eslint
locally, like
npm install eslint-plugin-import --save-dev
?
Edit -Solution:
Instead of installing eslint
packages one after another, the problem can be alleviated by
npm install react-scripts
as react-scripts is taking care of webpack
, babel
and eslint
and the dependencies thereof.
This may avoid conflicts, as in your case.