Charles
Charles

Reputation: 11778

How to ignore all warnings with jshint?

Is it possible to ignore all warnings with jshint without making such a config file:

{
        ...
    "-W039": false
    "-W040": false
    "-W041": false
    "-W042": false
        ...
}

Upvotes: 4

Views: 2684

Answers (1)

Nate
Nate

Reputation: 531

During development or debugging it can be useful to suppress everything or a part of the file.

Wrap whichever code block you want to ignore in:

/* jshint ignore:start */
<code here>
/* jshint ignore:end */

Don't forget to remove this pre production though!

Upvotes: 2

Related Questions