It\'s giving me the error \"Bad line breaking before \',\'\" because I have code like the following
var one = 1
, two = 2
, three = 3
;
I
laxbreak = true
is the option to set.
You can find the option on the main page of JSHint site as "About unsafe line breaks".
As mentioned in the comments of the laxbreak
answer, laxcomma
option should actually be used for this particular situation (it has been implemented in the meantime). See http://jshint.com/docs/options/ for details.