-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.jshintrc
46 lines (42 loc) · 1.04 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
45
46
{
// -------------------------------------------------------------------------
// JSHint options file
// Syntax is JSON-like, comments are ignored.
// Options reference: http://www.jshint.com/docs/options/
// -------------------------------------------------------------------------
// environment
"browser": true,
"devel": true,
"node": true,
"globals": {
"L": false,
"jQuery": false,
"MTB": true
},
"strict": false,
// "es3": true,
// code style
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"forin": false,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": true,
"undef": true,
"unused": true,
"quotmark": "single",
// whitespace
"indent": 4,
"trailing": true,
"maxlen": 120
// code simplicity - not enforced but nice to check from time to time
// "maxstatements": 20,
// "maxcomplexity": 5
// "maxparams": 4,
// "maxdepth": 4
}