@seahorsepip/eslint-formatter-gitlab

2.0.4 • Public • Published

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

Package Sidebar

Install

npm i @seahorsepip/eslint-formatter-gitlab

Weekly Downloads

7,254

Version

2.0.4

License

MIT

Unpacked Size

9.33 kB

Total Files

14

Last publish

Collaborators

  • seahorsepip