This release improves JSHint's support for variable hoisting. JSHint now fully understands variable hoisting:
/*jshint undef:true */
function func() {
function innerOne() {
// Before: wrong error.
// Now: knows that innerTwo is defined below.
innerTwo();
}
function innerTwo() {
}
}
We also added a new option, laxcomma
, that allows you to use
comma-first coding style without turning on the laxbreak
option. See
GH-340 for more information.
Thanks to Charlie Robbins.