Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
JSHint should still run even if there is no main.js (e.g. maybe you h…
Browse files Browse the repository at this point in the history
…ave custom build scripts, tests or other pieces of JavaScript - all still should be linted
  • Loading branch information
matthew-andrews committed Dec 14, 2014
1 parent f64fbdc commit d1224ee
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/tasks/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d1224ee

Please sign in to comment.