From 93f24dd5d79850cff2d7f76969fedf68093a5f9c Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 15 Oct 2023 11:46:47 +0200 Subject: [PATCH] Remove the ESLint "amd" environment (PR 17055 follow-up) Please see https://eslint.org/docs/latest/use/configure/language-options#specifying-environments --- .eslintrc | 1 - src/pdf.worker.entry.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 4a05d00ce..7be8629f3 100644 --- a/.eslintrc +++ b/.eslintrc @@ -22,7 +22,6 @@ "browser": true, "es2022": true, "worker": true, - "amd": true, }, "globals": { diff --git a/src/pdf.worker.entry.js b/src/pdf.worker.entry.js index e9709b4b5..c717a1418 100644 --- a/src/pdf.worker.entry.js +++ b/src/pdf.worker.entry.js @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/* globals require:readonly */ /* eslint-disable import/no-commonjs */ (typeof window !== "undefined"