Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MarkPare opened this issue Jun 27, 2021 · 0 comments

Comments

@MarkPare
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant