adds jshint config to gulpfile

This commit is contained in:
Todd Treece 2015-07-27 17:45:58 -04:00
parent f12623db45
commit cc8a7101d9

View file

@ -1,13 +1,31 @@
require('dotenv').load();
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
mocha = require('gulp-mocha');
gulp.task('lint', function() {
var lint = jshint({
"curly": false,
"eqeqeq": true,
"immed": true,
"latedef": "nofunc",
"newcap": false,
"noarg": true,
"sub": true,
"undef": false,
"unused": "var",
"boss": true,
"eqnull": true,
"node": true,
"-W086": true
});
return gulp.src([
'lib/*.js',
'test/*.js'
]).pipe(jshint())
]).pipe(lint)
.pipe(jshint.reporter('jshint-stylish'));
});