1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Point Grunt to use external jshintrc

This commit is contained in:
dceejay 2015-04-16 11:53:39 +01:00
parent 8f744794e4
commit 9d809aa2ba

View File

@ -37,16 +37,17 @@ module.exports = function(grunt) {
}, },
jshint: { jshint: {
options: { options: {
jshintrc:true
// http://www.jshint.com/docs/options/ // http://www.jshint.com/docs/options/
"asi": true, // allow missing semicolons //"asi": true, // allow missing semicolons
"curly": true, // require braces //"curly": true, // require braces
"eqnull": true, // ignore ==null //"eqnull": true, // ignore ==null
"forin": true, // require property filtering in "for in" loops //"forin": true, // require property filtering in "for in" loops
"immed": true, // require immediate functions to be wrapped in ( ) //"immed": true, // require immediate functions to be wrapped in ( )
"nonbsp": true, // warn on unexpected whitespace breaking chars //"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 ////"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 //"loopfunc": true, // allow functions to be defined in loops
"sub": true // don't warn that foo['bar'] should be written as foo.bar //"sub": true // don't warn that foo['bar'] should be written as foo.bar
}, },
all: [ all: [
'Gruntfile.js', 'Gruntfile.js',