Closed jtakalai closed 4 years ago
This is a minimal example, anything even slightly more complicated, the garbage really gets super hairy :)
Hmm, I think I get the reason for second error, it wants to add new-line to the end. Which is fine, but is this meant to be used from command-line, or somehow together with VSCode or similar IDE?
Hi @jtakalai
The only thing this plugin does is running prettier on a file and comparing the formatted output with the current file. This means that the errors are not very readable. It's more a way of letting you know that you are deviating from prettier (as you say, it's more useful inside an editor).
This is exactly the same thing that eslint-plugin-prettier
does btw (I just stole the idea).
Ok, thank you. I probably should get my VSCode prettier-plugin-solidity working properly :)
I think there are instructions for doing that in the prettier-plugin-solidity repo. If they are not enough, please let us know!
Reproduction:
npm ci && npm start
Expected: Something like one error with
Replace " lol" with "256 lol"
or similarActual:
Seems maybe some output format has changed in prettier-solidity?