-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jshintrc
63 lines (60 loc) · 1.36 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
{
// enforcing options
"bitwise": true,
"camelcase": true,
"curly": false, // we like one liners
"eqeqeq": true,
"es3": true,
"forin": true,
"freeze": true,
"immed": true,
"indent": 1, // we use tabs
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonbsp": true,
"nonew": true,
"plusplus": false, // we are good at js
"quotmark": false, // we like flexibility
"undef": true,
"unused": true,
"strict": true,
"trailing": true,
"maxparams": false, // no
"maxdepth": false, // no
"maxstatements": false, // no
"maxcomplexity": false, // no
"maxlen": false, // no
// relaxing options
"asi": true, // we use asi
"boss": true, // we understand assignments
"debug": false,
"eqnull": true, // we know how to do null/undefined checks
"esnext": false,
"evil": false,
"expr": false,
"funcscope": false,
"gcl": true,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": false,
"laxcomma": false,
"loopfunc": false,
"moz": false,
"multistr": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"smarttabs": false, // default; spaces should only be mixed with tabs after words
"shadow": false,
"sub": false,
"supernew": false,
"noyield": false,
// environments
"browser": true,
"node": true,
// legacy
"onevar": false
}