Skip to content

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFomina committed Jan 8, 2024
1 parent d59af71 commit 190a67d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/application/services/useErrorCatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ app.use(i18n);
app.mount('#app');

const { init } = useErrorCatcher();

init(app);

0 comments on commit 190a67d

Please sign in to comment.