-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
specs need a separate jshintrc, since chai needs '"expr": true' option because of chaijs/chai#41
- Loading branch information
Showing
2 changed files
with
49 additions
and
3 deletions.
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
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,39 @@ | ||
{ | ||
// JSHint Configuration File | ||
// See http://jshint.com/docs/ for more details | ||
|
||
"maxerr" : 5, // {int} Maximum error before stopping | ||
|
||
// Enforcing | ||
"bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.) | ||
"forin" : false, // true: Require filtering for..in loops with obj.hasOwnProperty() | ||
"immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`, | ||
"quotmark" : "single", | ||
"undef" : true, | ||
"unused" : true, | ||
|
||
// Relaxing | ||
"debug" : true, // true: Allow debugger statements e.g. browser breakpoints. | ||
"browser" : true, // true: defines globals exposed by modern browsers | ||
"devel" : true, // true: define globals for some development functions (alert, console) | ||
"shadow" : true, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` | ||
"validthis" : true, // true: Tolerate using this in a non-constructor function | ||
"boss" : true, // true: Tolerate assignments where comparisons would be expected | ||
"evil" : true, // true: Tolerate use of `eval` and `new Function()` | ||
"expr" : true, | ||
|
||
// Environments | ||
|
||
"trailing" : true, // true: Prohibit trailing whitespaces | ||
"node" : true, // Node.js | ||
"nonstandard" : true, // Widely adopted globals (escape, unescape, etc) | ||
|
||
// Legacy | ||
"white" : true, // true: Check against strict whitespace and indentation rules | ||
|
||
// Custom Globals | ||
"globals": { | ||
"describe": true, | ||
"it": true | ||
} | ||
} |