-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jshintrc
149 lines (118 loc) · 5.52 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
//
// This is a config file for jshint v2.10.3
// http://www.jshint.com/docs/options/
//
// Every option documented is listed here, just to be explicit about *our* defaults.
//
// Note that -- grunt-coffee-jshint -- does not use this file.
//
//
// Below you'll find jshint's "enforcing" options: You'll want most of them set.
//
"bitwise": false // Because you want to use the bitwise operators.
, "camelcase": false // Because camelCasingSucks. *** Deprecation warning; about coding style, not correctness.
, "curly": true
, "enforceall": false // *** Deprecation warning; too magic.
, "eqeqeq": true
// "es3" // *** Depreciation warning; replaced with `esversion`.
// "es5" // *** Depreciation warning; replaced with `esversion`.
// "esnext" // *** Depreciation warning; replaced with `esversion`.
, "esversion": 6
, "forin": true
, "freeze": true
, "futurehostile": true
// "globals" // Should be used only inline.
, "immed": true // *** Deprecation warning; about coding style, not correctness.
, "indent": 4 // *** Deprecation warning; about coding style, not correctnees.
, "latedef": "nofunc"// Because you want to declare functions after they are used.
, "leanswitch": true
// "max..." // `max*` options have their own section, see below.
, "newcap": true // *** Deprecation warning; about coding style, not correctnees.
, "noarg": true
, "nocomma": true
, "noempty": false // Because you do use empty blocks. *** Deprecation warning; about coding style, not correctnees.
, "nonbsp": true
, "nonew": true
, "noreturnawait": true
, "plusplus": false // Because++. The documentation list this with the "relaxing" options, but is more appropriately put here.
// "predef" // They have their own section, see below.
, "quotmark": "single"// Because single quotes are easier; on the eye; to type. *** Deprecation warning; about coding style, not correctnees.
, "regexpu": true
// "shadow" // Is more appropriately listed with the "relaxing" options.
, "singleGroups": false // Because you want to use the grouping operator for readability and clarity.
, "strict": true
, "trailingcomma": false // Because you like comma-*first* style.
, "undef": true
, "unused": true
, "varstmt": false // Because we have lots of those.
//
// Below you'll find jshint's "relaxing" options: You'll want to leave most of them unset.
//
, "asi": false
, "boss": false
, "debug": true // Because you want to use `debugger` statements, just not in production code.
, "elision": false
, "eqnull": true // Because `== null` makes sense.
// "esnext" // *** Depreciation warning; replaced with `esversion`.
, "evil": false
, "expr": false
, "funcscope": false
, "globalstrict": false // *** Depreciation warning; See `strict`.
, "iterator": false
, "lastsemic": false
, "laxbreak": true // Because, sometimes, you just need a break. *** Deprecation warning; about coding style, not correctnees.
, "laxcomma": true // Because you *like* comma-first style. *** Deprecation warning; about coding style, not correctnees.
, "loopfunc": false
, "moz": false
, "multistr": false // *** Deprecation warning; about coding style, not correctnees.
, "notypeof": false
, "noyield": false
// "plusplus" // Is more appropriately listed with the "enforcing" options.
, "proto": false
, "scripturl": false
, "shadow": "outer" // The documentation lists this with the "enforcing" options, but is more appropriately put here.
, "sub": false // *** Deprecation warning; about coding style, not correctnees.
, "supernew": false
, "validthis": false
, "withstmt": false
//
// These options fall into neither category really, have more to do with coding style actually, and we have no opinion about them either way.
//
, "maxcomplexity": null
, "maxdepth": null
, "maxerr": null
, "maxlen": null // *** Deprecation warning; about coding style, not correctnees.
, "maxparams": null
, "maxstatements": null
//
// Environments, determine sets of pre-defined globals
//
, "browser": false
, "browserify": false
, "couch": false
, "devel": false
, "dojo": false
, "jasmine": false
, "jquery": false
, "mocha": false
, "module": false
, "mootools": false
, "node": true
, "nonstandard": false
, "phantom": false
, "prototypejs": false
, "qunit": false
, "rhino": false
, "shelljs": false
, "typed": false
, "worker": false
, "wsh": false
, "yui": false
//
// Pre-define these other globals
//
, "predef": [
"define" // Added "define" because of AMD / RequireJS.
]
}