Move to the Mozilla backed no-unsanitized ESLint plugin

This commit is contained in:
Jonathan Kingston
2017-05-09 13:29:08 +01:00
parent 0b1d6e9087
commit 92ab56448c
3 changed files with 19 additions and 9 deletions
+16 -6
View File
@@ -5,9 +5,6 @@ module.exports = {
"node": true,
"webextensions": true
},
"extends": [
"eslint:recommended"
],
"globals": {
"CustomizableUI": true,
"CustomizableWidgets": true,
@@ -16,7 +13,10 @@ module.exports = {
},
"plugins": [
"promise",
"no-unescaped"
"no-unsanitized"
],
"extends": [
"eslint:recommended"
],
"root": true,
"rules": {
@@ -29,8 +29,18 @@ module.exports = {
"promise/no-promise-in-callback": "warn",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"no-unescaped/no-key-assignment": "error",
"no-unescaped/enforce": "error",
"no-unsanitized/method": [
"error"
],
"no-unsanitized/property": [
"error",
{
"escape": {
"taggedTemplates": ["escaped"]
}
}
],
"eqeqeq": "error",
"indent": ["error", 2],