jscs-dev/node-jscs

disallowSpaceAfterComma all except sparse arrays does not work as advertised

bcowgill opened this issue · 1 comments

"disallowSpaceAfterComma" {"allExcept": ["sparseArrays"]},

// Valid for mode {"allExcept": ["sparseArrays"]}
[const1,const2, , ,const3];

// Invalid for mode {"allExcept": ["sparseArrays"]}
[const1, const2, , , const3];

Both examples from the documentation appear to be valid

Can't repro [const1, const2, , , const3]; shows errors as expected, we also have tests which proves it -

expect(checker.checkString('[a, , ,b,c]')).to.have.error.count.equal(2);