Prettier: Some consistency between object & array spacing?

Created on 24 Jul 2017  路  3Comments  路  Source: prettier/prettier

It bothers me that objects have internal spacing when arrays don't!

var x = { a: 10 };
var y = [1, 2, 3];
locked-due-to-inactivity

Most helpful comment

Just curious, is there any rationale behind this different behaviour?

I can only see incosistency...

All 3 comments

At this point we're not going to change this, sorry about it!

@zyklus See the bracket-spacing option.

Just curious, is there any rationale behind this different behaviour?

I can only see incosistency...

Was this page helpful?
0 / 5 - 0 ratings