diff --git a/.jshintrc b/.jshintrc index 69b410b8..43792083 100644 --- a/.jshintrc +++ b/.jshintrc @@ -6,7 +6,7 @@ "immed": true, // require immediate functions to be wrapped in ( ) "nonbsp": true, // warn on unexpected whitespace breaking chars //"strict": true, // commented out for now as it causes 100s of warnings, but want to get there eventually - "unused": true, // Check for unused functions and variables + //"unused": true, // Check for unused functions and variables "loopfunc": true, // allow functions to be defined in loops //"expr": true, // allow ternery operator syntax... "sub": true // don't warn that foo['bar'] should be written as foo.bar diff --git a/Gruntfile.js b/Gruntfile.js index 1d796d6d..01f689e0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -29,19 +29,20 @@ module.exports = function(grunt) { }, jshint: { options: { + jshintrc:true // Use external file - configured as below... // http://www.jshint.com/docs/options/ - "asi": true, // allow missing semicolons - "curly": true, // require braces - "eqnull": true, // ignore ==null - "forin": true, // require property filtering in "for in" loops - "immed": true, // require immediate functions to be wrapped in ( ) - "nonbsp": true, // warn on unexpected whitespace breaking chars - //"strict": true, // commented out for now as it causes 100s of warnings, but want to get there eventually - "loopfunc": true, // allow functions to be defined in loops - "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') + //"asi": true, // allow missing semicolons + //"curly": true, // require braces + //"eqnull": true, // ignore ==null + //"forin": true, // require property filtering in "for in" loops + //"immed": true, // require immediate functions to be wrapped in ( ) + //"nonbsp": true, // warn on unexpected whitespace breaking chars + ////"strict": true, // commented out for now as it causes 100s of warnings, but want to get there eventually + //"loopfunc": true, // allow functions to be defined in loops + //"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') }, all: { src: ['*/*.js','*/*/*.js'],