lib/linter.js
function resolveGlobals(providedGlobals, enabledEnvironments) {
    return Object.assign(
        {},
        ...enabledEnvironments.filter(env => env.globals).map(env => env.globals),
        providedGlobals
    );
}
function resolveGlobals(providedGlobals, enabledEnvironments) {
    return Object.assign(
        {},
        ...enabledEnvironments.filter(env => env.globals).map(env => env.globals),
        providedGlobals
    );
}
function resolveGlobals ( providedGlobals , enabledEnvironments ) { return Object . assign ( { } , ... enabledEnvironments . filter ( env => env . globals ) . map ( env => env . globals ) , providedGlobals ) ; }
Combines the provided globals object with the globals from environments
@param {Object} providedGlobals The 'globals' key in a config
@param {Environments[]} enabledEnvironments The environments enabled in configuration and with inline comments
@returns {Object} The resolved globals object
Combines the provided globals object with the globals from environments