schoolbox web extension :)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: fix eslint errors

willow 99f442ac 73dc66df

+3 -4
+1 -2
src/entrypoints/end.content.ts
··· 1 - import { browser, defineContentScript } from "#imports"; 2 - import { dataAttr, hasChanged, setDataAttr } from "@/utils"; 1 + import { defineContentScript } from "#imports"; 3 2 import { EXCLUDE_MATCHES } from "@/utils/constants"; 4 3 import { logger } from "@/utils/logger"; 5 4 import { globalSettings, schoolboxUrls } from "@/utils/storage";
+2 -2
src/utils/index.ts
··· 160 160 } 161 161 } 162 162 163 - export function hasChanged<T extends Record<string, any>>(newValue: T, oldValue: T, keys: (keyof T)[]) { 163 + export function hasChanged<T extends Record<string, unknown>>(newValue: T, oldValue: T, keys: (keyof T)[]) { 164 164 const changed: (keyof T)[] = []; 165 165 166 166 for (const key in newValue) { 167 - if (newValue.hasOwnProperty(key) && oldValue[key] !== newValue[key]) { 167 + if (Object.prototype.hasOwnProperty.call(newValue, key) && oldValue[key] !== newValue[key]) { 168 168 changed.push(key); 169 169 } 170 170 }