From 190a67db9bb56def42ea85700e6cbb8f933619f8 Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Mon, 8 Jan 2024 19:10:44 +0300 Subject: [PATCH] Fix eslint errors --- src/application/services/useErrorCatcher.ts | 7 +------ src/index.ts | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/application/services/useErrorCatcher.ts b/src/application/services/useErrorCatcher.ts index 5517d1a9..6a99a206 100644 --- a/src/application/services/useErrorCatcher.ts +++ b/src/application/services/useErrorCatcher.ts @@ -12,17 +12,12 @@ declare global { } export const useErrorCatcher = createSharedComposable(() => { - /** - * Hawk catcher instance - */ - let hawk: typeof HawkCatcher | undefined; - /** * Initializes error catcher * * @param app - vue app instance */ - function init(app: App) { + function init(app: App): void { new HawkCatcher({ token: import.meta.env.VITE_HAWK_TOKEN, vue: app, diff --git a/src/index.ts b/src/index.ts index b56ca057..5a274b00 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,4 +14,5 @@ app.use(i18n); app.mount('#app'); const { init } = useErrorCatcher(); + init(app);