close

[Solved] ESLint not working in VS Code?

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error ESLint not working in VS Code? in javascript. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How ESLint not working in VS Code Error Occurs?

Today I get the following error ESLint not working in VS Code? in javascript.

How To Solve ESLint not working in VS Code Error ?

  1. How To Solve ESLint not working in VS Code Error ?

    To Solve ESLint not working in VS Code Error
    In my case, since I was using TypeScript with React, the fix was simply to tell ESLint to also validate these files. This needs to go in your user settings:
    "eslint.validate": [ "javascript", "javascriptreact", "html", "typescriptreact" ],

  2. ESLint not working in VS Code?

    To Solve ESLint not working in VS Code Error
    In my case, since I was using TypeScript with React, the fix was simply to tell ESLint to also validate these files. This needs to go in your user settings:
    "eslint.validate": [ "javascript", "javascriptreact", "html", "typescriptreact" ],

Solution 1

There are a few reasons that ESLint may not be giving you feedback. ESLint is going to look for your configuration file first in your project and if it can’t find a .eslintrc.json there it will look for a global configuration. Personally, I only install ESLint in each project and create a configuration based off of each project.

The second reason why you aren’t getting feedback is that to get the feedback you have to define your linting rules in the .eslintrc.json. If there are no rules there, or you have no plugins installed then you have to define them.

Solution 2


In my case, since I was using TypeScript with React, the fix was simply to tell ESLint to also validate these files. This needs to go in your user settings:

"eslint.validate": [ "javascript", "javascriptreact", "html", "typescriptreact" ],

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment