If you want to jshint all JavaScript files in a folder, but want to exclude a subfolder, you can use “negation” in gulp.



var gulp = require("gulp");

var jshint = require("gulp-jshint");
var plumber = require("gulp-plumber");


var onError = function (err) {

     * Hint all of our custom developed Javascript files.
    gulp.task("jshint", function () {

        return gulp.src([
            errorHandler: onError

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts