1
- const Configuration = {
2
- /*
3
- * Resolve and load @commitlint/config-conventional from node_modules.
4
- * Referenced packages must be installed
5
- */
1
+ module . exports = {
6
2
extends : [ '@commitlint/config-conventional' ] ,
7
- /*
8
- * Resolve and load conventional-changelog-atom from node_modules.
9
- * Referenced packages must be installed
10
- */
11
- parserPreset : 'conventional-changelog-atom' ,
12
- /*
13
- * Resolve and load @commitlint/format from node_modules.
14
- * Referenced package must be installed
15
- */
16
- formatter : '@commitlint/format' ,
17
- /*
18
- * Any rules defined here will override rules from @commitlint/config-conventional
19
- */
3
+ // Workaround for https://github.com/dependabot/dependabot-core/issues/5923
4
+ ignores : [ ( message ) => / ^ B u m p s \[ .+ ] \( .+ \) f r o m .+ t o .+ \. $ / m. test ( message ) ] ,
20
5
rules : {
21
- 'type-enum' : [ 2 , 'always' , [ 'foo' ] ] ,
6
+ 'body-max-length' : [ 0 , 'always' ] ,
7
+ 'body-max-line-length' : [ 0 , 'always' ] ,
8
+ 'footer-max-length' : [ 0 , 'always' ] ,
9
+ 'footer-max-line-length' : [ 0 , 'always' ] ,
10
+ 'header-max-length' : [ 0 , 'always' ] ,
11
+ 'scope-max-length' : [ 0 , 'always' ] ,
12
+ 'subject-max-length' : [ 0 , 'always' ] ,
13
+ 'type-max-length' : [ 0 , 'always' ] ,
22
14
} ,
23
- /*
24
- * Functions that return true if commitlint should ignore the given message.
25
- */
26
- ignores : [ ( commit ) => commit === '' ] ,
27
- /*
28
- * Whether commitlint uses the default ignore rules.
29
- */
30
- defaultIgnores : true ,
31
- /*
32
- * Custom URL to show upon failure
33
- */
34
- helpUrl :
35
- 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint' ,
36
- /*
37
- * Custom prompt configs
38
- */
39
- prompt : {
40
- messages : { } ,
41
- questions : {
42
- type : {
43
- description : 'please input type:' ,
44
- } ,
45
- } ,
46
- } ,
47
- } ;
48
-
49
- module . exports = Configuration ;
15
+ }
0 commit comments