Skip to content

Feature request: keep trailing commas and maintain line placement of spread objects #12

@MarkPare

Description

@MarkPare

Thanks for the great extension! Here are a couple of feature requests. Curious about feasibility and would happily contribute to get these in!

I think the trailing commas one is self-explanatory. Would be great if this was configurable.

For the line placement of spread objects, my issue is that

const myObject = {
  key1: {
    ...someOtherObject,
    a: 1
  }
}

turns into

const myObject = {
  key1: { ...someOtherObject,
    a: 1
  }
}

when ideally it would stay the same, with the spread object on its own line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions