~~ arrayExpression.trailingCommas: onlyMultiLine, lineWidth: 40 ~~
== should format with trailing commas when multiline ==
const t = [
    5    ,
    6
];

[expect]
const t = [
    5,
    6,
];

== should not format with trailing commas when single line ==
const t = [5    , 6,];

[expect]
const t = [5, 6];

== should print with trailing comma when becoming multi-line due to the line width ==
const t = [other, other, other, otherTest, other];

[expect]
const t = [
    other,
    other,
    other,
    otherTest,
    other,
];
