// The following ...
export const object = { a:1
}
// ... gets fixed to
export const object = { a: 1,
}
In an object with multiple properties :
// The following ...
export const object = { a: 1, b:2
}
// ... gets fixed to
export const object = { a: 1, b: 2 }
I would expect that when starting writing properties inline, both brackets stays inline (as it is the case for object with multiline properties in the example above).
What is supposed to be the correct behavior ? Can it be configured so that it mimics the behavior of object-curly-newline with consistent: true ?
It sounds like a bug. While this is a bit niche, I currently don't have enough bandwidth to investigate on this - pr welcome if anyone wants to give it a try. Thanks.
Describe the bug
In an object with a single property :
In an object with multiple properties :
I would expect that when starting writing properties inline, both brackets stays inline (as it is the case for object with multiline properties in the example above). What is supposed to be the correct behavior ? Can it be configured so that it mimics the behavior of
object-curly-newline
withconsistent: true
?Reproduction
(code in main description)
System Info
Used Package Manager
npm
Validations
Contributions