Add jshintrc and inline lint checking to node-red-nodes

This commit is contained in:
dceejay
2015-04-16 10:56:22 +01:00
parent cd57346cae
commit 1e7717ac8a
3 changed files with 18 additions and 2 deletions

13
.jshintrc Normal file
View File

@@ -0,0 +1,13 @@
{
"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
"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
}