Answer the question
In order to leave comments, you need to log in
ESLint in create-react-app - how to use it via VSCode?
I'm learning react. Judging by the docs for create-react-app, it includes the config for eslint.
How to use this config via VSCode plugin?
If I don't manually install npm packages of eslint, cogfig and .eslintrc I get an error in VSCode:
[Info - 12:21:21] ESLint server is running.
[Info - 12:21:23] ESLint library loaded from: d:\React\test-project\node_modules\eslint\lib\api.js
[Warn - 12:21:23]
No ESLint configuration (e.g .eslintrc) found for file: d:\React\test-project\src\App.js
File will not be validated. Consider running 'eslint --init' in the workspace folder test-project
Alternatively you can disable ESLint by executing the 'Disable ESLint' command.
$ yarn start
yarn run v1.3.2
$ react-scripts start
Compiled with warnings.
./src/App.js
Line 5: 'test' is assigned a value but never used no-unused-vars
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question