summaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-12-18 15:54:05 -0500
committerGitHub <noreply@github.com>2020-12-18 15:54:05 -0500
commit51223abfa696c5917828fdb5a6d7b1816d76c5c6 (patch)
tree1c64ad6b15b0773908669cdce14e6d1f319e428e /.eslintrc.json
parentfd91a5b383addb1b420fba0450a89ceb50cdd3e8 (diff)
Set up initial manifest v3 support (#605)
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json40
1 files changed, 40 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 3723d97d..486d7bd1 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -156,6 +156,46 @@
"node": true,
"webextensions": false
}
+ },
+ {
+ "files": [
+ "ext/mixed/js/core.js",
+ "ext/mixed/js/yomichan.js",
+ "ext/mixed/js/environment.js",
+ "ext/mixed/js/japanese.js",
+ "ext/mixed/js/cache-map.js",
+ "ext/mixed/js/dictionary-data-util.js",
+ "ext/mixed/js/object-property-accessor.js",
+ "ext/bg/js/anki.js",
+ "ext/bg/js/audio-downloader.js",
+ "ext/bg/js/clipboard-monitor.js",
+ "ext/bg/js/clipboard-reader.js",
+ "ext/bg/js/database.js",
+ "ext/bg/js/deinflector.js",
+ "ext/bg/js/dictionary-database.js",
+ "ext/bg/js/json-schema.js",
+ "ext/bg/js/mecab.js",
+ "ext/bg/js/media-utility.js",
+ "ext/bg/js/options.js",
+ "ext/bg/js/profile-conditions.js",
+ "ext/bg/js/request-builder.js",
+ "ext/bg/js/native-simple-dom-parser.js",
+ "ext/bg/js/text-source-map.js",
+ "ext/bg/js/translator.js",
+ "ext/bg/js/backend.js",
+ "ext/bg/js/background-main.js"
+ ],
+ "env": {
+ "browser": false,
+ "serviceworker": true,
+ "es2017": true,
+ "webextensions": true
+ },
+ "globals": {
+ "FileReader": "readonly",
+ "Intl": "readonly",
+ "crypto": "readonly"
+ }
}
]
}