From 6f3565e6389b470e7a8d68bac5cd50f203849d1b Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 12 Jul 2017 13:14:25 +0200 Subject: [PATCH] Update ESLint (and eslint-plugin-mozilla) to the latest version --- .eslintrc | 4 +++- package.json | 4 ++-- src/display/api.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index 3803811d5..cafed6ab4 100644 --- a/.eslintrc +++ b/.eslintrc @@ -59,7 +59,9 @@ "no-implied-eval": "error", "no-iterator": "error", "no-lone-blocks": "error", - "no-multi-spaces": "error", + "no-multi-spaces": ["error", { + "ignoreEOLComments": true, + }], "no-multi-str": "error", "no-new-func": "error", "no-new-wrappers": "error", diff --git a/package.json b/package.json index 7e68b0db5..ae2711b5d 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "babel-plugin-transform-es2015-modules-commonjs": "^6.23.0", "babel-preset-es2015": "^6.24.1", "escodegen": "^1.8.0", - "eslint": "^3.19.0", - "eslint-plugin-mozilla": "^0.2.47", + "eslint": "^4.2.0", + "eslint-plugin-mozilla": "^0.4.0", "gulp": "^3.9.1", "gulp-rename": "^1.2.2", "gulp-replace": "^0.5.4", diff --git a/src/display/api.js b/src/display/api.js index 6a2a2ef57..b3c6d234d 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -1293,7 +1293,7 @@ var PDFWorker = (function PDFWorkerClosure() { this._initialize(); } - PDFWorker.prototype = /** @lends PDFWorker.prototype */ { + PDFWorker.prototype = /** @lends PDFWorker.prototype */ { get promise() { return this._readyCapability.promise; },