From a886b663f88dd5b923625cbb5d52e7c959c202b3 Mon Sep 17 00:00:00 2001 From: dceejay Date: Fri, 17 Apr 2015 21:08:10 +0100 Subject: [PATCH] tweak Gruntfile - for some reason pointing actually at the .jshintrc file works better than just saying "true". --- Gruntfile.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 01f689e0..9d782907 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -29,7 +29,7 @@ module.exports = function(grunt) { }, jshint: { options: { - jshintrc:true // Use external file - configured as below... + jshintrc:".jshintrc", // Use external file - configured as below... // http://www.jshint.com/docs/options/ //"asi": true, // allow missing semicolons //"curly": true, // require braces @@ -42,7 +42,7 @@ module.exports = function(grunt) { //"sub": true, // don't warn that foo['bar'] should be written as foo.bar ////"unused": true, // Check for unused functions ////"forin":false, // turn off check for "for (x in y...)" - //"reporter": require('jshint-stylish') + "reporter": require('jshint-stylish') }, all: { src: ['*/*.js','*/*/*.js'], @@ -57,7 +57,11 @@ module.exports = function(grunt) { }, }, inlinelint: { - html: ['*/*/*.html'] + html: ['*/*/*.html'], + options: { + jshintrc:".jshintrc", + "reporter": require('jshint-stylish') + } } });