forked from OpenSOC/opensoc-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
66 lines (54 loc) · 1.65 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
{
// See http://www.jshint.com/options/ for in-depth explanations
// Predefined globals that JSHint ignores
"browser" : true, // standard globals like 'window'
"devel" : true, // development globals, e.g. 'console'
"nonstandard" : true, // widely-adopted globals, e.g. 'escape'
"node" : true,
"jquery" : true,
"predef" : [ // extra globals
"angular",
"JST",
"MTD",
"google",
// Tests
"assert",
"sinon",
"describe",
"beforeEach",
"afterEach",
"loadFixtures",
"expect",
"before",
"after",
"it",
"mixpanel",
"nv",
"d3",
// stanford js crypto lib
"sjcl",
// Moment JS Date library
"moment",
// RequireJS
"requirejs",
"define",
// Angular global obj
"angular",
// Misc projects
"Presense",
"Refuge"
],
// Development
"debug" : false, // warn about debugger statements
// Enforcing
"bitwise" : true, // prohibit the use of bitwise operations (slow and '&' is usually supposed to be '&&')
"curly" : true, // require {} for all blocks/scopes
"latedef" : true, // prohibit variable use before definition ("hoisting")
"noempty" : true, // prohibit empty blocks
"trailing" : true, // no trailing whitespace is allowed
"undef" : true, // prevent the use of undeclared variables
// Relaxing
"sub" : true, // allow all subscript notation, including '[]'
"laxcomma" : true, // allow commas after line breaks in lists
"strict" : false // don't force strict mode
}