-
Notifications
You must be signed in to change notification settings - Fork 3
/
.jshintrc
92 lines (88 loc) · 1.98 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
{
// Based on JSHint Default Configuration File (as on JSHint website)
"maxerr": 50,
// Enforcing
"bitwise": false,
"camelcase": false,
"curly": true,
"eqeqeq": false,
"forin": true,
"freeze": true,
"immed": false,
"latedef": false,
"newcap": false,
"noarg": true,
"noempty": true,
"nonbsp": true,
"nonew": false,
"plusplus": false,
"quotmark": false,
// Quotation mark consistency:
// false : do nothing (default)
// true : ensure whatever is used is consistent
// "single" : require single quotes
// "double" : require double quotes
"undef": true,
"unused": true,
// Unused variables:
// true : all variables, last function parameter
// "vars" : all variables only
// "strict" : all variables, all function parameters
"strict": true,
"maxparams": false,
"maxdepth": false,
"maxstatements": false,
"maxcomplexity": false,
"maxlen": false,
"varstmt": false,
// Relaxing
"asi": false,
"boss": false,
"debug": false,
"eqnull": false,
"esnext": false,
"moz": false,
// true: Allow Mozilla specific syntax (extends and overrides esnext features)
// (ex: `for each`, multiple try/catch, function expression…)
"evil": false,
"expr": false,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": false,
"laxcomma": false,
"loopfunc": false,
"multistr": false,
"noyield": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"shadow": false,
"sub": false,
"supernew": false,
"validthis": false,
// Environments
"browser": true,
"browserify": false,
"couch": false,
"devel": true,
"dojo": false,
"jasmine": false,
"jquery": false,
"mocha": true,
"mootools": false,
"node": false,
"nonstandard": false,
"phantom": false,
"prototypejs": false,
"qunit": false,
"rhino": false,
"shelljs": false,
"typed": false,
"worker": false,
"wsh": false,
"yui": false,
// Custom Globals
"globals": {}
}