forked from keystonejs/keystone-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
64 lines (64 loc) · 1.84 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
{
"bitwise": true,
"camelcase": false,
"curly": false, /* custom */
"eqeqeq": true,
"forin": true,
"freeze": true,
"immed": true,
"indent": 1, /* custom */
"latedef": false, /* custom - using methods before they are defined leads to cleaner code in some modules */
"newcap": true,
"noarg": true,
"noempty": true,
"nonbsp": true,
"nonew": true,
"plusplus": false, /* custom */
"undef": true,
"unused": false, /* enable for checking unused varaibles, disabled by default because it's noisy */
"strict": false, /* enable later */
"trailing": true,
"maxparams": false,
"maxdepth": false,
"maxstatements": false,
"maxcomplexity": false,
"maxlen": false,
"asi": false,
"boss": true, /* custom */
"debug": false,
"eqnull": true, /* custom */
"esnext": false,
"evil": false,
"expr": true, /* custom - suppresses warnings about shorthand `callback && callback()` statements */
"funcscope": false,
"gcl": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": true, /* custom - suppresses warnings about line break techniques we use for clearer code formatting */
"laxcomma": false,
"loopfunc": false,
"moz": false,
"multistr": false,
"notypeof": false,
"proto": true, /* custom - we use __proto__ validly at the moment */
"scripturl": true, /* custom - otherwise it warns on the default "javascript:;" template local */
"smarttabs": false,
"shadow": false,
"sub": false,
"supernew": false,
"noyield": false,
"browser": true, /* custom */
"node": true, /* custom */
"onevar": true, /* custom */
"globals": { /* custom */
/* MOCHA: http://stackoverflow.com/a/19572515/130638 */
"describe" : false,
"it" : false,
"before" : false,
"beforeEach" : false,
"after" : false,
"afterEach" : false,
"Keystone" : true
}
}