Say I run JSHint on a file. It reports back 83% of the errors. I want 100% of the errors, but by default it says "Too many errors". Running jshint filename.js
, how would I lift this limit and show all of the errors?
In October 2013 jshint added a way to ignore blocks of code like this: // Code here will be linted with JSHint. /* jshint ignore:start */ // Code here will be ignored by JSHint. /* jshint ignore:end */ // Code here will be linted with JSHint.
JSHint is a program that flags suspicious usage in programs written in JavaScript. The core project consists of a library itself as well as a CLI program distributed as a Node module.
see this issue : https://github.com/jshint/jshint/issues/180
from there :
/*jshint maxerr: 10000 */
By default, JSHint will produce 50 warnings before giving up. Unfortunately, there is not an option to turn that off completely. The reason is because on large scripts JSHint would be too slow.
If you want to increase the amount of warnings that JSHint will produce, just edit file .jshintrc and add the option:
{ "maxerr" : 999 }
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