The one potential edge case of this rule that I can see causing a problem:
var matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 0]
]
In this case, does the standard have any recommendations for styling this code?
It's not a problem, standard doesn't raise any errors for this example. This rule was made to prevent some situations when omitting semicolons could cause errors, this isn't one of these situations.
Yep, there's nothing wrong with the code you posted!
Most helpful comment
It's not a problem, standard doesn't raise any errors for this example. This rule was made to prevent some situations when omitting semicolons could cause errors, this isn't one of these situations.