refactor(frontend): Algemene linting fouten
This commit is contained in:
		
							parent
							
								
									8efce6bee0
								
							
						
					
					
						commit
						dd1000c662
					
				
					 9 changed files with 26 additions and 25 deletions
				
			
		|  | @ -20,13 +20,13 @@ const router = createRouter({ | |||
|         { | ||||
|             path: "/", | ||||
|             name: "home", | ||||
|             component: () => import("../views/HomePage.vue"), | ||||
|             component: async (): Promise<unknown> => import("../views/HomePage.vue"), | ||||
|             meta: { requiresAuth: false }, | ||||
|         }, | ||||
|         { | ||||
|             path: "/login", | ||||
|             name: "LoginPage", | ||||
|             component: () => import("../views/LoginPage.vue"), | ||||
|             component: async (): Promise<unknown> => import("../views/LoginPage.vue"), | ||||
|             meta: { requiresAuth: false }, | ||||
|         }, | ||||
|         { | ||||
|  | @ -108,7 +108,7 @@ const router = createRouter({ | |||
|     ], | ||||
| }); | ||||
| 
 | ||||
| router.beforeEach(async (to, from, next) => { | ||||
| router.beforeEach(async (to, _from, next) => { | ||||
|     // Verify if user is logged in before accessing certain routes
 | ||||
|     if (to.meta.requiresAuth) { | ||||
|         if (!authState.isLoggedIn.value) { | ||||
|  |  | |||
		Reference in a new issue