Closed
Description
Sorry for posting this here - I've read all the docs and can't find a solution.
When running eslint via the vue-cli (or directly with npx eslint
) using a junit
output format there seems to be no option to output to a file. Similar to this issue we need to support a -o
parameter.
What doesn't work
In all these cases the output is on stdout
instead of to a file:
vue-cli-service lint --format junit -o output.xml
vue-cli-service lint --format junit --output-file output.xml
npx eslint --format junit -o output.xml
npx eslint --format junit --output-file output.xml
npx eslint --format junit --out output.xml
What sometimes works
Redirecting with >
only works if there are errors reported in XML format. If there are no errors the XML contains plain text and is therefore invalid:
npx eslint --format junit > output.xml
DONE No lint errors found!
Done in 24.30s.
Any help would be much appreciated.
Metadata
Metadata
Assignees
Labels
No labels