I want requireLeftStickedOperators to check comma (,) for var like array (like in your example x = [1, 2]), but not for that kind of code.
x = [1, 2]
var x = [1, 2]
, y = 32
Is this possible ?
Sorry, i didn't understand your request, perhaps you could provide valid/invalid example?
Closing for now, since owner is not responding
My example is just invalid.
var x = [1, 2], y = 32
In the last example, there is nothing before the comma so it should be skipped (like if there is a \n between the last char & the "LeftStickedOperator".
Okay, seems valid and relevant to disallowCommaBeforeLineBreak rule.
@markelog is this still valid since we kill *sticked?
It is valid i guess, but now for disallowSpaceBeforeBinaryOperators rule, perhaps we should create separate issue for it
Replaced by mdevils#467