Skip to content

Instantly share code, notes, and snippets.

@floatdrop
Created January 18, 2014 08:31
Show Gist options
  • Save floatdrop/8487784 to your computer and use it in GitHub Desktop.
Save floatdrop/8487784 to your computer and use it in GitHub Desktop.
eslinting
var watch = require('../gulp-watch');
var gulp = require('gulp');
var debug = require('gulp-debug');
var eslint = require('gulp-eslint');
var esformatter = require('gulp-esformatter');
var eslintStylish = require('eslint-stylish');
gulp.task('default', function() {
gulp.src('./src/**/*.js')
.pipe(watch(function(files) {
return files
.pipe(debug())
.pipe(esformatter())
.pipe(eslint())
.pipe(eslint.format(eslintStylish));
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment