This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
certain formatters return \n
when there are no errors
#4244
Labels
\n
when there are no errors
#4244
Bug Report
Actual behavior
When using the API
Ex:
Sometimes it will return
\n
when no having an failures, or the failures have been fixed. This applies almost to all formatters.See: https://github.com/palantir/tslint/blob/master/src/formatters/proseFormatter.ts#L34 and
https://github.com/palantir/tslint/blob/master/src/formatters/proseFormatter.ts#L62
Expected behavior
I'd like that this return an empty string so we can test easily for a falsy value and don't emit anything to the console.
I'll happily do a PR to fix these issues, if you agree.
The text was updated successfully, but these errors were encountered: