-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jshintrc
105 lines (95 loc) · 2.05 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
// TODO REMOVE
"-W098": false,
"-W074": false,
// Enforcing options: when set to true, produces more errors
"bitwise": true,
"camelcase": false,
"curly": false,
"eqeqeq": true,
"es3": true,
"forin": true,
"freeze": true,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"newcap": false, // We use uppercase names for normal functions as well
"noarg": true,
"noempty": true,
"nonew": true,
"plusplus": false,
"quotmark": "single",
"undef": true, // See below for a list of globals
"unused": true,
"strict": true,
"trailing": true,
"maxparams": false, // Angular and RequireJS includes break this
"maxdepth": 4,
"maxstatements": 50,
"maxcomplexity": 4,
"maxlen": 80,
// Relaxing options: when set to true, produces fewer errors
"asi": false,
"boss": false,
"debug": false,
"eqnull": false,
"esnext": false,
"evil": false,
"expr": false,
"funcscope": false,
"gcl": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": false,
"laxcomma": false,
"loopfunc": false,
"maxerr": 50,
"moz": false,
"multistr": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"smarttabs": false,
"shadow": false,
"sub": false,
"supernew": false,
"validthis": false,
// Environments and exposing globals
"browser": false,
"couch": false,
"devel": false,
"dojo": false,
"jquery": false,
"mootools": false,
"node": false,
"nonstandard": false,
"phantom": false,
"prototypejs": false,
"rhino": false,
"worker": false,
"wsh": false,
"yui": false,
"globals": {
// For AngularJS
"angular": true,
// Allow window (but not document and location and ...)
"window": true,
"setTimeout": true,
"alert": true,
// Used by Gruntfiles
"module": true,
"require": true,
// Used by RequireJS
"define": true,
// Used by Jasmine
"beforeEach": true,
"describe": true,
"expect": true,
"it": true,
"jasmine": true,
"spyOn": true,
// Used by Angular mocks
"inject": true
}
}