Created
January 18, 2014 08:31
-
-
Save floatdrop/8487784 to your computer and use it in GitHub Desktop.
eslinting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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