]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Don't lint auxiliary test fragments
authorIskren Chernev <iskren.chernev@gmail.com>
Wed, 25 Dec 2013 20:42:33 +0000 (21:42 +0100)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 28 Dec 2013 20:57:06 +0000 (12:57 -0800)
Gruntfile.js
test/browser-prefix.js

index ba62ae798f06b83f3823c859943c962d889a7830..0d3fb617ffd6b5d06dc0f722977f3d4701cb51e7 100644 (file)
@@ -117,7 +117,10 @@ module.exports = function (grunt) {
             all : ["test/moment/**/*.js", "test/lang/**/*.js"]
         },
         jshint: {
-            all: ["Gruntfile.js", "moment.js", "lang/**/*.js", "test/**/*.js"],
+            all: [
+                "Gruntfile.js", "moment.js", "lang/**/*.js", "test/**/*.js",
+                "!test/browser*.js"
+            ],
             options: {
                 "node"     : true,
                 "browser"  : true,
index 771369028e843080217dd5c9f5ac1731586de853..7123d7620c53fe6ad0f1b6be831c7218b21a5c38 100644 (file)
@@ -1,4 +1,4 @@
 (function () {
-    var global = this;
-    var require = function() { return global.moment; };
-    var exports = global.NPM_TESTS = {};
+    var global = this,
+        require = function() { return global.moment; },
+        exports = global.NPM_TESTS = {};