File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ export default async function load(
70
70
}
71
71
} ) ;
72
72
73
+ if ( ! extended . formatter || typeof extended . formatter !== 'string' ) {
74
+ extended . formatter = '@commitlint/format' ;
75
+ }
76
+
77
+ if ( ! extended . helpUrl || typeof extended . helpUrl !== 'string' ) {
78
+ extended . helpUrl =
79
+ 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint' ;
80
+ }
81
+
73
82
const rules = (
74
83
await Promise . all (
75
84
Object . entries ( extended . rules || { } ) . map ( ( entry ) => executeRule ( entry ) )
@@ -81,15 +90,6 @@ export default async function load(
81
90
return registry ;
82
91
} , { } ) ;
83
92
84
- if ( ! extended . formatter ) {
85
- extended . formatter = '@commitlint/format' ;
86
- }
87
-
88
- if ( ! extended . helpUrl ) {
89
- extended . helpUrl =
90
- 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint' ;
91
- }
92
-
93
93
return {
94
94
// TODO: check if this is still necessary with the new factory based conventional changelog parsers
95
95
// TODO: should this function return this? as those values are already resolved
You can’t perform that action at this time.
0 commit comments