[Build] Move lint config to gulpfile

This commit is contained in:
Victor Woeltjen 2016-03-04 11:56:31 -08:00
parent f34ef8c4c8
commit 43176cfbb8
2 changed files with 23 additions and 23 deletions

View File

@ -1,22 +0,0 @@
{
"bitwise": true,
"curly": true,
"eqeqeq": true,
"freeze": true,
"funcscope": true,
"futurehostile": true,
"latedef": true,
"noarg": true,
"nocomma": true,
"nonbsp": true,
"nonew": true,
"predef": [
"define",
"Blob",
"Float32Array",
"Promise"
],
"strict": "implied",
"undef": true,
"unused": true
}

View File

@ -56,6 +56,28 @@ var gulp = require('gulp'),
mainConfigFile: paths.main, mainConfigFile: paths.main,
wrapShim: true wrapShim: true
}, },
jshint: {
"bitwise": true,
"curly": true,
"eqeqeq": true,
"freeze": true,
"funcscope": true,
"futurehostile": true,
"latedef": true,
"noarg": true,
"nocomma": true,
"nonbsp": true,
"nonew": true,
"predef": [
"define",
"Blob",
"Float32Array",
"Promise"
],
"strict": "implied",
"undef": true,
"unused": true
},
karma: { karma: {
configFile: path.resolve(__dirname, 'karma.conf.js'), configFile: path.resolve(__dirname, 'karma.conf.js'),
singleRun: true singleRun: true
@ -103,7 +125,7 @@ gulp.task('lint', function () {
return "!" + glob; return "!" + glob;
}); });
return gulp.src(paths.scripts.concat(nonspecs)) return gulp.src(paths.scripts.concat(nonspecs))
.pipe(jshint()) .pipe(jshint(options.jshint))
.pipe(jshint.reporter('default')) .pipe(jshint.reporter('default'))
.pipe(jshint.reporter('fail')); .pipe(jshint.reporter('fail'));
}); });