summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}