When using PyCharm, I need to make ESLint working alright. When I run yarn run eslint
, I got
Error: Failed to load parser 'babel-eslint' declared in '.eslintrc.yml': Your application tried to access babel-eslint, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Then I need to make sure I have run npm install
before to make sure all the folders I need under node_modules
have been generated(including the missed babel-eslint
).
Then I can run npm run eslint
now.