Skip to content

Commit

Permalink
style: jsdoc comments must be complete sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 18, 2023
1 parent d724604 commit d91f466
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = {
"@eslint-community/eslint-comments/require-description": "error",
"import/no-extraneous-dependencies": "error",
"jsdoc/check-syntax": "error",
"jsdoc/require-description-complete-sentence": "error",
"jsdoc/require-hyphen-before-param-description": "error",
"no-multiple-empty-lines": ["error", { max: 1 }],
"prefer-destructuring": ["error", { object: true, array: false }],
Expand Down
2 changes: 1 addition & 1 deletion scripts/license-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function checkLicenses() {
console.log("Checking licenses of direct production dependencies...");

/**
* List of deprecated copyleft license identifiers
* List of deprecated copyleft license identifiers.
* @see {@link https://spdx.org/licenses/#deprecated | SPDX Deprecated License Identifiers}
*/
const deprecatedLicenseList = [
Expand Down
13 changes: 6 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class Poppler {
* will use for non-embedded fonts.
* @param {string} [options.ownerPassword] - Owner password (for encrypted files).
* @param {boolean} [options.printVersionInfo] - Print copyright and version info.
* @param {string} [options.userPassword] - User password (for encrypted files). *
* @param {string} [options.userPassword] - User password (for encrypted files).
* @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
*/
async pdfFonts(file, options = {}) {
Expand Down Expand Up @@ -410,7 +410,6 @@ class Poppler {
* of a Tagged-PDF file.
* @param {boolean} [options.printDocStructText] - Print the textual content along with the
* document structure of a Tagged-PDF file. Note that extracting text this way might be slow
*
* for big PDF files.
* @param {boolean} [options.printIsoDates] - Prints dates in ISO-8601 format (including the time zone).
* @param {boolean} [options.printJS] - Prints all JavaScript in the PDF file.
Expand Down Expand Up @@ -461,7 +460,7 @@ class Poppler {

/**
* Poppler does not set the "File size" metadata value if passed
* a Buffer via stdin, so need to retrieve it from the Buffer
* a Buffer via stdin, so need to retrieve it from the Buffer.
*/
/** @type {number} */
let fileSize;
Expand Down Expand Up @@ -859,7 +858,7 @@ class Poppler {
* @param {string} [options.ownerPassword] - Owner password (for encrypted files).
* @param {boolean} [options.printVersionInfo] - Print copyright and version info.
* @param {boolean} [options.quiet] - Do not print any messages or errors.
* @param {boolean} [options.singlePage] - generate single HTML that includes all pages.
* @param {boolean} [options.singlePage] - Generate single HTML that includes all pages.
* @param {boolean} [options.stdout] - Use standard output.
* @param {string} [options.userPassword] - User password (for encrypted files).
* @param {number} [options.wordBreakThreshold] - Adjust the word break threshold percent.
Expand Down Expand Up @@ -944,8 +943,8 @@ class Poppler {
});

/**
* pdfToHtml does not return an exit code so check output to see if it was successful.
* @see {@link https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/utils/pdftohtml.1 | Poppler pdftohtml man}
* PdfToHtml does not return an exit code so check output to see if it was successful.
* @see {@link https://gitlab.freedesktop.org/poppler/poppler/-/blob/master/utils/pdftohtml.1 | Poppler pdftohtml man}
*/
child.on("close", () => {
if (stdOut !== "") {
Expand Down Expand Up @@ -1425,7 +1424,7 @@ class Poppler {
* @param {boolean} [options.boundingBoxXhtmlLayout] - Generate an XHTML file containing
* bounding box information for each block, line, and word in the file.
* @param {boolean} [options.cropBox] - Use the crop box rather than the media box with
* `options.boundingBoxXhtml` and `options.boundingBoxXhtmlLayout`
* `options.boundingBoxXhtml` and `options.boundingBoxXhtmlLayout`.
* @param {number} [options.cropHeight] - Specifies the height of crop area in pixels
* (image output) or points (vector output).
* @param {number} [options.cropWidth] - Specifies the width of crop area in pixels
Expand Down

0 comments on commit d91f466

Please sign in to comment.