Skip to content

Commit

Permalink
Merge branch 'release/0.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed May 31, 2024
2 parents 97a8ae6 + 2cc20af commit df6efc4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## v0.0.1 - 2024-05-31

### Fixed

- Fix exit code on lint error ([315dcd3](https://github.com/studiometa/stylelint-formatter-gitlab/commit/315dcd3))

## v0.0.0 - 2024-05-31

First release 🎉
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/stylelint-formatter-gitlab",
"version": "0.0.0",
"version": "0.0.1",
"description": "A StyleLint formatter for the GitLab Code Quality report",
"main": "src/index.js",
"type": "module",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { writeFileSync } from 'node:fs';
import { exit } from 'node:process';
import stylelint from 'stylelint';
import { getOutputPath, convert, getEnv } from './utils.js';

Expand All @@ -20,5 +21,8 @@ export default function gitlabFormatter(results, returnValue) {

stylelint.formatters[STYLELINT_FORMATTER].then((fallbackFormatter) => {
console.log(fallbackFormatter(results, returnValue));
if (returnValue.errored) {
exit(1);
}
});
}

0 comments on commit df6efc4

Please sign in to comment.