diff --git a/make.js b/make.js
index bb36b4722..14c1ac6c6 100644
--- a/make.js
+++ b/make.js
@@ -1492,9 +1492,11 @@ target.lint = function() {
   var options = '--extra-ext .jsm';
 
   var exitCode = exec('"' + jshintPath + '" ' + options + ' .').code;
-  if (exitCode === 0) {
-    echo('files checked, no errors found');
+  if (exitCode !== 0) {
+    exit(1);
   }
+
+  echo('files checked, no errors found');
 };
 
 //
diff --git a/package.json b/package.json
index a4ff8de6c..ca4d41ec8 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
     "yargs": "^3.14.0"
   },
   "scripts": {
-    "test": "node ./node_modules/.bin/jshint --extra-ext .jsm ."
+    "test": "node make lint"
   },
   "repository": {
     "type": "git",