summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-22 20:31:57 -0500
committerGitHub <noreply@github.com>2023-12-23 01:31:57 +0000
commit76c52d2ea08d9764c8f044c1f3a8c1eaf6434828 (patch)
tree77d3b88d4fe2d3be876d4195d17a0a09f7d76a07
parenta72b53de011d35602c0f68577c30e28386046583 (diff)
Remove unnecessary eslint global declarations (#430)
-rw-r--r--.eslintrc.json62
-rw-r--r--ext/js/yomitan.js1
2 files changed, 1 insertions, 62 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index eb0eecdb..87309296 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -589,68 +589,6 @@
},
{
"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",
"dev/**/*.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;
}