title: Getting a terminal reference error: task is not defined when inputting gulp
body: <p>I want to use ESLint on my code I included ESLint in the <em>default</em> task in the gulpfile. Below is the code in the gulpfile and a screenshot of my terminal.</p>
  <p>I don't know what I am getting a reference error: task is not defined when I try to run gulp.</p>
  <p><a href="https://i.stack.imgur.com/eTQcf.png" rel="nofollow noreferrer">Screenshot</a></p>
  <pre><code>const gulp = require('gulp');
  const babel = require('gulp-babel');
  const eslint = require('gulp-eslint');
  
  gulp,task('default', function(){
   // Run ESLint
   gulp.src([&quot;es6/**/*.js&quot;, &quot;public/es6/**/*.js&quot;])
          .pipe(eslint())
          .pipe(eslint.format());
          //Node Source
          gulp.src(&quot;es6/**/*.js&quot;)
          .pipe(babel())
          .pipe(gulp.dest(&quot;dist&quot;));
          //brower source
          gulp.src(&quot;public/es6/**/*.js&quot;)
                  .pipe(babel())
                  .pip(gulp.dest(&quot;public/dist&quot;));
  
  });
  </code></pre>