diff --git a/package.json b/package.json index 6324be56f040..97ca5db52929 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,9 @@ "escope": "^3.6.0", "eslint": "3.19.0", "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-spidermonkey-js": "file:tools/lint/eslint/eslint-plugin-spidermonkey-js", - "eslint-plugin-no-unsanitized": "2.0.1", + "eslint-plugin-spidermonkey-js": "file:tools\\lint\\eslint\\eslint-plugin-spidermonkey-js", "espree": "^3.4.0", "estraverse": "^4.2.0", "ini-parser": "^0.0.2", diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js index a218880a3aec..456bccca2811 100644 --- a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js +++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js @@ -63,8 +63,7 @@ module.exports = { // When adding items to this file please check for effects on sub-directories. "plugins": [ - "mozilla", - "no-unsanitized" + "mozilla" ], // 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-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-unused-vars": ["error", { "args": "none", diff --git a/tools/lint/eslint/eslint-plugin-mozilla/package.json b/tools/lint/eslint/eslint-plugin-mozilla/package.json index 10857895f076..abe4a9441db4 100644 --- a/tools/lint/eslint/eslint-plugin-mozilla/package.json +++ b/tools/lint/eslint/eslint-plugin-mozilla/package.json @@ -21,7 +21,6 @@ "main": "lib/index.js", "dependencies": { "escope": "^3.6.0", - "eslint-plugin-no-unsanitized": "^2.0.1", "espree": "^3.4.0", "estraverse": "^4.2.0", "globals": "^9.14.0",