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

Rule sortKeys breaks type format when declared before an object #452

Open
luisfmsouza opened this issue Jul 17, 2020 · 0 comments
Open

Rule sortKeys breaks type format when declared before an object #452

luisfmsouza opened this issue Jul 17, 2020 · 0 comments

Comments

@luisfmsouza
Copy link

When eslint-plugin-flowtype try to format the following code:

type FooType = {|
  c: number,
  b: number,
  a: number
|}

const Dummy = {
  a: true
}

It generates the following result:

type FooType = {|
  a: number
|}

const Dummy,
  b: number,
  a: number
|}

const Dummy = {
  a: true
}

I created a branch with this broken scenario.

@luisfmsouza luisfmsouza changed the title Rule sortKeys breaks when declared before an object Rule sortKeys breaks type format declared before an object Jul 17, 2020
@luisfmsouza luisfmsouza changed the title Rule sortKeys breaks type format declared before an object Rule sortKeys breaks type format when declared before an object Jul 17, 2020
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