mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -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",
|
"off",
|
||||||
"always"
|
"always"
|
||||||
],
|
],
|
||||||
"guard-for-in": "off", //"error",
|
"guard-for-in": "error",
|
||||||
"id-blacklist": "off",
|
"id-blacklist": "off",
|
||||||
"id-match": "off",
|
"id-match": "off",
|
||||||
"import/order": "off",
|
"import/order": "off",
|
||||||
|
|
|
@ -3625,7 +3625,8 @@ export async function sanitise(...args: string[]) {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
if (args.find(x => x === "all") !== undefined) {
|
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 {
|
} else {
|
||||||
// We bother checking if dts[x] is false because
|
// We bother checking if dts[x] is false because
|
||||||
// browser.browsingData.remove() is very strict on the format of the
|
// browser.browsingData.remove() is very strict on the format of the
|
||||||
|
|
Loading…
Add table
Reference in a new issue