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

Related issues

fingermark picture fingermark  ·  3Comments

ikatyang picture ikatyang  ·  3Comments

dmnd picture dmnd  ·  3Comments

poteto picture poteto  ·  3Comments

SimenB picture SimenB  ·  3Comments