prettier-plugin-motoko icon indicating copy to clipboard operation
prettier-plugin-motoko copied to clipboard

Any way to configure these?

Open ZenVoich opened this issue 1 year ago • 2 comments

  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

ZenVoich avatar Feb 02 '24 07:02 ZenVoich

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.

rvanasa avatar Feb 02 '24 17:02 rvanasa