forked from node-red/node-red
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
push opinionated .jshintrc - matches Grunt build. for starters.
- Loading branch information
dceejay
committed
Apr 16, 2015
1 parent
78ab421
commit 8f74479
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.config.json | ||
.dist | ||
.jshintignore | ||
.jshintrc | ||
.npm | ||
.project | ||
.sessions.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |