lib/config/config-initializer.js
function getConfigForStyleGuide(guide) {
    const guides = {
        google: { extends: "google" },
        airbnb: { extends: "airbnb" },
        "airbnb-base": { extends: "airbnb-base" },
        standard: { extends: "standard" }
    };

    if (!guides[guide]) {
        throw new Error("You referenced an unsupported guide.");
    }

    return guides[guide];
}
function getConfigForStyleGuide(guide) {
    const guides = {
        google: { extends: "google" },
        airbnb: { extends: "airbnb" },
        "airbnb-base": { extends: "airbnb-base" },
        standard: { extends: "standard" }
    };

    if (!guides[guide]) {
        throw new Error("You referenced an unsupported guide.");
    }

    return guides[guide];
}
function getConfigForStyleGuide ( guide ) { const guides = { google : { extends : "google" } , airbnb : { extends : "airbnb" } , "airbnb-base" : { extends : "airbnb-base" } , standard : { extends : "standard" } } ; if ( ! guides [ guide ] ) { throw new Error ( "You referenced an unsupported guide." ) ; } return guides [ guide ] ; }
process user's style guide of choice and return an appropriate config object.
@param {string} guide name of the chosen style guide
@returns {Object} config object
process user s style guide of choice and return an appropriate config object .