Skip to content

Commit f1ce3c5

Browse files
committed
fix: one more order change
1 parent 25b98f8 commit f1ce3c5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

@commitlint/load/src/load.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,6 @@ export default async function load(
6161
parserPreset: config.parserPreset,
6262
}) as unknown) as UserConfig;
6363

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-
7364
if (!extended.formatter || typeof extended.formatter !== 'string') {
7465
extended.formatter = '@commitlint/format';
7566
}
@@ -79,6 +70,15 @@ export default async function load(
7970
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint';
8071
}
8172

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+
8282
const rules = (
8383
await Promise.all(
8484
Object.entries(extended.rules || {}).map((entry) => executeRule(entry))

0 commit comments

Comments
 (0)