mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +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
|
@ -106,15 +106,15 @@ class BaseFontLoader {
|
|||
unreachable('Abstract method `_queueLoadingCallback`.');
|
||||
}
|
||||
|
||||
get isFontLoadingAPISupported() {
|
||||
get isFontLoadingAPISupported() { // eslint-disable-line getter-return
|
||||
unreachable('Abstract method `isFontLoadingAPISupported`.');
|
||||
}
|
||||
|
||||
get isSyncFontLoadingSupported() {
|
||||
get isSyncFontLoadingSupported() { // eslint-disable-line getter-return
|
||||
unreachable('Abstract method `isSyncFontLoadingSupported`.');
|
||||
}
|
||||
|
||||
get _loadTestFont() {
|
||||
get _loadTestFont() { // eslint-disable-line getter-return
|
||||
unreachable('Abstract method `_loadTestFont`.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue