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

Commit

Permalink
Merge pull request #159 from Financial-Times/jshint-even-with-no-main-js
Browse files Browse the repository at this point in the history
JSHint should still run even if there is no main.js
  • Loading branch information
Alberto Elias committed Dec 16, 2014
2 parents 0770b7c + 3397893 commit 954cac4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/tasks/verify.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

var files = require('../helpers/files');
var log = require('../helpers/log');
var path = require('path');
var fs = require('fs');
Expand Down Expand Up @@ -62,10 +61,6 @@ function pathsToGlob(paths) {
*/
module.exports.scssLint = function(gulp, config) {
config = config || {};
if (!config.sass && !files.getMainSassPath()) {
log.secondaryError('No main.scss');
return;
}
var configPath = config.scssLintPath || path.join(__dirname, '/../../config/scss-lint.yml');

return gulp.src(['**/*.scss'].concat(excludeFiles))
Expand All @@ -79,11 +74,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 954cac4

Please sign in to comment.