@@ -27,13 +27,13 @@ type Config = {
27
27
*/
28
28
rules? : {[name : string ]: Rule };
29
29
/*
30
- * Custom list of Messages to Ignore, string values will be compiled as RegExp
30
+ * Functions that return true if commitlint should ignore the given message.
31
31
*/
32
- ignoredMessages ? : Array < string | RegExp | string => boolean > ;
32
+ ignores ? : (( message : string ) => boolean )[] ;
33
33
/*
34
- * If this is true we will not use any of the default is-ignored rules
34
+ * Whether commitlint uses the default ignore rules.
35
35
*/
36
- disableDefaultIgnoredMessages ? : boolean ;
36
+ defaultIgnores ? : boolean ;
37
37
}
38
38
39
39
const Configuration: Config = {
@@ -59,18 +59,15 @@ const Configuration: Config = {
59
59
' type-enum' : [2 , ' always' , [' foo' ]]
60
60
},
61
61
/*
62
- * These RegExp and functions are used to ignore messages that shouldn't be linted
62
+ * Functions that return true if commitlint should ignore the given message.
63
63
*/
64
- ignoredMessages: [
65
- ' ^Entire Message to Ignore$' ,
66
- / ^ (ci| github):/ ,
64
+ ignores: [
67
65
(commit ) => commit === ' '
68
66
],
69
67
/*
70
- * If this is true then the default ignores like `Merge commit` are not ignored
71
- * and will cause commitlint to fail
68
+ * Whether commitlint uses the default ignore rules.
72
69
*/
73
- disableDefaultIgnoredMessages : true
70
+ defaultIgnores : true
74
71
};
75
72
76
73
module .exports = Configuration ;
0 commit comments