From e6e1f6d6b3e84aa0f46a35a508c7428e644afb08 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Wed, 24 Feb 2016 12:14:41 +0100 Subject: [PATCH] Adds jshint reporting --- .jshintrc | 3 +++ gulpfile.js | 2 +- package.json | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .jshintrc diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..10a002b --- /dev/null +++ b/.jshintrc @@ -0,0 +1,3 @@ +{ + "varstmt" : true +} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 839b7df..bf74c17 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -49,7 +49,7 @@ pipes.bowerFilesMinified = function() { pipes.validatedAppScripts = function() { return gulp.src(paths.appFiles) .pipe(plugins.jshint()) - .pipe(plugins.debug({title: 'validated-js:'})); + .pipe(plugins.jshint.reporter('jshint-stylish')); } pipes.validatedIndex = function() { diff --git a/package.json b/package.json index 0891d8f..18b4be1 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "gulp-util": "^3.0.7", "jasmine-core": "^2.4.1", "jshint": "^2.9.1", + "jshint-stylish": "^2.1.0", "karma": "^0.13.19", "karma-chrome-launcher": "^0.2.2", "karma-firefox-launcher": "^0.1.7",