pdf.js/src/display
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_layer.js Include the name for interactive form elements 2020-04-27 16:55:35 +02:00
api_compatibility.js Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
api.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
canvas.js [api-minor] Immediately release the font.data property once the font been attached to the DOM (PR 11777 follow-up) 2020-04-23 13:04:57 +02:00
content_disposition.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
display_utils.js [api-minor] Change PageViewport to throw when the rotation is not a multiple of 90 degrees 2020-04-22 15:19:13 +02:00
fetch_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
font_loader.js Add more categories of unsupported features. 2020-05-04 11:02:16 -07:00
metadata.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
network_utils.js Enable the unicorn/prefer-starts-ends-with ESLint plugin rule 2020-02-16 12:41:53 +01:00
network.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
node_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
pattern_helper.js Whitelist closure related cases to address the remaining no-shadow linting errors 2020-03-25 11:57:12 +01:00
svg.js [api-minor] Immediately release the font.data property once the font been attached to the DOM (PR 11777 follow-up) 2020-04-23 13:04:57 +02:00
text_layer.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
transport_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
webgl.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
worker_options.js Update the GlobalWorkerOptions.workerSrc JSDoc comment 2020-01-19 12:44:42 +01:00
xml_parser.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00