adds jshint config to gulpfile
This commit is contained in:
parent
f12623db45
commit
cc8a7101d9
1 changed files with 19 additions and 1 deletions
20
gulpfile.js
20
gulpfile.js
|
|
@ -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'));
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue