Version check warning breaks parsing output of eslint --format=json
#1060
Labels
awaiting response
Issues waiting for a reply from the OP or another party
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
install a typescript version ahead of what the parser supports and run
eslint --format=json aFileWithErrors.ts | json_pp
Expected Result
successful parse, and pretty printed json
Actual Result
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "=============\n\nWAR...") at /usr/local/bin/json_pp line 51.
Additional Info
The parser is printing the following warning to stdout
This interferes with structured output formats of eslint such as json, which are consumed by other tools.
The actual use case this breaks for me is using the eslint autofixer of https://github.com/dense-analysis/ale .
Suggested solution: change the default log output of the parser to stderr, or configure it to use stderr in the eslint plugin.
Versions
@typescript-eslint/eslint-plugin
2.3.3
@typescript-eslint/parser
2.3.3
TypeScript
3.7.0-beta
ESLint
6.5.1
node
10.13.0
npm
6.4.1
The text was updated successfully, but these errors were encountered: