mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Enable the getter-return
, no-dupe-else-if
, and no-setter-return
ESLint rules
All of these rules can help catch errors during development. Please note that only `getter-return` required a few changes, which was limited to disabling the rule in a couple of spots; please find additional details about these rules at: - https://eslint.org/docs/rules/getter-return - https://eslint.org/docs/rules/no-dupe-else-if - https://eslint.org/docs/rules/no-setter-return
This commit is contained in:
parent
b8f0cf0bc0
commit
a965662184
4 changed files with 8 additions and 4 deletions
|
@ -394,7 +394,7 @@ class IdentityCMap extends CMap {
|
|||
return 0x10000;
|
||||
}
|
||||
|
||||
get isIdentityCMap() {
|
||||
get isIdentityCMap() { // eslint-disable-line getter-return
|
||||
unreachable('should not access .isIdentityCMap');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue