JSLint’s ‘Tolerate Stupidity’

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 … Read more

Suppress “Expected ‘===’ and instead saw ‘==’.” error in jslint

For those using JSHint, you can turn off this warning by setting the option eqeqeq to false in your JSHint options (usually .jshintrc) “eqeqeq”: false From the documentation: http://jshint.com/docs/options/#eqeqeq Edit: If you want to be a good citizen and fix your code to use the recommended comparison instead of turning the warning off, make sure … Read more

Suppress “mixed spaces and tabs” warning in JSHint / JSLint or alternative service?

It’s not possible to switch off this warning with a flag, and the JSHint maintainer doesn’t want to add a flag for this. However, it is possible to turn off warnings according to their number. In this case, you’d write: /* jshint -W099 */ If you’re using a JSHint configuration file, you can specify this … Read more

JSLint: control comments (selective ignore)

Put /*ignore jslint start*/ before and /*ignore jslint end*/ after the code to be ignored. Ex: function ignore(){ /*ignore jslint start*/ var x; var y; /*ignore jslint end*/ } Or export JsLint settings, define your IgnoreErrorStart/ IgnoreErrorEnd symbols and import. Edit Some folks may confuse this answer with JSHint. In that case, use these: /*jshint … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)