Add TypeScript to app-frontend (#2364)

* Add TypeScript to app-frontend

Co-authored-by: Evan Song <52982404+ferothefox@users.noreply.github.com>

* Switch app-frontend to ESLint 9 & Nuxt config

* Fix ESLint issues after config change in app-frontend

---------

Co-authored-by: Evan Song <52982404+ferothefox@users.noreply.github.com>
This commit is contained in:
Sasha Sorokin
2024-09-08 08:40:40 +02:00
committed by GitHub
parent 16c5a5a3a6
commit b3a6393c91
23 changed files with 1050 additions and 252 deletions

View File

@@ -56,7 +56,7 @@ export function debounce(fn, wait) {
if (timer) {
clearTimeout(timer) // clear any pre-existing timer
}
// eslint-disable-next-line @typescript-eslint/no-this-alias
const context = this // get the current context
timer = setTimeout(() => {
fn.apply(context, args) // call the function if time expires