1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 15:47:57 +02:00
pdf.js/test/unit
Jonas Jenwald 1cc3dbb694 Enable the dot-notation ESLint rule
*Please note:* These changes were done automatically, using the `gulp lint --fix` command.

This rule is already enabled in mozilla-central, see https://searchfox.org/mozilla-central/rev/567b68b8ff4b6d607ba34a6f1926873d21a7b4d7/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js#103-104

The main advantage, besides improved consistency, of this rule is that it reduces the size of the code (by 3 bytes for each case). In the PDF.js code-base there's close to 8000 instances being fixed by the `dot-notation` ESLint rule, which end up reducing the size of even the *built* files significantly; the total size of the `gulp mozcentral` build target changes from `3 247 456` to `3 224 278` bytes, which is a *reduction* of `23 178` bytes (or ~0.7%) for a completely mechanical change.

A large number of these changes affect the (large) lookup tables used on the worker-thread, but given that they are still initialized lazily I don't *think* that the new formatting this patch introduces should undo any of the improvements from PR 6915.

Please find additional details about the ESLint rule at https://eslint.org/docs/rules/dot-notation
2020-04-17 12:24:46 +02:00
..
annotation_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
api_spec.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
bidi_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
cff_parser_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
clitests.json Fail early, in modern GENERIC builds, if certain required browser functionality is missing (issue 11762) 2020-04-01 19:42:48 +02:00
clitests_helper.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
cmap_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
colorspace_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
core_utils_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
crypto_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
custom_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
display_svg_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
display_utils_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
document_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
encodings_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
evaluator_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
fetch_stream_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
function_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
jasmine-boot.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
message_handler_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
metadata_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
murmurhash3_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
network_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
network_utils_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
node_stream_spec.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
parser_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
pdf_find_controller_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
pdf_find_utils_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
pdf_history_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
primitives_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
stream_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
test_utils.js Enable the ESLint prefer-const rule globally (PR 11450 follow-up) 2020-01-25 00:20:22 +01:00
testreporter.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
type1_parser_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
ui_utils_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
unicode_spec.js Enable the dot-notation ESLint rule 2020-04-17 12:24:46 +02:00
unit_test.html Replaces RequireJS to SystemJS. 2017-02-27 08:32:39 -06:00
util_spec.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00