-
Notifications
You must be signed in to change notification settings - Fork 2
/
.jshintrc
52 lines (43 loc) · 1.2 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
{
"browser": true, // allow common browser globals
"predef": [ // extra globals to ignore
"global",
// node
"exports",
// require.js
"require",
"define",
// sinon
"sinon",
// qunit
"QUnit",
"equal",
"asyncTest",
"test",
"start",
"stop",
"raises",
"same",
"module",
"expect",
"notEqual",
"ok",
"deepEqual",
// jasmine
"describe",
"beforeEach",
"it",
// HTML5 browser APIs that jshint will learn about someday
"requestAnimationFrame",
"BlobBuilder"
],
// want to toggle these and eliminate the bugs they catch, one by one
"devel": true, // we probably don't want console calls in production
"undef": true, // catch bug-causing typos!
"shadow": false, // shadowing variable names are sources of confusion
"noarg": false, // don't want to inadvertently fall out of optimizer
"forin": false, // require hasInProperty in for..in
"newcap": false, // require constructors to be Capitalized
"esnext": false, // we're not in a world where can count on let/const
"sub": true // want to be able to use the someobject["someproperty"] syntax
}