mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Issue #2008 - Fix lint errors for external/builder/
This commit is contained in:
parent
c4eab852e0
commit
10cdb48f36
2 changed files with 7 additions and 2 deletions
7
external/builder/builder.js
vendored
7
external/builder/builder.js
vendored
|
@ -1,3 +1,8 @@
|
|||
/* jshint node:true */
|
||||
/* globals cp, ls, test */
|
||||
|
||||
'use strict';
|
||||
|
||||
require('../shelljs/make');
|
||||
var fs = require('fs'),
|
||||
path = require('path'),
|
||||
|
@ -30,7 +35,7 @@ function preprocess(inFilename, outFilename, defines) {
|
|||
var writeLine = typeof outFilename === 'function' ? outFilename :
|
||||
function(line) {
|
||||
out += line + '\n';
|
||||
}
|
||||
};
|
||||
function include(file) {
|
||||
var realPath = fs.realpathSync(inFilename);
|
||||
var dir = path.dirname(realPath);
|
||||
|
|
2
make.js
2
make.js
|
@ -983,7 +983,7 @@ target.jshint = function() {
|
|||
echo('### Linting JS files (this can take a while!)');
|
||||
|
||||
var LINT_FILES = ['make.js',
|
||||
//'external/builder/*.js',
|
||||
'external/builder/',
|
||||
//'external/crlfchecker/*.js',
|
||||
'src/',
|
||||
//'web/*.js',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue