mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
tweak Gruntfile - for some reason pointing actually at the .jshintrc file
works better than just saying "true".
This commit is contained in:
parent
89dcdb2139
commit
a886b663f8
10
Gruntfile.js
10
Gruntfile.js
@ -29,7 +29,7 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
options: {
|
options: {
|
||||||
jshintrc:true // Use external file - configured as below...
|
jshintrc:".jshintrc", // Use external file - configured as below...
|
||||||
// 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
|
||||||
@ -42,7 +42,7 @@ module.exports = function(grunt) {
|
|||||||
//"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
|
||||||
////"unused": true, // Check for unused functions
|
////"unused": true, // Check for unused functions
|
||||||
////"forin":false, // turn off check for "for (x in y...)"
|
////"forin":false, // turn off check for "for (x in y...)"
|
||||||
//"reporter": require('jshint-stylish')
|
"reporter": require('jshint-stylish')
|
||||||
},
|
},
|
||||||
all: {
|
all: {
|
||||||
src: ['*/*.js','*/*/*.js'],
|
src: ['*/*.js','*/*/*.js'],
|
||||||
@ -57,7 +57,11 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
inlinelint: {
|
inlinelint: {
|
||||||
html: ['*/*/*.html']
|
html: ['*/*/*.html'],
|
||||||
|
options: {
|
||||||
|
jshintrc:".jshintrc",
|
||||||
|
"reporter": require('jshint-stylish')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user