Backed out changeset d95016c5fc99 (bug 1351608) because eslint can't find the new plugin "eslint-plugin-no-unsanitized". r=backout

This commit is contained in:
Sebastian Hengst 2017-06-29 01:02:26 +02:00
Родитель 5b82b79d9c
Коммит 43820d9e2a
3 изменённых файлов: 3 добавлений и 11 удалений

Просмотреть файл

@ -7,10 +7,9 @@
"escope": "^3.6.0", "escope": "^3.6.0",
"eslint": "3.19.0", "eslint": "3.19.0",
"eslint-plugin-html": "2.0.3", "eslint-plugin-html": "2.0.3",
"eslint-plugin-mozilla": "file:tools/lint/eslint/eslint-plugin-mozilla", "eslint-plugin-mozilla": "file:tools\\lint\\eslint\\eslint-plugin-mozilla",
"eslint-plugin-react": "6.10.3", "eslint-plugin-react": "6.10.3",
"eslint-plugin-spidermonkey-js": "file:tools/lint/eslint/eslint-plugin-spidermonkey-js", "eslint-plugin-spidermonkey-js": "file:tools\\lint\\eslint\\eslint-plugin-spidermonkey-js",
"eslint-plugin-no-unsanitized": "2.0.1",
"espree": "^3.4.0", "espree": "^3.4.0",
"estraverse": "^4.2.0", "estraverse": "^4.2.0",
"ini-parser": "^0.0.2", "ini-parser": "^0.0.2",

Просмотреть файл

@ -63,8 +63,7 @@ module.exports = {
// When adding items to this file please check for effects on sub-directories. // When adding items to this file please check for effects on sub-directories.
"plugins": [ "plugins": [
"mozilla", "mozilla"
"no-unsanitized"
], ],
// When adding items to this file please check for effects on all of toolkit // When adding items to this file please check for effects on all of toolkit
@ -300,11 +299,6 @@ module.exports = {
// No (!foo in bar) or (!object instanceof Class) // No (!foo in bar) or (!object instanceof Class)
"no-unsafe-negation": "error", "no-unsafe-negation": "error",
// No unsanitized use of innerHTML=, document.write() etc.
// cf. https://github.com/mozilla/eslint-plugin-no-unsanitized#rule-details
"no-unsanitized/method": "error",
"no-unsanitized/property": "error",
// No declaring variables that are never used // No declaring variables that are never used
"no-unused-vars": ["error", { "no-unused-vars": ["error", {
"args": "none", "args": "none",

Просмотреть файл

@ -21,7 +21,6 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"escope": "^3.6.0", "escope": "^3.6.0",
"eslint-plugin-no-unsanitized": "^2.0.1",
"espree": "^3.4.0", "espree": "^3.4.0",
"estraverse": "^4.2.0", "estraverse": "^4.2.0",
"globals": "^9.14.0", "globals": "^9.14.0",