title: (gulp-jsvalidate) implementation for syntax error detection?
body: <p>I have a js folder that i want to process using gulp. However, when there is a syntax error the output of gulp trace doesn't specify the file with the error.</p>
  
  <p>Right now my gulpfile looks like this:</p>
  
  <pre><code>var gulp = require('gulp');
  var debug = require('gulp-debug');
  var esnext = require('gulp-esnext');
  var es6ModuleTranspiler = require("gulp-es6-module-transpiler");
  var bower = require('gulp-bower');
  var jsValidate = require('gulp-jsvalidate');
  
  var paths = {
    scripts: ['js/**/*.js'],
    js: 'public/js'
  }
  
  gulp.task('scripts', function () {
    gulp
      .src(paths.scripts)
      .pipe(esnext())
      .pipe(es6ModuleTranspiler({
        type: "amd",
      }))
      .pipe(gulp.dest(paths.js));
  });
  
  gulp.task('validate', function () {
    gulp
      .src(paths.scripts)
      .pipe(jsValidate());
  });
  
  ulp.task('bower', function() {
    bower()
      .pipe(gulp.dest(paths.js))
  });
  
  gulp.task('watch', function() {
    gulp.watch(paths.scripts, ['scripts']);
  });
  
  // The default task (called when you run `gulp` from cli)
  gulp.task('default', ['validate', 'bower', 'scripts', 'watch']);
  </code></pre>
  
  <p>As you can see I wrote the <em>validate</em> task to pipe gulp-jsvalidate through the scripts.path. The goal was to detect syntax errors and find out which files those errors where.</p>
  
  <p>However, when I run gulp it throws an error the following trace:</p>
  
  <pre><code>Error: gulp-jsvalidate: Line 1: Unexpected identifier
  </code></pre>
  
  <p>I don't mind switching to other plugins.</p>