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

There should be a space between comment marker and comment #58

Open
Tracked by #3921
f0i opened this issue Oct 3, 2022 · 1 comment
Open
Tracked by #3921

There should be a space between comment marker and comment #58

f0i opened this issue Oct 3, 2022 · 1 comment

Comments

@f0i
Copy link

f0i commented Oct 3, 2022

After a comment marker (//) at least one space should be inserted to improve readability.
Additional spaces should be preserved.

Examples:

  • //some comment would be formatted as // some comment

// module {
//   asdf;
//}

would be formatted as

// module {          <- keep one space
//   asdf;           <- keep multiple spaces
// }                 <- add one space
@rvanasa
Copy link
Contributor

rvanasa commented Oct 3, 2022

Great suggestion! I'm currently trying to maintain consistency with the Prettier ecosystem (prettier/prettier#5755), although it seems totally reasonable to have this as an optional feature.

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

2 participants