-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
28 lines (28 loc) · 1.27 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"curly": true, // true: Require {} for every new block or scope
"eqeqeq": true, // true: Require triple equals (===) for comparison
"immed": true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"latedef": true, // true: Require variables/functions to be defined before being used
"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg": true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"sub": true, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
"undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
"boss": true, // true: Tolerate assignments where comparisons would be expected
"eqnull": true, // true: Tolerate use of `== null`
"expr": true, // true: Tolerate bare expressions
"unused": "vars", // vars: Don't tolerate unused variables, but unused function params are OK
"node": true,
"globals": {
"module": false,
"require": false,
"__dirname": false,
"setTimeout": false,
"console": false,
"describe": false,
"it": false,
"beforeEach": false,
"before": false,
"afterEach": false,
"after": false
}
}