We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fbbb47 commit 38537d9Copy full SHA for 38537d9
@commitlint/load/src/load.ts
@@ -3,6 +3,7 @@ import Path from 'path';
3
import merge from 'lodash/merge';
4
import mergeWith from 'lodash/mergeWith';
5
import pick from 'lodash/pick';
6
+import union from 'lodash/union';
7
import resolveFrom from 'resolve-from';
8
9
import executeRule from '@commitlint/execute-rule';
@@ -84,6 +85,10 @@ export default async function load(
84
85
resolveFrom.silent(base, config.formatter) || config.formatter;
86
}
87
88
+ // Read plugins from extends
89
+ if (Array.isArray(extended.plugins))
90
+ config.plugins = union(config.plugins, extended.plugins || []);
91
+
92
// resolve plugins
93
if (Array.isArray(config.plugins)) {
94
config.plugins.forEach(plugin => {
0 commit comments