pdf.js/src/core
Jonas Jenwald e1f340a0c2 Use the ESLint no-restricted-syntax rule to ensure that assert is always called with two arguments
Having `assert` calls without a message string isn't very helpful when debugging, and it turns out that it's easy enough to make use of ESLint to enforce better `assert` call-sites.
In a couple of cases the `assert` calls were changed to "regular" throwing of errors instead, since that seemed more appropriate.

Please find additional details about the ESLint rule at https://eslint.org/docs/rules/no-restricted-syntax
2020-05-05 13:40:05 +02:00
..
annotation.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
arithmetic_decoder.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
bidi.js Enable the no-nested-ternary ESLint rule (PR 11488 follow-up) 2020-01-14 17:49:39 +01:00
ccitt_stream.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
ccitt.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
cff_parser.js Whitelist closure related cases to address the remaining no-shadow linting errors 2020-03-25 11:57:12 +01:00
charsets.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
chunked_stream.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
cmap.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
colorspace.js Whitelist closure related cases to address the remaining no-shadow linting errors 2020-03-25 11:57:12 +01:00
core_utils.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
crypto.js Whitelist closure related cases to address the remaining no-shadow linting errors 2020-03-25 11:57:12 +01:00
document.js Use the ESLint no-restricted-syntax rule to ensure that assert is always called with two arguments 2020-05-05 13:40:05 +02:00
encodings.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
evaluator.js Add more categories of unsupported features. 2020-05-04 11:02:16 -07:00
font_renderer.js Remove variable shadowing from the JavaScript files in the src/core/ folder 2020-03-23 18:28:30 +01:00
fonts.js [src/core/fonts.js] Improve the validateOS2Table function 2020-04-19 11:25:25 +02:00
function.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
glyphlist.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
image_utils.js Move the maybeValidDimensions check, used with JPEG images, to occur earlier (PR 11523 follow-up) 2020-04-26 12:07:46 +02:00
image.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
jbig2_stream.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
jbig2.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
jpeg_stream.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
jpg.js [src/core/jpg.js] Remove redundant marker validation at the end of the decodeScan function (PR 11805 follow-up) 2020-04-17 15:40:02 +02:00
jpx_stream.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
jpx.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
metrics.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
murmurhash3.js Ensure that all import and require statements, in the entire code-base, have a .js file extension 2020-01-04 13:01:43 +01:00
obj.js Use the ESLint no-restricted-syntax rule to ensure that assert is always called with two arguments 2020-05-05 13:40:05 +02:00
operator_list.js Gracefully handle annotation parsing errors in Page.getOperatorList (issue 11871) 2020-05-04 17:09:48 +02:00
parser.js Use the ESLint no-restricted-syntax rule to ensure that assert is always called with two arguments 2020-05-05 13:40:05 +02:00
pattern.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
pdf_manager.js Ensure that all import and require statements, in the entire code-base, have a .js file extension 2020-01-04 13:01:43 +01:00
primitives.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
ps_parser.js Whitelist closure related cases to address the remaining no-shadow linting errors 2020-03-25 11:57:12 +01:00
standard_fonts.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
stream.js Whitelist closure related cases to address the remaining no-shadow linting errors 2020-03-25 11:57:12 +01:00
type1_parser.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
unicode.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
worker_stream.js Use the ESLint no-restricted-syntax rule to ensure that assert is always called with two arguments 2020-05-05 13:40:05 +02:00
worker.js Add more categories of unsupported features. 2020-05-04 11:02:16 -07:00