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 @@ -61,15 +61,6 @@ export default async function load(
61
61
parserPreset : config . parserPreset ,
62
62
} ) as unknown ) as UserConfig ;
63
63
64
- let plugins : PluginRecords = { } ;
65
- uniq ( extended . plugins || [ ] ) . forEach ( ( plugin ) => {
66
- if ( typeof plugin === 'string' ) {
67
- plugins = loadPlugin ( plugins , plugin , process . env . DEBUG === 'true' ) ;
68
- } else {
69
- plugins . local = plugin ;
70
- }
71
- } ) ;
72
-
73
64
if ( ! extended . formatter || typeof extended . formatter !== 'string' ) {
74
65
extended . formatter = '@commitlint/format' ;
75
66
}
@@ -79,6 +70,15 @@ export default async function load(
79
70
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint' ;
80
71
}
81
72
73
+ let plugins : PluginRecords = { } ;
74
+ uniq ( extended . plugins || [ ] ) . forEach ( ( plugin ) => {
75
+ if ( typeof plugin === 'string' ) {
76
+ plugins = loadPlugin ( plugins , plugin , process . env . DEBUG === 'true' ) ;
77
+ } else {
78
+ plugins . local = plugin ;
79
+ }
80
+ } ) ;
81
+
82
82
const rules = (
83
83
await Promise . all (
84
84
Object . entries ( extended . rules || { } ) . map ( ( entry ) => executeRule ( entry ) )
You can’t perform that action at this time.
0 commit comments