-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
44 lines (33 loc) · 1 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Author: Ian Stewart
// JSHint ^2.5.4
//
// Dervied from AirBnB
// https://github.com/airbnb/javascript/blob/master/linters/jshintrc
// Note: All _formatting_ guidelines have moved to .jscsrc
{
// Define globals exposed by modern browsers.
"browser": 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": 6
}