Add eslint-plugin-no-unsanitized
This commit is contained in:
parent
b97f80e4d9
commit
e83167dcd1
@ -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
6
package-lock.json
generated
@ -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",
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user