From 268cbed28274916471d7fe565b710071d9bebe3a Mon Sep 17 00:00:00 2001 From: Dan Mindru Date: Sat, 31 Aug 2019 16:54:51 +0200 Subject: [PATCH] Update lint task --- tasks/lint.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tasks/lint.js b/tasks/lint.js index 652164e..6ea959a 100644 --- a/tasks/lint.js +++ b/tasks/lint.js @@ -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; \ No newline at end of file +module.exports = lintTask;