lib/logger.js
function logLintingErrors(errors, prefix = null) {
  (0, _forEach2.default)(errors, ({ message, rule, file, line, column }) => {
    log(formatErrorMarker(), ': ', ...formatLine(`${message}${rule ? ` (${rule})` : ''}`, file, line, column));
  });
  log(prefix ? `${prefix} l` : 'L', 'inting errors: ', errors.length);
}
function logLintingErrors(errors, prefix = null) {
  (0, _forEach2.default)(errors, ({ message, rule, file, line, column }) => {
    log(formatErrorMarker(), ': ', ...formatLine(`${message}${rule ? ` (${rule})` : ''}`, file, line, column));
  });
  log(prefix ? `${prefix} l` : 'L', 'inting errors: ', errors.length);
}
function logLintingErrors ( errors , prefix = null ) { ( 0 , _forEach2 . default ) ( errors , ( { message , rule , file , line , column } ) => { log ( formatErrorMarker ( ) , ': ' , ... formatLine ( ` ${ message } ${ rule ? ` ${ rule } ` : '' } ` , file , line , column ) ) ; } ) ; log ( prefix ? ` ${ prefix } ` : 'L' , 'inting errors: ' , errors . length ) ; }
Prints linting errors out to the console.

@memberof module:logger
@function logLintingErrors
@param {Array<LintError>} errors        - error objects
@param {string}           [prefix=null] - will be printed on the last line along with the total number of messages
@example
import {logLintingErrors} from 'webcompiler';
// or - import {logLintingErrors} from 'webcompiler/lib/logger';
// or - var logLintingErrors = require('webcompiler').logLintingErrors;
// or - var logLintingErrors = require('webcompiler/lib/logger').logLintingErrors;
Prints linting errors out to the console .