@commitlint/format 7.2.0 → 7.2.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +34 -18
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ <a name="7.2.1"></a>
7
+ ## [7.2.1](https://github.com/marionebl/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
8
+
9
+
10
+
11
+
12
+ **Note:** Version bump only for package @commitlint/format
13
+
6
14
  <a name="7.2.0"></a>
7
15
  # [7.2.0](https://github.com/marionebl/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
8
16
 
package/README.md CHANGED
@@ -13,29 +13,44 @@ npm install --save @commitlint/format
13
13
  ```js
14
14
  const format = require('@commitlint/format');
15
15
 
16
- format({
17
- warnings: [
16
+ const output = format({
17
+ valid: false,
18
+ errorCount: 1,
19
+ warningCount: 1,
20
+ results: [
18
21
  {
19
- level: 0,
20
- name: 'some-hint',
21
- message: 'This will not show up as it has level 0'
22
- },
23
- {
24
- level: 1,
25
- name: 'some-warning',
26
- message: 'This will show up yellow as it has level 1'
27
- }
28
- ],
29
- errors: [
30
- {
31
- level: 2,
32
- name: 'some-error',
33
- message: 'This will show up red as it has level 2'
22
+ valid: false,
23
+ input: 'some: commit message',
24
+ errors: [
25
+ {
26
+ valid: false,
27
+ level: 2,
28
+ name: 'some-error',
29
+ message: 'This will show up red as it has level 2'
30
+ }
31
+ ],
32
+ warnings: [
33
+ {
34
+ valid: true,
35
+ level: 0,
36
+ name: 'some-hint',
37
+ message: 'This will not show up as it has level 0'
38
+ },
39
+ {
40
+ valid: false,
41
+ level: 1,
42
+ name: 'some-warning',
43
+ message: 'This will show up yellow as it has level 1'
44
+ }
45
+ ]
34
46
  }
35
- ]
47
+ ]
36
48
  }, {
37
49
  color: false
38
50
  });
51
+
52
+ process.stdout.write(output);
53
+
39
54
  /* => [
40
55
  '✖ This will show up red as it has level 2 [some-error]',
41
56
  ' This will not show up as it has level 0 [some-hint]',
@@ -45,3 +60,4 @@ format({
45
60
  ```
46
61
 
47
62
  Consult [docs/api](http://marionebl.github.io/commitlint/#/reference-api) for comprehensive documentation.
63
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commitlint/format",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "description": "Format commitlint reports",
5
5
  "main": "lib/index.js",
6
6
  "files": [