File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ type Config = {
18
18
* Resolveable id to conventional-changelog parser preset to import and use
19
19
*/
20
20
parserPreset? : string ;
21
+ /*
22
+ * Resolveable id to package, from node_modules, which formats the output.
23
+ */
24
+ formatter: string ;
21
25
/*
22
26
* Rules to check against
23
27
*/
@@ -35,6 +39,11 @@ const Configuration: Config = {
35
39
* Referenced packages must be installed
36
40
*/
37
41
parserPreset: ' conventional-changelog-atom' ,
42
+ /*
43
+ * Resolve and load @commitlint/format from node_modules.
44
+ * Referenced package must be installed
45
+ */
46
+ formatter: ' @commitlint/format' ,
38
47
/*
39
48
* Any rules defined here will override rules from @commitlint/config-conventional
40
49
*/
@@ -136,6 +145,17 @@ module.exports = {
136
145
};
137
146
```
138
147
148
+ ## Formatter
149
+
150
+ Commitlint can output the issues encountered in different formats, if necessary.
151
+ Use ids resolvable by the node resolve algorithm.
152
+
153
+ ``` js
154
+ module .exports = {
155
+ formatter: ' @commitlint/format'
156
+ };
157
+ ```
158
+
139
159
## Rules
140
160
141
161
Refer to [ Rules] ( reference-rules.md ) for a complete list of available rules.
You can’t perform that action at this time.
0 commit comments