dfinity / prettier-plugin-motoko

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

Any way to configure these? #123

Open ZenVoich opened 7 months ago

ZenVoich commented 7 months ago
  1. Do not insert final newline

    image
  2. Do not wrap function call arguments

    image
  3. Do not remove space between case arg and body with no {} (this looks like a bug)

    image
  4. Do not add space after assert, actor and debug_show when called as a function

    image
image
  1. Do not place else and catch on the same line as closing bracket of prev block

    image
  2. Bug when comment above else (adds extra ;)

    image
rvanasa commented 7 months ago

Thanks for documenting these corner cases. It's going to be some time before I can get around to addressing most of these, but I found a quick fix for (3.) which I'll include in a new release.