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
|
@ -19,8 +19,8 @@
|
|||
var base64alphabet =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function decodeFontData(base64) {
|
||||
// eslint-disable-line no-unused-vars
|
||||
var result = [];
|
||||
|
||||
var bits = 0,
|
||||
|
@ -68,8 +68,8 @@ function encodeFontData(data) {
|
|||
return buffer;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function ttx(data, callback) {
|
||||
// eslint-disable-line no-unused-vars
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", "/ttx");
|
||||
|
||||
|
@ -89,8 +89,8 @@ function ttx(data, callback) {
|
|||
xhr.send(encodedData);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function verifyTtxOutput(output) {
|
||||
// eslint-disable-line no-unused-vars
|
||||
var m = /^<error>(.*?)<\/error>/.exec(output);
|
||||
if (m) {
|
||||
throw m[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue