How to disable ESlint parser error messages in VSCode?

Visual Studio-CodeEslint

Visual Studio-Code Problem Overview


I have ESlint configured with vscode using the plugin, now I'm wondering is there some way I can stop ESlint from showing me the parser/syntax errors, so I can instead view the syntax errors that the Salsa language service provides by default.

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

Update: please refer this updated answer

Open up settings.json and add the property: "eslint.enable": false

Check: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint

Solution 2 - Visual Studio-Code

The old:

"eslint.enable": false

Is deprecated, now you need to use the builtin VSCode mechanism for disabling extensions:

vscode-screenshot

Solution 3 - Visual Studio-Code

In order to disable ESLint only for a specific repo (instead of disabling it globally). Create .vscode folder in your project root and there create a settings.json then add the following config:

{
    "eslint.enable": false
}

Maybe after this setting you should consider adding the .vscode/settings.json line to your .gitignore file too, but it is based on your dev team's preference. }

Additionally if you'd like to ignore only some vendor/3PP .js files only then you should consider creating an .eslintignore file. Read more about this here.

Solution 4 - Visual Studio-Code

go to File => Preferences => Settings

enter image description here

go to Extensions=>ESLint

enter image description here

Uncheck the EsLint:Enable

enter image description here

Solution 5 - Visual Studio-Code

1-) npm install -g eslint
2-) Open up settings.json and add the property: "eslint.enable": false

Solution 6 - Visual Studio-Code

In VSCode, go to

File >> preferences >> settings

Type 'eslint quiet' in the search bar and click the check box for quiet mode.

In quiet mode, eslint would ignore basic errors. This should work for many VSCode users as at March 4, 2022. You're welcome!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser3690467View Question on Stackoverflow
Solution 1 - Visual Studio-CodeKushagra SharmaView Answer on Stackoverflow
Solution 2 - Visual Studio-CodemelMassView Answer on Stackoverflow
Solution 3 - Visual Studio-CodewebpreneurView Answer on Stackoverflow
Solution 4 - Visual Studio-CodePrakash NagarajView Answer on Stackoverflow
Solution 5 - Visual Studio-CodeYasin TazeogluView Answer on Stackoverflow
Solution 6 - Visual Studio-CodeEmeka OrjiView Answer on Stackoverflow