From d1224eeb3bb892384e7b5b936ca63cadc86261f4 Mon Sep 17 00:00:00 2001 From: Matthew Andrews Date: Sun, 14 Dec 2014 11:47:00 +0000 Subject: [PATCH] JSHint should still run even if there is no main.js (e.g. maybe you have custom build scripts, tests or other pieces of JavaScript - all still should be linted --- lib/tasks/verify.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/tasks/verify.js b/lib/tasks/verify.js index 2b457b60..eecd2a06 100644 --- a/lib/tasks/verify.js +++ b/lib/tasks/verify.js @@ -79,11 +79,6 @@ module.exports.scssLint = function(gulp, config) { */ module.exports.jsHint = function(gulp, config) { config = config || {}; - if (!config.js && !files.getMainJsPath()) { - log.secondary('No main.js'); - return; - } - var configPath = config.jsHintPath || path.join(__dirname, '/../../config/jshint.json'); return gulp.src(['**/*.js'].concat(excludeFiles))