Skip to content

Instantly share code, notes, and snippets.

@TylerK
Last active September 24, 2015 22:45
Show Gist options
  • Save TylerK/f2e318164dfb74faac57 to your computer and use it in GitHub Desktop.
Save TylerK/f2e318164dfb74faac57 to your computer and use it in GitHub Desktop.
Lint task for gulp... having problems with single quote detection
var gulp = require('gulp')
, config = require('configs/gulp-config')
, jshint = require('gulp-jshint')
, react = require('gulp-react')
, stylish = require('jshint-stylish')
gulp.task('lint', function () {
var linter = function (script) {
return gulp.src(script.watch)
.pipe(react())
.pipe(jshint())
.pipe(jshint.reporter(stylish, {verbose: true}))
}
config.bundles.forEach(function (script) {
linter(script)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment