user3690467
user3690467

Reputation: 3387

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.

Upvotes: 68

Views: 124832

Answers (9)

suyashpatil
suyashpatil

Reputation: 329

If you want to disable eslint errors in VSCode, Go to settings.json and disable all rules like this

   "eslint.rules.customizations": [
    {
        "rule": "*",
        "severity": "off"
    }
]

This will disable all the eslint rules for you. If you want to disable a particular rule like "@typescript-eslint/no-this-alias", you can do the following

"eslint.rules.customizations": [
        {
            "rule": "@typescript-eslint/no-this-alias",
            "severity": "off"
        }
    ]

Upvotes: 3

snoob dogg
snoob dogg

Reputation: 2875

I don't understand why some answers states that eslint.enable is depracted. it works for me. in my WorkSpace settings (JSON), I add the following configuration and eslint errors disapears

{
    ...

    "settings": {
        "eslint.enable": false
    },
}

Upvotes: 0

Mahfuzur Rahman
Mahfuzur Rahman

Reputation: 524

Please open settings.json file and edit the configuration as below:

"eslint.enable": false

Hope this helps.

Upvotes: 1

Emeka Orji
Emeka Orji

Reputation: 306

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!

Upvotes: 6

Kushagra Sharma
Kushagra Sharma

Reputation: 1295

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

Upvotes: 84

melMass
melMass

Reputation: 5179

The old:

"eslint.enable": false

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

vscode-screenshot

Upvotes: 35

webpreneur
webpreneur

Reputation: 915

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.

Upvotes: 29

Prakash Nagaraj
Prakash Nagaraj

Reputation: 561

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

Upvotes: 25

Yasin Tazeoglu
Yasin Tazeoglu

Reputation: 1004

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

Upvotes: 3

Related Questions