Use this rule to control the number of spaces before and after commas (,).
Examples
With max-spaces-before = 0
the following code snippet would PASS:
strange var:
[10, 20, 30, {x: 1, y: 2}]
the following code snippet would FAIL:
strange var:
[10, 20 , 30, {x: 1, y: 2}]
With max-spaces-before = 2
the following code snippet would PASS:
strange var:
[10,
20 , 30
, {x: 1, y: 2}]
With min-spaces-after = 1 and max-spaces-after = 1
the following code snippet would PASS:
strange var:
[10, 20,30, {x: 1, y: 2}]
the following code snippet would FAIL:
strange var:
[10, 20,30, {x: 1, y: 2}]
With min-spaces-after = 1 and max-spaces-after = 3
the following code snippet would PASS:
strange var:
[10, 20, 30, {x: 1, y: 2}]
With min-spaces-after = 0 and max-spaces-after = 1
the following code snippet would PASS:
strange var:
[10, 20,30, {x: 1, y: 2}]