From 7f67d7633990ab2f57f05ffd8888e66b99c9558c Mon Sep 17 00:00:00 2001
From: Jonas Jenwald <jonas.jenwald@gmail.com>
Date: Tue, 26 Aug 2014 16:34:03 +0200
Subject: [PATCH] Update |node make lint| to also cover the Firefox specific
 *.jsm files

---
 make.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/make.js b/make.js
index 3a4456fec..5e1adcdd1 100644
--- a/make.js
+++ b/make.js
@@ -1460,8 +1460,10 @@ target.lint = function() {
     echo('jshint is not installed -- installing...');
     exec('npm install jshint@2.4.x'); // TODO read version from package.json
   }
+  // Lint the Firefox specific *.jsm files.
+  var options = '--extra-ext .jsm';
 
-  var exitCode = exec('"' + jshintPath + '" .').code;
+  var exitCode = exec('"' + jshintPath + '" ' + options + ' .').code;
   if (exitCode === 0) {
     echo('files checked, no errors found');
   }