-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
38 lines (27 loc) · 825 Bytes
/
.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
29
30
31
32
33
34
35
36
37
38
{
// Define globals exposed by jQuery.
"jquery": true,
// Define globals exposed by Node.js
"node": true,
// Unfortunate overkill, but necessary for preceding || and &&.
// See https://github.com/jshint/jshint/issues/735.
"laxbreak": true,
// Prohibit use of == and != in favor of === and !==.
"eqeqeq": true,
// Suppress warnings about == null comparisons.
"eqnull": true,
// Prohibit use of a variable before it is defined.
"latedef": true,
// Prohibit use of explicitly undeclared variables.
"undef": true,
// Warn when variables are defined but never used.
"unused": "vars",
// Avoid long function definitions
"maxparams": 4,
// Prevent deep nesting
"maxdepth": 2,
// Concise functions
"maxstatements": 15,
// Prevent excessive branching
"maxcomplexity": 10
}