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

Improve Flow enums comments formatting #6857

Closed
gkz opened this issue Nov 6, 2019 · 0 comments · Fixed by #6860
Closed

Improve Flow enums comments formatting #6857

gkz opened this issue Nov 6, 2019 · 0 comments · Fixed by #6860
Labels
area:comments Issues with how Prettier prints comments lang:flow Issues affecting Flow-specific constructs (not general JS issues) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Comments

@gkz
Copy link
Contributor

gkz commented Nov 6, 2019

I need to fix the formatting of comments in Flow enums (added in #6833). Not sure why it isn't working as expected.

Prettier /next/
Playground link

Input:

enum E {
  A = 0,
  // B = 1,
  C = 2
}

Output:

enum E {
// B = 1,
  A = 0,
  C = 2
}

Expected behavior:

enum E {
  A = 0,
  // B = 1,
  C = 2
}
@alexander-akait alexander-akait added area:comments Issues with how Prettier prints comments lang:flow Issues affecting Flow-specific constructs (not general JS issues) labels Nov 6, 2019
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Feb 5, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:comments Issues with how Prettier prints comments lang:flow Issues affecting Flow-specific constructs (not general JS issues) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants