File tree 1 file changed +2
-31
lines changed
1 file changed +2
-31
lines changed Original file line number Diff line number Diff line change @@ -56,38 +56,9 @@ module.exports = Configuration;
56
56
### TypeScript
57
57
58
58
``` ts
59
- type Config = {
60
- /*
61
- * Resolveable ids to commitlint configurations to extend
62
- */
63
- extends? : string [];
64
- /*
65
- * Resolveable id to conventional-changelog parser preset to import and use
66
- */
67
- parserPreset? : string ;
68
- /*
69
- * Resolveable id to package, from node_modules, which formats the output.
70
- */
71
- formatter: string ;
72
- /*
73
- * Rules to check against
74
- */
75
- rules? : {[name : string ]: Rule };
76
- /*
77
- * Functions that return true if commitlint should ignore the given message.
78
- */
79
- ignores? : ((message : string ) => boolean )[];
80
- /*
81
- * Whether commitlint uses the default ignore rules.
82
- */
83
- defaultIgnores? : boolean ;
84
- /*
85
- * Custom URL to show upon failure
86
- */
87
- helpUrl? : string ;
88
- };
59
+ import type {UserConfig } from ' @commitlint/types' ;
89
60
90
- const Configuration: Config = {
61
+ const Configuration: UserConfig = {
91
62
/*
92
63
* Resolve and load @commitlint/config-conventional from node_modules.
93
64
* Referenced packages must be installed
You can’t perform that action at this time.
0 commit comments