tweak Gruntfile - for some reason pointing actually at the .jshintrc file

works better than just saying "true".
This commit is contained in:
dceejay 2015-04-17 21:08:10 +01:00
parent 89dcdb2139
commit a886b663f8
1 changed files with 7 additions and 3 deletions

View File

@ -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')
}
}
});