1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58: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:
Jonas Jenwald 2019-12-25 20:03:46 +01:00
parent de36b2aaba
commit a63f7ad486
46 changed files with 179 additions and 219 deletions

View file

@ -142,7 +142,7 @@ var PDFImage = (function PDFImageClosure() {
}
if (width < 1 || height < 1) {
throw new FormatError(
`Invalid image width: ${width} or ` + `height: ${height}`
`Invalid image width: ${width} or height: ${height}`
);
}
this.width = width;
@ -617,11 +617,11 @@ var PDFImage = (function PDFImageClosure() {
var drawWidth = this.drawWidth;
var drawHeight = this.drawHeight;
var imgData = {
// other fields are filled in below
width: drawWidth,
height: drawHeight,
kind: 0,
data: null,
// Other fields are filled in below.
};
var numComps = this.numComps;