I
I
IcEWaRRiOr2021-06-10 16:11:21
Linter
IcEWaRRiOr, 2021-06-10 16:11:21

How to completely remove ESLint?

Hello, I have such a problem: I started learning React from video tutorials, I installed ESLint (via npm install and in VSCode), but he swears at the teacher’s example, and refuses to run the code with an error in the console:

src/17_api/components/pagination/pagination.jsx
  Line 21:3:  'btsnArr' is not defined  no-undef

src/17_api/containers/news/news.jsx
  Line 97:13:  Expected an assignment or function call and instead saw an expression  no-unused-expressions

Search for the keywords to learn more about each error.


I rechecked the teacher's code and my own - all character for character, removed the linter extension from VSCode, removed the linter via the console with the commands:
npm uninstall -g eslint

npm uninstall eslint --save

npm uninstall eslint --save-dev

npm uninstall eslint-config-prettier

npm remove eslint


The console reported that everything related to the linter was successfully removed, the command
eslint -v
says that the linter is not installed, the command npm listalso shows that the linter is no more, but still, when you run the create-react-app project through npm start
the console and browser, it displays the above linter error "no-undef" and "no-unused-expressions". The only thing that helps is /* eslint-disable */How to completely remove ESLint, please tell me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
ramach05, 2021-06-16
@ramach05

you need to restart VScode after these operations

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question