Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable ESlint parser error messages in VSCode?

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.

like image 246
user3690467 Avatar asked Mar 11 '16 11:03

user3690467


People also ask

How do I turn off ESLint warnings?

disable warnings eslintUse /* eslint-disable */ to ignore all warnings in a file. You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file.

How do I disable VSCode ESLint server?

How to enable/disable ESLint globally in VS Code-2021: Click Extensions -> Search ESLint -> Right click on ESLint to enable and disable it.

How do I change VSCode ESLint settings?

Configure VSCode Settings to use ESLint for FormattingClick that tiny icon in the top-right that looks like a piece of paper with a little arrow. The first one turns on ESLint for formatting, and the next 3 make it do the formatting when you hit save. That should do it! Save the settings file and close it, we're done.


2 Answers

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

like image 193
Kushagra Sharma Avatar answered Sep 19 '22 17:09

Kushagra Sharma


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.

like image 41
webpreneur Avatar answered Sep 18 '22 17:09

webpreneur