How can I configure JSHint to ignore this error: Use '!==' to compare with ''.
?
I want that this code pass:
/*jshint undef: false */
if (a == true) {
}
The solution is to install the new version of jshint:
npm install -g https://github.com/jshint/jshint/archive/1.0.0-rc4.tar.gz
Then to use this config:
{
"-W041": false
}
Finally this command
jshint --config jshint.json file.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With