Rework how the linting is done

This commit is contained in:
Taevas 2025-02-16 17:05:02 +01:00
parent 51091d6d59
commit 96911a8d95
30 changed files with 111 additions and 108 deletions

View file

@ -1,5 +1,5 @@
export async function api<T>(url: string, restful_token?: string): Promise<T> {
// eslint-disable-next-line @typescript-eslint/naming-convention
return (restful_token ? fetch(url, {headers: {"Authorization": `Bearer ${restful_token}`}}) : fetch(url))
.then(async response => {
if (!response.ok) {