src/index.js
function passLintResultsThroughReporters(lintResults) {
    const warnings = lintResults
      .reduce((accumulated, res) => accumulated.concat(res.results), []);

    return Promise
      .all(reporters.map(reporter => reporter(warnings)))
      .then(() => lintResults);
  }
function passLintResultsThroughReporters(lintResults) {
    const warnings = lintResults
      .reduce((accumulated, res) => accumulated.concat(res.results), []);

    return Promise
      .all(reporters.map(reporter => reporter(warnings)))
      .then(() => lintResults);
  }
function passLintResultsThroughReporters ( lintResults ) { const warnings = lintResults . reduce ( ( accumulated , res ) => accumulated . concat ( res . results ) , [ ] ) ; return Promise . all ( reporters . map ( reporter => reporter ( warnings ) ) ) . then ( ( ) => lintResults ) ; }
Provides Stylelint result to reporters.
@param {[Object]} lintResults - Stylelint results.
@return {Promise} Resolved with original lint results.
Provides Stylelint result to reporters .