Re-enable guard-for-in

This commit is contained in:
Oliver Blanthorn 2020-06-19 13:02:43 +01:00
parent 96f763e42e
commit d72016f10f
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 3 additions and 2 deletions

View file

@ -174,7 +174,7 @@ module.exports = {
"off",
"always"
],
"guard-for-in": "off", //"error",
"guard-for-in": "error",
"id-blacklist": "off",
"id-match": "off",
"import/order": "off",

View file

@ -3625,7 +3625,8 @@ export async function sanitise(...args: string[]) {
*/
}
if (args.find(x => x === "all") !== undefined) {
for (const attr in dts) dts[attr] = true
for (const attr in dts)
if (Object.prototype.hasOwnProperty.call(dts, attr)) dts[attr] = true
} else {
// We bother checking if dts[x] is false because
// browser.browsingData.remove() is very strict on the format of the