From e83167dcd1f40ed8c9fd0f2f1039717b61175e9e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 11 Feb 2020 22:11:28 -0500 Subject: Add eslint-plugin-no-unsanitized --- .eslintrc.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.eslintrc.json') 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": [ { -- cgit v1.2.3