Closed mcandre closed 11 years ago
Hey, this is pretty awesome! I'm guessing all the 'weird construction' warnings are about the throwaway-constructor syntax that I like to use. JSLint doesn't like it either (which is why I hacked up the JSLint source to do what I want: https://github.com/mde/dotfiles/blob/master/fulljslint.js).
Do you know if JSHint can be configured to understand these inline, throwaway constructors?
Yep, it's the 'supernew' relax-option. Now we're left with only valid problems. Thanks for this!
I applied JSHint to the code to look for potential sources of bugs. Originally,
jshint .
output 516 warnings, but I was able to trim them down to 39 by adapting.jshintrc
to your coding style. Now JSHint outputs:I'm not familiar enough with the code base to resolve these, just thought I should mention. Feel free to tweak
.jshintrc
to cull even more warnings.