We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ce3c5 commit 8a2169fCopy full SHA for 8a2169f
@commitlint/load/src/load.ts
@@ -71,13 +71,15 @@ export default async function load(
71
}
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
- });
+ if (Array.isArray(extended.plugins)) {
+ uniq(extended.plugins || []).forEach((plugin) => {
+ if (typeof plugin === 'string') {
+ plugins = loadPlugin(plugins, plugin, process.env.DEBUG === 'true');
+ } else {
+ plugins.local = plugin;
+ }
81
+ });
82
83
84
const rules = (
85
await Promise.all(
0 commit comments