https://github.com/kyr/eslint-formatter-gitlab
Variation of `eslint-formatter-junit`, especially for usage in CE Gitlab CI
https://github.com/kyr/eslint-formatter-gitlab
eslint formatter gitlab-ci junit
Last synced: 5 months ago
JSON representation
Variation of `eslint-formatter-junit`, especially for usage in CE Gitlab CI
- Host: GitHub
- URL: https://github.com/kyr/eslint-formatter-gitlab
- Owner: Kyr
- License: bsd-3-clause
- Created: 2019-04-18T10:50:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T11:45:07.000Z (about 5 years ago)
- Last Synced: 2025-02-01T14:12:53.701Z (5 months ago)
- Topics: eslint, formatter, gitlab-ci, junit
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-formatter-gitlab
Variation for `eslint-formatter-junit`, especially for usage in Gitlab CI## Usage
Install from [npm](https://www.npmjs.com/package/@kfed/eslint-formatter-gitlab), as same as other npm package:
```bash
npm install --save-dev @kfed/eslint-formatter-gitlab
```Add to `.gitlab-ci.yml`
```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
```## Approaches
### Very first
Approach for [1 version](/tags/v1.0.2): minor imrove basic eslint junit reporter
### Second
Approach for [second version](/tags/v2.0.0): show report "per file" insetad "per issue"Short report:
Expanded report:
