-
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:
3Legacy ECMAScript version (IE9 and below) -
jquery:
trueuse jQuery -
browser:
trueuse browser env
-
devel:
trueallow console -
undef:
trueprohibits the use of explicitly undeclared variables -
unused:
trueWarns about declared variable not used -
nonbsp:
trueWarns about non-breaking whitespace characters -
latedef:
trueRequire variables/functions to be defined before being used -
noarg:
trueProhibit use ofarguments.callerandarguments.callee -
eqeqeq:
trueenforce strict equality (===and!==) -
forin:
truerequires all for in loops to filter object's items -
freeze :
trueprohibits overwriting prototypes of native objects -
nocomma :
trueprohibits the use of the comma operator -
nonew :
trueprohibits the use of constructor functions for side-effects
-
define:
truefor AMD -
require:
truefor CommonJS -
module:
truefor CommonJS -
exports:
truefor CommonJS -
Raphael:
truefor Raphael.js