dfinity / prettier-plugin-motoko

A code formatter for the Motoko smart contract language.
Apache License 2.0
28 stars 1 forks source link

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

Open f0i opened 2 years ago

f0i commented 2 years ago

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

Examples:

rvanasa commented 2 years ago

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