create-capacitor-plugin
create-capacitor-plugin copied to clipboard
Pretty prettier error
We got few people wanting to do PR in our plugin and cannot understand why lint failed; we found out it came from prettier not reporting errors properly. I tried to find a way to report better, but it's a long due problem in Prettier. You can see here: https://github.com/prettier/prettier/issues/6885 and in https://github.com/prettier/prettier/pull/12598
To improve the situation, I made
https://github.com/Cap-go/prettier-pretty-check
a simple tool calling prettier with --list-different option instead of ``-check` and use diff to make the error human readable.
Before:
after: