Bug 1858673 - Disable no-unsanitized/method and no-unsanitized/property on test files. r=freddyb

Differential Revision: https://phabricator.services.mozilla.com/D190984
This commit is contained in:
Mark Banner 2023-10-24 08:48:40 +00:00
Родитель 7712cd8254
Коммит 79b35cfc1b
6 изменённых файлов: 16 добавлений и 14 удалений

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

@ -376,8 +376,6 @@ module.exports = {
"no-useless-concat": "off",
"no-undef": "off",
"no-unreachable": "off",
"no-unsanitized/method": "off",
"no-unsanitized/property": "off",
"no-unsafe-negation": "off",
"no-unused-vars": "off",
"no-useless-return": "off",
@ -460,8 +458,6 @@ module.exports = {
"no-sparse-arrays": "off",
"no-throw-literal": "off",
"no-unreachable": "off",
"no-unsanitized/method": "off",
"no-unsanitized/property": "off",
"no-useless-call": "off",
"no-useless-concat": "off",
"no-useless-return": "off",
@ -547,7 +543,6 @@ module.exports = {
"no-redeclare": "off",
"no-shadow": "off",
"no-throw-literal": "off",
"no-unsanitized/method": "off",
"no-useless-return": "off",
"object-shorthand": "off",
},

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

@ -1,9 +0,0 @@
"use strict";
module.exports = {
plugins: ["no-unsanitized"],
rules: {
"no-unsanitized/property": "off",
},
};

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

@ -87,5 +87,9 @@ module.exports = {
"error",
{ errorForNonImports: false },
],
// Turn off no-unsanitized for tests, as we do want to be able to use
// these for testing.
"no-unsanitized/method": "off",
"no-unsanitized/property": "off",
},
};

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

@ -57,5 +57,9 @@ module.exports = {
// We mis-predict globals for HTML test files in directories shared
// with browser tests.
"mozilla/no-redeclare-with-import-autofix": "off",
// Turn off no-unsanitized for tests, as we do want to be able to use
// these for testing.
"no-unsanitized/method": "off",
"no-unsanitized/property": "off",
},
};

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

@ -58,5 +58,9 @@ module.exports = {
// available.
"mozilla/use-chromeutils-generateqi": "off",
"no-shadow": "error",
// Turn off no-unsanitized for tests, as we do want to be able to use
// these for testing.
"no-unsanitized/method": "off",
"no-unsanitized/property": "off",
},
};

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

@ -46,5 +46,9 @@ module.exports = {
"mozilla/no-arbitrary-setTimeout": "error",
"mozilla/no-useless-run-test": "error",
"no-shadow": "error",
// Turn off no-unsanitized for tests, as we do want to be able to use
// these for testing.
"no-unsanitized/method": "off",
"no-unsanitized/property": "off",
},
};