Add eslint-plugin-no-unsanitized

This commit is contained in:
toasted-nutbread 2020-02-11 22:11:28 -05:00
parent b97f80e4d9
commit e83167dcd1
3 changed files with 12 additions and 2 deletions

View File

@ -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": [
{

6
package-lock.json generated
View File

@ -264,6 +264,12 @@
"v8-compile-cache": "^2.0.3"
}
},
"eslint-plugin-no-unsanitized": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-3.0.2.tgz",
"integrity": "sha512-JnwpoH8Sv4QOjrTDutENBHzSnyYtspdjtglYtqUtAHe6f6LLKqykJle+UwFPg23GGwt5hI3amS9CRDezW8GAww==",
"dev": true
},
"eslint-scope": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz",

View File

@ -25,6 +25,7 @@
},
"homepage": "https://foosoft.net/projects/yomichan/",
"devDependencies": {
"eslint": "^6.8.0"
"eslint": "^6.8.0",
"eslint-plugin-no-unsanitized": "^3.0.2"
}
}