user8271158
user8271158

Reputation:

eslint - disable error notification

I'm coding with brackets and I have eslint installed. Eslint keeps telling me that some functions and var's are defined but never used. I think it is because I'm using an external js file which I linked to my html document. My question is how can I disable this error, or tell eslint to not inform me of this error?

Upvotes: 1

Views: 1450

Answers (1)

Andrii
Andrii

Reputation: 329

There are several ways to achieve this. You can disable it inline, by pasting this line in your source:

/*eslint-disable no-unused-vars*/

or if you're using .eslintrc file, you can add this to your rules block:

"no-unused-vars": ["off", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }]

Upvotes: 1

Related Questions