Variation for eslint-formatter-junit
, especially for usage in Gitlab CI
Install from npm, as same as other npm package:
npm install --save-dev @kfed/eslint-formatter-gitlab
Add to .gitlab-ci.yml
test:lint:
stage: test
script:
- time npm install --prefer-offline --no-optional --silent
- npm run lint --silent -- --no-color --quiet --format @kfed/gitlab --output-file ./lint.junit.xml
artifacts:
reports:
junit: ./lint.junit.xml
Approach for 1 version: minor imrove basic eslint junit reporter
Approach for second version: show report "per file" insetad "per issue"