From 76c52d2ea08d9764c8f044c1f3a8c1eaf6434828 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 22 Dec 2023 20:31:57 -0500 Subject: Remove unnecessary eslint global declarations (#430) --- .eslintrc.json | 62 ------------------------------------------------------- ext/js/yomitan.js | 1 + 2 files changed, 1 insertion(+), 62 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index eb0eecdb..87309296 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -587,68 +587,6 @@ "webextensions": false } }, - { - "files": [ - "ext/**/*.js" - ], - "excludedFiles": [ - "ext/js/core/extension-error.js" - ], - "globals": { - "ExtensionError": "readonly" - } - }, - { - "files": [ - "ext/**/*.js" - ], - "excludedFiles": [ - "ext/js/core.js", - "ext/js/core/extension-error.js", - "ext/js/accessibility/google-docs.js", - "ext/js/**/sandbox/**/*.js" - ], - "globals": { - "isObject": "readonly", - "stringReverse": "readonly", - "promiseTimeout": "readonly", - "escapeRegExp": "readonly", - "deferPromise": "readonly", - "clone": "readonly", - "deepEqual": "readonly", - "generateId": "readonly", - "promiseAnimationFrame": "readonly", - "invokeMessageHandler": "readonly", - "log": "readonly", - "DynamicProperty": "readonly", - "EventDispatcher": "readonly", - "EventListenerCollection": "readonly", - "Logger": "readonly" - } - }, - { - "files": [ - "ext/**/*.js" - ], - "excludedFiles": [ - "ext/js/core.js", - "ext/js/core/extension-error.js", - "ext/js/accessibility/google-docs.js", - "ext/js/yomitan.js", - "ext/js/**/sandbox/**/*.js" - ], - "globals": { - "yomitan": "readonly" - } - }, - { - "files": [ - "ext/js/yomitan.js" - ], - "globals": { - "chrome": "writable" - } - }, { "files": [ "test/**/*.js", diff --git a/ext/js/yomitan.js b/ext/js/yomitan.js index 1d6f7644..2fbe99cc 100644 --- a/ext/js/yomitan.js +++ b/ext/js/yomitan.js @@ -38,6 +38,7 @@ if ((() => { return (hasBrowser && !hasChrome); })()) { // @ts-expect-error - objects should have roughly the same interface + // eslint-disable-next-line no-global-assign chrome = browser; } -- cgit v1.2.3