aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-04 18:19:43 -0400
committerGitHub <noreply@github.com>2020-09-04 18:19:43 -0400
commitdd8e32e7c40011de95e6c81211e2b434be2fde78 (patch)
treee9247c8f5c62b21efd46dfa13d24dc73ccbd01dd /.eslintrc.json
parent1cc9f4b1a480396f8e9cea23ebb1d410b048a518 (diff)
Fix template renderer sandbox compatibility (#770)
* Use Object.prototype.hasOwnProperty.call instead of hasOwn * Disable WebExtension and core.js APIs for template-renderer.js
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 558fd928..7f52702c 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -84,14 +84,20 @@
},
"overrides": [
{
- "files": ["ext/mixed/js/core.js"],
+ "files": [
+ "ext/mixed/js/core.js",
+ "ext/bg/js/template-renderer.js"
+ ],
"env": {
"webextensions": false
}
},
{
"files": ["ext/**/*.js"],
- "excludedFiles": ["ext/mixed/js/core.js"],
+ "excludedFiles": [
+ "ext/mixed/js/core.js",
+ "ext/bg/js/template-renderer.js"
+ ],
"globals": {
"errorToJson": "readonly",
"jsonToError": "readonly",