Skip to content

Commit

Permalink
Remove unnecessary eslint global declarations (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread authored Dec 23, 2023
1 parent a72b53d commit 76c52d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 62 deletions.
62 changes: 0 additions & 62 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions ext/js/yomitan.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 76c52d2

Please sign in to comment.