lib/utils.js
/**
     * Merge multiple configuration objects.
     * @param {object} dest The destination config object to merge configurations.
     * @param {object} sources The source config objects to merge configurations.
     * @returns {object} The `dest`.
     */
Merge multiple configuration objects.
@param {object} dest The destination config object to merge configurations.
@param {object} sources The source config objects to merge configurations.
@returns {object} The `dest`.
Merge multiple configuration objects . @param { object } dest The destination config object to merge configurations . @param { object } sources The source config objects to merge configurations . @returns { object } The ` dest ` .
merge(dest, ...sources) {
        for (const source of sources) {
            for (const key of Object.keys(source)) {
                if (
                    key === "extends" ||
                    key === "files" ||
                    key === "overrides" ||
                    key === "plugins"
                ) {
                    dest[key] = []
                        .concat(dest[key], source[key])
                        .filter(Boolean)
                } else {
                    dest[key] = deepAssign(dest[key], source[key])
                }
            }
        }
        return dest
    }
merge ( dest , ... sources ) { for ( const source of sources ) { for ( const key of Object . keys ( source ) ) { if ( key === "extends" || key === "files" || key === "overrides" || key === "plugins" ) { dest [ key ] = [ ] . concat ( dest [ key ] , source [ key ] ) . filter ( Boolean ) } else { dest [ key ] = deepAssign ( dest [ key ] , source [ key ] ) } } } return dest }
Merge multiple configuration objects.
Merge multiple configuration objects .