Re: JSLint: Unexpected Space Errors Question
- --- In firstname.lastname@example.org, "speedomodel@..." <speedomodel@...> wrote:
>I never imagined that someone would insert a line break before a comma. But I agree that "Tolerate sloppy" should allow it. It does now.
> JSLint produces "Unexpected space" errors for the following:
> var myArray = [ 1
> , 2
> , 3
> Shouldn't having "Tolerate sloppy line breaking" on allow
> for this? Maybe it's poor style on my part, but I typically
> code long lists with a comma on the next line for
> readability. Thanks.