You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatting files that use object 'shorthand' notation will result in weird object spacing.
For instance,
varfoo=0;varobject={
foo,bar: 1,baz: 2};
will format to
varfoo=0;varobject={
foo,bar: 1,baz: 2};
where the 'baz' property (and all further properties) will have one additional level of indent. Commenting out the 'foo' property or not using shorthand will produce expected results, so
Formatting files that use object 'shorthand' notation will result in weird object spacing.
For instance,
will format to
where the 'baz' property (and all further properties) will have one additional level of indent. Commenting out the 'foo' property or not using shorthand will produce expected results, so
Airbnb's style guide for more information
The text was updated successfully, but these errors were encountered: