forked from Qwerios/generator-madlib-apicore
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.jshintrc
114 lines (102 loc) · 4.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
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
{
//
// This is a config file for jshint v2.6.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": false // Because you dont want to cater for legacy browsers unless you *have* to.
//, "es5": true // Commented out because this is option is `true` by default, and jshint will nag you about that when we set it.
, "forin": true
, "freeze": true
, "futurehostile": true
, "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.
, "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
, "plusplus": false // Because++
, "quotmark": "single"// Because single quotes are easier, on the eye, to type *** Deprecation warning; about coding style, not correctnees.
, "singleGroups": false // Because you want to use the grouping operator for readability and clarity.
, "undef": true
, "unused": true
, "strict": true
//
// 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": false
, "evil": false
, "expr": false
, "funcscope": false
, "globalstrict": false
, "iterator": false
, "lastsemic": false
, "laxbreak": false // *** 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.
, "noyield": false
, "notypeof": false
, "proto": false
, "scripturl": false
, "shadow": "outer"
, "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
, "mootools": false
, "node": true
, "nonstandard": false
, "prototypejs": false
, "qunit": false
, "rhino": false
, "shelljs": false
, "typed": false
, "worker": false
, "wsh": false
, "yui": false
//
// Determine these other globals
//
, "globals": {}
}