-
Notifications
You must be signed in to change notification settings - Fork 195
JSHint
Mapael uses JSHint to help maintain a proper code and catch early some small bugs.
Rules are found in .jshintrc
file.
More explanation on options can be found here: http://jshint.com/docs/options
-
esversion:
3
Legacy ECMAScript version (IE9 and below) -
jquery:
true
use jQuery -
browser:
true
use browser env
-
devel:
true
allow console -
undef:
true
prohibits the use of explicitly undeclared variables -
unused:
true
Warns about declared variable not used -
nonbsp:
true
Warns about non-breaking whitespace characters -
latedef:
true
Require variables/functions to be defined before being used -
noarg:
true
Prohibit use ofarguments.caller
andarguments.callee
-
eqeqeq:
true
enforce strict equality (===
and!==
) -
forin:
true
requires all for in loops to filter object's items -
freeze :
true
prohibits overwriting prototypes of native objects -
nocomma :
true
prohibits the use of the comma operator -
nonew :
true
prohibits the use of constructor functions for side-effects
-
define:
true
for AMD -
require:
true
for CommonJS -
module:
true
for CommonJS -
exports:
true
for CommonJS -
Raphael:
true
for Raphael.js