Update lint task
This commit is contained in:
parent
3c47d1f4bc
commit
268cbed282
|
|
@ -1,15 +1,19 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var gulp = require('gulp'),
|
const gulp = require('gulp'),
|
||||||
jsonlint = require("gulp-jsonlint");
|
jsonlint = require("gulp-jsonlint");
|
||||||
|
|
||||||
function lintTask(options){
|
function lintTask(options){
|
||||||
gulp.task('lint', ['dupe'], function(){
|
// Requiers: dupe.
|
||||||
|
gulp.task(
|
||||||
|
'lint',
|
||||||
|
function() {
|
||||||
return options
|
return options
|
||||||
.src(options.workingDir + '/**/conf.json')
|
.src(options.workingDir + '/**/conf.json')
|
||||||
.pipe(jsonlint())
|
.pipe(jsonlint())
|
||||||
.pipe(jsonlint.reporter());
|
.pipe(jsonlint.reporter());
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = lintTask;
|
module.exports = lintTask;
|
||||||
Loading…
Reference in New Issue