You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
366 B
JavaScript
15 lines
366 B
JavaScript
"use strict";
|
|
|
|
const deepmerge = require("deepmerge");
|
|
const isPlainObject = require("is-plain-object");
|
|
|
|
module.exports = function loadPresets(presets, customConfiguration) {
|
|
let config = deepmerge.all([customConfiguration].concat(presets), {
|
|
isMergeableObject: function (obj) {
|
|
return (isPlainObject(obj) || Array.isArray(obj));
|
|
}
|
|
});
|
|
|
|
return config;
|
|
};
|