Skip to content

Documentation conflicts with object-property-newline setting? #2007

Open
@jabacchetta

Description

@jabacchetta

It seems like the documentation consistently promotes having a new line for each item in multiline lists, whether it be in a function invocation or in an array (both of which mention bad examples of not having each item on a new line).

And even the object examples (although not referring to this specific rule) seem to favor this approach.

With that said, what is the reasoning behind allowing object properties to all appear on the same line?

It would seem more consistent to remove that option for object-property-newline. But at the very least, the reasoning and/or use case should probably be documented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions