diff --git a/.eslintrc b/.eslintrc index feb1e8207..ff2bd1019 100644 --- a/.eslintrc +++ b/.eslintrc @@ -35,10 +35,12 @@ // Possible errors "for-direction": "error", + "getter-return": "error", "no-async-promise-executor": "error", "no-cond-assign": ["error", "except-parens"], "no-constant-condition": ["error", { "checkLoops": false, }], "no-dupe-args": "error", + "no-dupe-else-if": "error", "no-dupe-keys": "error", "no-duplicate-case": "error", "no-empty": ["error", { "allowEmptyCatch": true, }], @@ -51,6 +53,7 @@ "no-irregular-whitespace": "error", "no-obj-calls": "error", "no-regex-spaces": "error", + "no-setter-return": "error", "no-sparse-arrays": "error", "no-unexpected-multiline": "error", "no-unreachable": "error", diff --git a/src/core/cmap.js b/src/core/cmap.js index 1c0fe238b..190e961ae 100644 --- a/src/core/cmap.js +++ b/src/core/cmap.js @@ -394,7 +394,7 @@ class IdentityCMap extends CMap { return 0x10000; } - get isIdentityCMap() { + get isIdentityCMap() { // eslint-disable-line getter-return unreachable('should not access .isIdentityCMap'); } } diff --git a/src/display/font_loader.js b/src/display/font_loader.js index d7088fc0f..1cb27d0c7 100644 --- a/src/display/font_loader.js +++ b/src/display/font_loader.js @@ -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`.'); } diff --git a/web/interfaces.js b/web/interfaces.js index 4a027faea..5c5f16d52 100644 --- a/web/interfaces.js +++ b/web/interfaces.js @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/* eslint-disable getter-return */ /** * @interface