src/index.js
/**
   * Provides Stylelint results to reporters and awaits their response.
   * @param  {Array<Object>} results List of results in Stylelint format.
   * @return {Promise}               Accumulated result of reporters execution.
   */
Provides Stylelint results to reporters and awaits their response.
@param  {Array} results List of results in Stylelint format.
@return {Promise}               Accumulated result of reporters execution.
Provides Stylelint results to reporters and awaits their response . @param { Array } results List of results in Stylelint format . @return { Promise } Accumulated result of reporters execution .
function provideResultsToReporters(results) {
    const reporters = [checkstyleReporter];
    if (options.reportToConsole) {
      reporters.push(consoleResultListReporter);
    }
    if (options.failAfterAllErrors) {
      reporters.push(failAfterAllErrorsReporter);
    }
    return Promise.all(reporters.map(reporter => reporter(results)));
  }
function provideResultsToReporters ( results ) { const reporters = [ checkstyleReporter ] ; if ( options . reportToConsole ) { reporters . push ( consoleResultListReporter ) ; } if ( options . failAfterAllErrors ) { reporters . push ( failAfterAllErrorsReporter ) ; } return Promise . all ( reporters . map ( reporter => reporter ( results ) ) ) ; }
Provides Stylelint results to reporters and awaits their response.
Provides Stylelint results to reporters and awaits their response .