README
eslint-formatter-gitlab
Variation of included in eslint junit formatter (eslint-formatter-junit
), especially for usage in CE Gitlab CI.
Forked from: https://github.com/Kyr/eslint-formatter-gitlab
Usage
Install from npm, as same as other npm package:
npm install --save-dev @seahorsepip/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 @seahorsepip/gitlab --output-file ./lint.junit.xml
artifacts:
reports:
junit: ./lint.junit.xml
Approaches
Very first
Approach for 1 version: minor improve basic eslint junit reporter
Second
Approach for second version: show report "per file" insetad "per issue"
Short report:
Expanded report: