Closed RebeccaStevens closed 1 year ago
The formatter is just a wrapper around eslint-formatter-pretty
:
This function is called with all of the diagnostics and then just uses the mentioned formatter as output. You can replicate it if needed.
I think unless #75 or something similar lands, it doesn’t make sense to output the formatted diagnostics when using tsd
programmatically (since that would be a breaking change).
I think unless #75 or something similar lands, it doesn’t make sense to output the formatted diagnostics when using
tsd
programmatically (since that would be a breaking change).
Ignore me, I misunderstood the request. You just wanted a way to access the formatter in addition to the diagnostics, correct?
Could you export the formatter so that when running programmatically, we can generate the same formatting output?