mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Re-enable guard-for-in
This commit is contained in:
parent
96f763e42e
commit
d72016f10f
2 changed files with 3 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue