@seahorsepip/eslint-formatter-gitlab

Variation of included in eslint junit formatter, especially for usage in CE Gitlab CI

Usage no npm install needed!

<script type="module">
  import seahorsepipEslintFormatterGitlab from 'https://cdn.skypack.dev/@seahorsepip/eslint-formatter-gitlab';
</script>

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 image

Second

Approach for second version: show report "per file" insetad "per issue"

Short report: image

Expanded report: image