You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have an option to write the eslint report to file in the format specified by formatter.
I want to have Jenkins pick it up and process it (in checkstyle format).
For console output the amount of warnings and errors is enough for me (not an issue, I'm not picky about this).
The text was updated successfully, but these errors were encountered:
There are so many ways this could be implemented that I'm unsure of what to do in a PR...
A lazy way to implement this would be to allow overriding the whole reporting logic:
varoptions={// Replaces reporting logic.reporter: function(p,opts,report){// Only contextName, timeout, and slow are used before this function is called.// hmm, maybe fallback to the original reporter if a specific value is returned?}}
Another way would be to allow multiple formatters and introduce formatter options:
varoptions={formatter: [// Default report to console.'stylish',// Always output to file.{formatter: 'checkstyle',file: 'lint-report.xml',always: true}]}
And many other alternatives... I don't know what kind of style you're aiming for so no idea what would be appropriate.
I'd like to have an option to write the eslint report to file in the format specified by
formatter
.I want to have Jenkins pick it up and process it (in checkstyle format).
For console output the amount of warnings and errors is enough for me (not an issue, I'm not picky about this).
The text was updated successfully, but these errors were encountered: