bin/pretty.js
function mergeBatchResults(batches) {
    let files = [];
    let unformattedFiles = [];
    let formattedFiles = [];
    let errors = [];

    batches.forEach(batch => {
        files.push(...batch.files);
        unformattedFiles.push(...batch.unformattedFiles);
        formattedFiles.push(...batch.formattedFiles);
        errors.push(...batch.errors);
    });

    return { files, formattedFiles, unformattedFiles, errors };
}
function mergeBatchResults(batches) {
    let files = [];
    let unformattedFiles = [];
    let formattedFiles = [];
    let errors = [];

    batches.forEach(batch => {
        files.push(...batch.files);
        unformattedFiles.push(...batch.unformattedFiles);
        formattedFiles.push(...batch.formattedFiles);
        errors.push(...batch.errors);
    });

    return { files, formattedFiles, unformattedFiles, errors };
}
function mergeBatchResults ( batches ) { let files = [ ] ; let unformattedFiles = [ ] ; let formattedFiles = [ ] ; let errors = [ ] ; batches . forEach ( batch => { files . push ( ... batch . files ) ; unformattedFiles . push ( ... batch . unformattedFiles ) ; formattedFiles . push ( ... batch . formattedFiles ) ; errors . push ( ... batch . errors ) ; } ) ; return { files , formattedFiles , unformattedFiles , errors } ; }
Merge the results from each batch into a single result of the same format
Merge the results from each batch into a single result of the same format