Closed
Description
I haven't really characterised this fully, but it seems that a trailing comma in an array literal can mess up subsequent block indentation. Using the latest commit on develop (ea58033), it indents the following code like so:
var whatever = [
'an item',
'note the trailing comma',
].map(() => {
anythingHere();
});
If you remove the trailing comma, you get this:
var whatever = [
'an item',
'note the LACK of a trailing comma'
].map(() => {
anythingHere();
});
which is how I'd expect the code to indented.
Metadata
Metadata
Assignees
Labels
No labels