3 category: JavaScript libraries
10 Enable these options to *not* throw errors in these conditions.
11 See: [Relaxing](http://www.jshint.com/docs/options/#relaxing-options)
15 /* jshint asi: true */
21 /* jshint boss: true */
22 if (m = str.match(/.../))
26 /* jshint debug: true */
31 /* jshint eqnull: true */
36 /* jshint evil: true */
41 /* jshint expr: true */
42 production && minify = true;
48 /* jshint laxcomma: true */
54 /* jshint loopfunc: true */
55 for (i=0; i<10; x++) {
56 (function(i) { ... })(i);
61 /* jshint sub: true */
62 process.env['name_here']
66 /* jshint strict: "global" */
72 Enable these options to catch more errors.
73 See: [Enforcing](http://www.jshint.com/docs/options/#enforcing-options)
77 /* jshint curly: true */
78 while (day) // err: use { }'s
83 /* jshint eqeqeq: true */
84 if (a == null) // err: use ===
88 /* jshint es3: true */
89 // ...for legacy IE compatibility
90 a.default = function() { ... }; // err: reserved word
91 array = [ 1, 2, 3, ]; // err: extra comma
95 /* jshint forin: true */
96 for (key in obj) { ... } // err: check obj.hasOwnProperty(key)
100 /* jshint freeze: true */
101 Array.prototype.count = ...; // err: don't modify native prototypes
105 /* jshint indent: 4 */
106 if (x) { // err: expected indent of 4, found 2
112 /* jshint quotmark: single */
113 /* jshint quotmark: double */
114 alert("hi"); // err: only single allowed
118 /* jshint strict: true */
119 function() { ... } // err: need "use strict"
123 /* jshint white: true, indent: 4 */
124 /* jshint maxdepth: 2 */
125 /* jshint maxparams: 3 */
126 /* jshint maxstatements: 4 */
127 /* jshint maxcomplexity: 5 */
128 /* jshint maxlen: 80 */
134 /* jshint ignore:start */
135 /* jshint ignore:end */
138 ### Globals and Environments
141 /* jshint undef: true */
143 /* global -BAD_LIB */
147 /* jshint devel: true */ console, alert, ...
148 /* jshint browser: true */ window, document, location, ...
149 /* jshint node: true */ module, exports, console, process, ...
150 /* jshint jquery: true */ jQuery, $
153 See: [Environments](http://www.jshint.com/docs/options/#environments)
157 * <http://www.jshint.com/docs/options/>
158 * <https://gist.github.com/haschek/2595796>