JSHint: How do disable the check for unsafe characters for comments?

jpo picture jpo · May 24, 2013 · Viewed 8.3k times · Source

When using "unsafe characters" (e.g. umlauts) in comments I get the following error:

This character may get silently deleted by one or more browsers.

Is there any way to disable this check for comments (globally)?

Answer

Morten Siebuhr picture Morten Siebuhr · Sep 5, 2013

I fixed it in one specific file by adding /* jshint -W100 */ in the top of the file.

To ignore it globally, I guess you have to add it somewhere in .jshintrc (though I don't know where).