pdf.js/test
Jonas Jenwald 1d2f787d6a Enable the ESLint no-shadow rule
This rule is *not* currently enabled in mozilla-central, but it appears commented out[1] in the ESLint definition file; see https://searchfox.org/mozilla-central/rev/c80fa7258c935223fe319c5345b58eae85d4c6ae/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js#238-239

Unfortunately this rule is, for fairly obvious reasons, impossible to `--fix` automatically (even partially) and each case thus required careful manual analysis.
Hence this ESLint rule is, by some margin, probably the most difficult one that we've enabled thus far. However, using this rule does seem like a good idea in general since allowing variable shadowing could lead to subtle (and difficult to find) bugs or at the very least confusing code.

Please find additional details about the ESLint rule at https://eslint.org/docs/rules/no-shadow

---
[1] Most likely, a very large number of lint errors have prevented this rule from being enabled thus far.
2020-03-25 11:56:05 +01:00
..
chromium Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
features Remove usage of mozFillRule 2017-01-29 23:24:44 +01:00
font Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
pdfs The first glyph in CFF CIDFonts must be named 0 instead of ".notdef" 2020-03-24 15:56:50 +02:00
resources Magnifier positioning in reftest analyzer 2020-03-10 19:09:15 +02:00
stats Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
ttx Update fonttools location and version (issue 6223) 2015-07-17 12:51:09 +02:00
unit Merge pull request #11744 from janpe2/cff-glyph-zero 2020-03-24 23:52:21 +01:00
.eslintrc Fix badly formatted .eslintrc 2018-11-23 13:49:58 +01:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
add_test.js Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
annotation_layer_builder_overrides.css Convert all three-digit HEX colors to RGBA colors 2020-01-01 14:52:37 +01:00
downloadutils.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
driver.js Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
test_manifest.json The first glyph in CFF CIDFonts must be named 0 instead of ".notdef" 2020-03-24 15:56:50 +02:00
test_slave.html Use the SimpleLinkService when running "annotations" reference tests 2017-09-12 15:24:46 +02:00
test.js Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
testutils.js Enable auto-formatting of the entire code-base using Prettier (issue 11444) 2019-12-26 12:34:24 +01:00
text_layer_test.css Use span instead of div in the text layer 2018-11-18 15:54:08 +01:00
webbrowser.js Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00
webserver.js Enable the ESLint no-shadow rule 2020-03-25 11:56:05 +01:00