Permalink
Browse files

Added mocha globals.

  • Loading branch information...
rauchg committed Aug 24, 2012
1 parent 08b1dd9 commit 822e61150f2cfbb81a31675176eb7d88e021632e
Showing with 14 additions and 0 deletions.
  1. +14 −0 jshint.js
View
@@ -283,6 +283,7 @@ var JSHINT = (function () {
laxcomma : true, // if line breaks should not be checked around commas
loopfunc : true, // if functions should be allowed to be defined within
// loops
+ mocha : true, // if mocha globals should be predefined
mootools : true, // if MooTools globals should be predefined
multistr : true, // allow multiline strings
newcap : true, // if constructor names must be capitalized
@@ -562,6 +563,15 @@ var JSHINT = (function () {
member,
membersOnly,
+ mocha = {
+ after : false,
+ afterEach : false,
+ before : false,
+ beforeEach : false,
+ describe : false,
+ it : false
+ },
+
mootools = {
"$" : false,
"$$" : false,
@@ -964,6 +974,10 @@ var JSHINT = (function () {
combine(predefined, jquery);
}
+ if (option.mocha) {
+ combine(predefined, mocha);
+ }
+
if (option.mootools) {
combine(predefined, mootools);
}

0 comments on commit 822e611

Please sign in to comment.