Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSLint's 'Tolerate Stupidity'

Anyone know what JSLint's 'Tolerate Stupidity' option is all about? What family of warnings does it disable?

I've found some reference to Node.js and "Sync" methods (including Crockford's comment that "it is very well named") but no clear answer.

thanks.

like image 331
biril Avatar asked Apr 29 '12 20:04

biril


1 Answers

According to the documentation, it does this:

true if blocking ('...Sync') methods can be used.

Evidently Node Sync methods are blocking, and Crockford hates blocking operations in JS.

Note: There's a lot of stuff JSLint is picky about that may be more a matter of taste than a matter of code quality. Crockford is known to be rather opinionated about certain conventions and doesn't distinguish these in JSLint from actually harmful code. That's why there's tools like JSHint which tend to be more forgiving of these matters of taste.

like image 78
eyelidlessness Avatar answered Oct 18 '22 13:10

eyelidlessness