aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-11 22:11:28 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-12 19:08:13 -0500
commite83167dcd1f40ed8c9fd0f2f1039717b61175e9e (patch)
tree2195a89f8da951b32896d8019aba7791686cccfa /.eslintrc.json
parentb97f80e4d94e6ed5abe8a6dadb1629712192783c (diff)
Add eslint-plugin-no-unsanitized
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index d4ae215b..39c5e964 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -10,6 +10,7 @@
"es2017": true,
"webextensions": true
},
+ "plugins": ["no-unsanitized"],
"ignorePatterns": [
"/ext/mixed/lib/",
"/ext/bg/js/templates.js"
@@ -32,7 +33,9 @@
"quote-props": ["error", "consistent"],
"quotes": ["error", "single", "avoid-escape"],
"require-atomic-updates": "off",
- "semi": "error"
+ "semi": "error",
+ "no-unsanitized/method": "error",
+ "no-unsanitized/property": "error"
},
"overrides": [
{