Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.2, 10.0
-
None
-
None
Description
When I try to format JS code which looks like this:
var test = {foo: [{bar: 3}]};var test2 = {foo: [{bar: 3}]};var test3 = {foo: {bar: [4]}};
It will format it like this:
var test = {foo: [{bar: 3}]}; var test2 = {foo: [{bar: 3}]}; var test3 = {foo: {bar: [4]}};
But expected behavior is a well formatted/beautified JS code, which should look like this:
var test = { foo: [ { bar: 3 } ] }; var test2 = { foo: [{ bar: 3 }] }; var test3 = { foo: { bar: [4] } };
Based on the formatting rules.