lib/rules/new-cap.js
function calculateCapIsNewExceptions(config) {
    let capIsNewExceptions = checkArray(config, "capIsNewExceptions", CAPS_ALLOWED);

    if (capIsNewExceptions !== CAPS_ALLOWED) {
        capIsNewExceptions = capIsNewExceptions.concat(CAPS_ALLOWED);
    }

    return capIsNewExceptions.reduce(invert, {});
}
function calculateCapIsNewExceptions(config) {
    let capIsNewExceptions = checkArray(config, "capIsNewExceptions", CAPS_ALLOWED);

    if (capIsNewExceptions !== CAPS_ALLOWED) {
        capIsNewExceptions = capIsNewExceptions.concat(CAPS_ALLOWED);
    }

    return capIsNewExceptions.reduce(invert, {});
}
function calculateCapIsNewExceptions ( config ) { let capIsNewExceptions = checkArray ( config , "capIsNewExceptions" , CAPS_ALLOWED ) ; if ( capIsNewExceptions !== CAPS_ALLOWED ) { capIsNewExceptions = capIsNewExceptions . concat ( CAPS_ALLOWED ) ; } return capIsNewExceptions . reduce ( invert , { } ) ; }
Creates an object with the cap is new exceptions as its keys and true as their values.
@param {Object} config Rule configuration
@returns {Object} Object with cap is new exceptions.
Creates an object with the cap is new exceptions as its keys and true as their values .