Skip to content

Add wrapping configuration for comparison operators #678

@One-Nose

Description

@One-Nose

Describe the Feature

There is no way to configure wrapping for comparison operators, to allow prettier long if conditions. I have this code:

if (this.actionsByPriority.indexOf(action) < this.actionsByPriority.indexOf(availableAction) {}

Desired output

if (
    this.actionsByPriority.indexOf(action) <
    this.actionsByPriority.indexOf(availableAction)
) {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwrappingIncorrect or undesirable wrapping

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions