Open Suyashtnt opened 2 years ago
I suspect the standardjs
formatter can be adapted to work in this case (by default, most of our formatters will read from stdout
and apply changes to the buffer, so that shouldn't be an issue).
I suspect the
standardjs
formatter can be adapted to work in this case (by default, most of our formatters will read fromstdout
and apply changes to the buffer, so that shouldn't be an issue).
for me it did not for some reason. How can i tell it to do so? Its the only thing holding me back from PRing
You can try enabling debug mode and see what the output looks like.
what
No idea. If you open up a draft PR with what you have so far, I can take a closer look and see if anything jumps out at me.
For reference: #1033 will close this issue and should provide a good base if anybody wants to pick this up.
Issues
Feature description
Add support for the typescript version of
standardjs
,ts-standard
Help
Yes, but I don't know how to start. I would need guidance
Implementation help
~~Could I just copy paste code from the normal
standard
one? They both share the same API Also, how can I write tests?~~done both. PR soon:tm:How can I get the file name when declaring the args?Since the formatted version goes tostdout
, how can I put that into the file its formatting?