mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
7712cd8254
commit
79b35cfc1b
@ -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",
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user