mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fix the linting errors, from the Prettier auto-formatting, that ESLint --fix
couldn't handle
This patch makes the follow changes: - Remove no longer necessary inline `// eslint-disable-...` comments. - Fix `// eslint-disable-...` comments that Prettier moved down, thus causing new linting errors. - Concatenate strings which now fit on just one line. - Fix comments that are now too long. - Finally, and most importantly, adjust comments that Prettier moved down, since the new positions often is confusing or outright wrong.
This commit is contained in:
parent
de36b2aaba
commit
a63f7ad486
46 changed files with 179 additions and 219 deletions
|
@ -929,9 +929,8 @@ var Font = (function FontClosure() {
|
|||
return true;
|
||||
}
|
||||
// ... obviously some fonts violate that part of the specification,
|
||||
// please refer to the comment in |Type1Font| below.
|
||||
// please refer to the comment in |Type1Font| below (pfb file header).
|
||||
if (header[0] === 0x80 && header[1] === 0x01) {
|
||||
// pfb file header.
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -1085,7 +1084,6 @@ var Font = (function FontClosure() {
|
|||
var ranges = [];
|
||||
var length = codes.length;
|
||||
for (var n = 0; n < length; ) {
|
||||
// eslint-disable-line space-in-parens
|
||||
var start = codes[n].fontCharCode;
|
||||
var codeIndices = [codes[n].glyphId];
|
||||
++n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue