style: fix linting issues met ESLint
This commit is contained in:
		
							parent
							
								
									82c2197950
								
							
						
					
					
						commit
						9895d22521
					
				
					 2 changed files with 14 additions and 14 deletions
				
			
		|  | @ -27,7 +27,7 @@ export function useStudentQuery(username: MaybeRefOrGetter<string | undefined>) | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => STUDENT_QUERY_KEY(toValue(username)!)), | ||||
|         queryFn: () => studentController.getByUsername(toValue(username)!), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -35,7 +35,7 @@ export function useStudentClassesQuery(username: MaybeRefOrGetter<string | undef | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => STUDENT_CLASSES_QUERY_KEY(toValue(username)!, toValue(full))), | ||||
|         queryFn: () => studentController.getClasses(toValue(username)!, toValue(full)), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -43,7 +43,7 @@ export function useStudentAssignmentsQuery(username: MaybeRefOrGetter<string | u | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => STUDENT_ASSIGNMENTS_QUERY_KEY(toValue(username)!, toValue(full))), | ||||
|         queryFn: () => studentController.getAssignments(toValue(username)!, toValue(full)), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -51,7 +51,7 @@ export function useStudentGroupsQuery(username: MaybeRefOrGetter<string | undefi | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => STUDENT_GROUPS_QUERY_KEY(toValue(username)!, toValue(full))), | ||||
|         queryFn: () => studentController.getGroups(toValue(username)!, toValue(full)), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -59,7 +59,7 @@ export function useStudentSubmissionsQuery(username: MaybeRefOrGetter<string | u | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => STUDENT_SUBMISSIONS_QUERY_KEY(toValue(username)!)), | ||||
|         queryFn: () => studentController.getSubmissions(toValue(username)!), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -67,7 +67,7 @@ export function useStudentQuestionsQuery(username: MaybeRefOrGetter<string | und | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => STUDENT_QUESTIONS_QUERY_KEY(toValue(username)!, toValue(full))), | ||||
|         queryFn: () => studentController.getQuestions(toValue(username)!, toValue(full)), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -86,8 +86,8 @@ export function useCreateStudentMutation() { | |||
| } | ||||
| 
 | ||||
| // TODO
 | ||||
| // setquerydata
 | ||||
| // previous students
 | ||||
| // Setquerydata
 | ||||
| // Previous students
 | ||||
| export function useDeleteStudentMutation() { | ||||
|     const queryClient = useQueryClient(); | ||||
| 
 | ||||
|  | @ -106,7 +106,7 @@ export function useStudentJoinRequestsQuery(username: MaybeRefOrGetter<string | | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => STUDENT_JOIN_REQUESTS_QUERY_KEY(toValue(username)!)), | ||||
|         queryFn: () => studentController.getJoinRequests(toValue(username)!), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -24,7 +24,7 @@ export function useTeacherQuery(username: MaybeRefOrGetter<string | undefined>) | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => TEACHER_QUERY_KEY(toValue(username)!)), | ||||
|         queryFn: () => teacherController.getByUsername(toValue(username)!), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -32,7 +32,7 @@ export function useTeacherClassesQuery(username: MaybeRefOrGetter<string | undef | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => TEACHER_CLASSES_QUERY_KEY(toValue(username)!, toValue(full))), | ||||
|         queryFn: () => teacherController.getClasses(toValue(username)!, toValue(full)), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -40,7 +40,7 @@ export function useTeacherStudentsQuery(username: MaybeRefOrGetter<string | unde | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => TEACHER_STUDENTS_QUERY_KEY(toValue(username)!, toValue(full))), | ||||
|         queryFn: () => teacherController.getStudents(toValue(username)!, toValue(full)), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -48,7 +48,7 @@ export function useTeacherQuestionsQuery(username: MaybeRefOrGetter<string | und | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => TEACHER_QUESTIONS_QUERY_KEY(toValue(username)!, toValue(full))), | ||||
|         queryFn: () => teacherController.getQuestions(toValue(username)!, toValue(full)), | ||||
|         enabled: () => !!toValue(username), | ||||
|         enabled: () => Boolean(toValue(username)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  | @ -56,7 +56,7 @@ export function useTeacherJoinRequestsQuery(username: MaybeRefOrGetter<string | | |||
|     return useQuery({ | ||||
|         queryKey: computed(() => JOIN_REQUESTS_QUERY_KEY(toValue(username)!, toValue(classId)!)), | ||||
|         queryFn: () => teacherController.getStudentJoinRequests(toValue(username)!, toValue(classId)!), | ||||
|         enabled: () => !!toValue(username) && !!toValue(classId), | ||||
|         enabled: () => Boolean(toValue(username)) && Boolean(toValue(classId)), | ||||
|     }); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action