Skip to content

Docs: Clarify option "multiline" for object-curly-newline #11634

@chiawendt

Description

@chiawendt

The problem you want to solve.
The docs for option multiline for object-curly-newline failed to mention that when the contained properties is single line, line breaks are disallowed.

Your take on the correct solution to problem.

- "multiline": true requires line breaks if there are line breaks inside properties or between properties
+ "multiline": true requires line breaks if there are line breaks inside properties or between properties. Otherwise, it disallows line breaks.

The same issue holds for array-bracket-newline.
Are you willing to submit a pull request to implement this change?
Yes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussiondocumentationRelates to ESLint's documentationgood first issueGood for people who haven't worked on ESLint beforehelp wantedThe team would welcome a contribution from the community for this issueruleRelates to ESLint's core rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions