Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added YUI to predefs, added condition around use of exports

  • Loading branch information...
commit e990b90899dcdb3d2d2ada7331f065a7b4ca686c 1 parent df4af4a
@sdesai sdesai authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.