chained object array indentation

Hi,

I'm having issues with WebStorm 2017.3. It auto indents with this logic:

const a = [
{b: [
{},
]}
]

But my goal is to work with something like :

const a = [
{b: [
{},
]}
]

Is there any configuration parameter for this? I'm having a hard time to find it.

Thanks

 

0
1 comment

the formatting I get with default preferences is

const a = [
{
b: [
{},
]
}
]

I can't get the object braces placed on same line as array brackets; please vote for https://youtrack.jetbrains.com/issue/WEB-7226 and https://youtrack.jetbrains.com/issue/WEB-7122 to be notified on any progress with thedse tickets

0

Please sign in to leave a comment.