Browse files

Added YUI to predefs, added condition around use of exports

  • Loading branch information...
1 parent df4af4a commit e990b90899dcdb3d2d2ada7331f065a7b4ca686c @sdesai sdesai committed Oct 20, 2010
View
4 componentbuild/lib/jslint/fulljslint.js
@@ -5616,4 +5616,6 @@ loop: for (;;) {
}());
-exports.JSLINT = JSLINT;
+if (typeof exports !== 'undefined') {
+ exports.JSLINT = JSLINT;
+}
View
3 componentbuild/lib/jslint/jslint-console.js
@@ -17,7 +17,8 @@ load(jslintsrc);
browser : true,
//laxLineEnd : true,
undef: true,
- newcap: false
+ newcap: false,
+ predef:["YUI"]
};
function test(jsFile) {
View
3 componentbuild/lib/jslint/jslint-node.js
@@ -16,7 +16,8 @@ JSLINT = require("./fulljslint").JSLINT;
browser : true,
//laxLineEnd : true,
undef: true,
- newcap: false
+ newcap: false,
+ predef:["YUI"]
};
function test(js) {

0 comments on commit e990b90

Please sign in to comment.