mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Update |node make lint| to also cover the Firefox specific *.jsm files
This commit is contained in:
parent
4da57c3b85
commit
7f67d76339
1 changed files with 3 additions and 1 deletions
4
make.js
4
make.js
|
@ -1460,8 +1460,10 @@ target.lint = function() {
|
||||||
echo('jshint is not installed -- installing...');
|
echo('jshint is not installed -- installing...');
|
||||||
exec('npm install jshint@2.4.x'); // TODO read version from package.json
|
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) {
|
if (exitCode === 0) {
|
||||||
echo('files checked, no errors found');
|
echo('files checked, no errors found');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue