build-system/tasks/lint.js
function lint() {
  var errorsFound = false;
  var stream = gulp.src(config.lintGlobs);

  if (isWatching) {
    stream = stream.pipe(watcher());
  }

  if (argv.fix) {
    options.fix = true;
  }

  return stream.pipe(eslint(options))
    .pipe(eslint.formatEach('stylish', function(msg) {
      errorsFound = true;
      util.log(util.colors.red(msg));
    }))
    .pipe(gulpIf(isFixed, gulp.dest('.')))
    .pipe(eslint.failAfterError())
    .on('end', function() {
      if (errorsFound && !options.fix) {
        util.log(util.colors.blue('Run `gulp lint --fix` to automatically ' +
            'fix some of these lint warnings/errors. This is a destructive ' +
            'operation (operates on the file system) so please make sure ' +
            'you commit before running.'));
      }
    });
}
function lint() {
  var errorsFound = false;
  var stream = gulp.src(config.lintGlobs);

  if (isWatching) {
    stream = stream.pipe(watcher());
  }

  if (argv.fix) {
    options.fix = true;
  }

  return stream.pipe(eslint(options))
    .pipe(eslint.formatEach('stylish', function(msg) {
      errorsFound = true;
      util.log(util.colors.red(msg));
    }))
    .pipe(gulpIf(isFixed, gulp.dest('.')))
    .pipe(eslint.failAfterError())
    .on('end', function() {
      if (errorsFound && !options.fix) {
        util.log(util.colors.blue('Run `gulp lint --fix` to automatically ' +
            'fix some of these lint warnings/errors. This is a destructive ' +
            'operation (operates on the file system) so please make sure ' +
            'you commit before running.'));
      }
    });
}
function lint ( ) { var errorsFound = false ; var stream = gulp . src ( config . lintGlobs ) ; if ( isWatching ) { stream = stream . pipe ( watcher ( ) ) ; } if ( argv . fix ) { options . fix = true ; } return stream . pipe ( eslint ( options ) ) . pipe ( eslint . formatEach ( 'stylish' , function ( msg ) { errorsFound = true ; util . log ( util . colors . red ( msg ) ) ; } ) ) . pipe ( gulpIf ( isFixed , gulp . dest ( '.' ) ) ) . pipe ( eslint . failAfterError ( ) ) . on ( 'end' , function ( ) { if ( errorsFound && ! options . fix ) { util . log ( util . colors . blue ( 'Run `gulp lint --fix` to automatically ' + 'fix some of these lint warnings/errors. This is a destructive ' + 'operation (operates on the file system) so please make sure ' + 'you commit before running.' ) ) ; } } ) ; }
Run the eslinter on the src javascript and log the output
@return {!Stream} Readable stream
Run the eslinter on the src javascript and log the output