EDIT: I don't want to put opening curly brackets on a separate line, in general. I simply want to do so in this case where two opening brackets are on the same line. ESLint does it correctly but Beautify does not, but ESLint is only for inline Javascript.
I'm using the Beautify extension in VSCode to try to format this chunk of inline javascript as follows:
const dogs = [
{
name: 'Snickers',
age: 2,
},
{
name: 'Hugo',
age: 2,
},
{
name: 'Sunny',
age: 2,
},
];
Instead, it does this:
const dogs = [{
name: 'Snickers',
age: 2,
},
{
name: 'Hugo',
age: 2,
},
{
name: 'Sunny',
age: 2,
},
];
As you can see, it puts the opening square and curly brackets on the same line. Is there a rule (in .jsbeautifyrc) to force the desired behavior or is this a bug in js-beautify?