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