@studiometa/stylelint-formatter-gitlab 0.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +5 -2
- package/package.json +8 -8
- package/src/index.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## v1.0.2 - 2025-05-23
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fix publish action ([57f3fc8](https://github.com/studiometa/stylelint-formatter-gitlab/commit/57f3fc8))
|
|
14
|
+
|
|
15
|
+
## v1.0.1 - 2025-05-23
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fix publish action ([026b8e9](https://github.com/studiometa/stylelint-formatter-gitlab/commit/026b8e9))
|
|
20
|
+
|
|
21
|
+
## v1.0.0 - 2025-05-23
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Update chalk 5.3.0 → 5.4.1 ([928ab9c](https://github.com/studiometa/stylelint-formatter-gitlab/commit/928ab9c))
|
|
26
|
+
|
|
27
|
+
## v0.0.1 - 2024-05-31
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- Fix exit code on lint error ([315dcd3](https://github.com/studiometa/stylelint-formatter-gitlab/commit/315dcd3))
|
|
32
|
+
|
|
9
33
|
## v0.0.0 - 2024-05-31
|
|
10
34
|
|
|
11
35
|
First release 🎉
|
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @studiometa/stylelint-formatter-gitlab
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@studiometa/stylelint-formatter-gitlab/)
|
|
4
|
+
[](https://www.npmjs.com/package/@studiometa/stylelint-formatter-gitlab/)
|
|
5
|
+
[](https://bundlephobia.com/package/@studiometa/stylelint-formatter-gitlab)
|
|
6
|
+
[](https://david-dm.org/studiometa/stylelint-formatter-gitlab)
|
|
4
7
|
|
|
5
8
|
> Format StyleLint errors for Gitlab Code Quality reports.
|
|
6
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiometa/stylelint-formatter-gitlab",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A StyleLint formatter for the GitLab Code Quality report",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/studiometa/stylelint-formatter-gitlab#readme",
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@studiometa/eslint-config": "
|
|
39
|
-
"@studiometa/prettier-config": "
|
|
38
|
+
"@studiometa/eslint-config": "4.2.0",
|
|
39
|
+
"@studiometa/prettier-config": "4.1.0",
|
|
40
40
|
"@studiometa/stylelint-config": "4.0.0",
|
|
41
|
-
"bun": "
|
|
42
|
-
"eslint": "
|
|
43
|
-
"prettier": "
|
|
44
|
-
"stylelint": "16.
|
|
41
|
+
"bun": "1.2.13",
|
|
42
|
+
"eslint": "9.27.0",
|
|
43
|
+
"prettier": "3.5.3",
|
|
44
|
+
"stylelint": "16.19.1"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"chalk": "^5.
|
|
47
|
+
"chalk": "^5.4.1",
|
|
48
48
|
"jest-diff": "^29.7.0",
|
|
49
49
|
"js-yaml": "^4.1.0"
|
|
50
50
|
},
|
package/src/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { writeFileSync } from 'node:fs';
|
|
2
|
+
import { exit } from 'node:process';
|
|
2
3
|
import stylelint from 'stylelint';
|
|
3
4
|
import { getOutputPath, convert, getEnv } from './utils.js';
|
|
4
5
|
|
|
@@ -20,5 +21,8 @@ export default function gitlabFormatter(results, returnValue) {
|
|
|
20
21
|
|
|
21
22
|
stylelint.formatters[STYLELINT_FORMATTER].then((fallbackFormatter) => {
|
|
22
23
|
console.log(fallbackFormatter(results, returnValue));
|
|
24
|
+
if (returnValue.errored) {
|
|
25
|
+
exit(1);
|
|
26
|
+
}
|
|
23
27
|
});
|
|
24
28
|
}
|