From 323086db099dc40707c6cd6d9bfc99fd99ea3788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Bart=C3=ADk?= <63553146+sambartik@users.noreply.github.com> Date: Wed, 7 Sep 2022 15:45:08 +0200 Subject: [PATCH] refactor: automatic eslint fix --- server/api/jellyfin.ts | 7 ++++--- server/migration/1613379909641-AddJellyfinUserParams.ts | 2 +- server/migration/1613412948344-ServerTypeEnum.ts | 2 +- server/migration/1613670041760-AddJellyfinDeviceId.ts | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/server/api/jellyfin.ts b/server/api/jellyfin.ts index 5dd258c4..cccceedd 100644 --- a/server/api/jellyfin.ts +++ b/server/api/jellyfin.ts @@ -1,6 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import axios, { AxiosInstance } from 'axios'; -import logger from '../logger'; +import type { AxiosInstance } from 'axios'; +import axios from 'axios'; +import logger from 'server/logger'; export interface JellyfinUserResponse { Name: string; @@ -16,7 +17,7 @@ export interface JellyfinLoginResponse { } export interface JellyfinUserListResponse { - users: Array; + users: JellyfinUserResponse[]; } export interface JellyfinLibrary { diff --git a/server/migration/1613379909641-AddJellyfinUserParams.ts b/server/migration/1613379909641-AddJellyfinUserParams.ts index 46ef3319..b56c873a 100644 --- a/server/migration/1613379909641-AddJellyfinUserParams.ts +++ b/server/migration/1613379909641-AddJellyfinUserParams.ts @@ -1,4 +1,4 @@ -import { MigrationInterface, QueryRunner } from 'typeorm'; +import type { MigrationInterface, QueryRunner } from 'typeorm'; export class AddJellyfinUserParams1613379909641 implements MigrationInterface { name = 'AddJellyfinUserParams1613379909641'; diff --git a/server/migration/1613412948344-ServerTypeEnum.ts b/server/migration/1613412948344-ServerTypeEnum.ts index b8f95053..0fb18f23 100644 --- a/server/migration/1613412948344-ServerTypeEnum.ts +++ b/server/migration/1613412948344-ServerTypeEnum.ts @@ -1,4 +1,4 @@ -import { MigrationInterface, QueryRunner } from 'typeorm'; +import type { MigrationInterface, QueryRunner } from 'typeorm'; export class ServerTypeEnum1613412948344 implements MigrationInterface { name = 'ServerTypeEnum1613412948344'; diff --git a/server/migration/1613670041760-AddJellyfinDeviceId.ts b/server/migration/1613670041760-AddJellyfinDeviceId.ts index 104b4146..c800f100 100644 --- a/server/migration/1613670041760-AddJellyfinDeviceId.ts +++ b/server/migration/1613670041760-AddJellyfinDeviceId.ts @@ -1,4 +1,4 @@ -import { MigrationInterface, QueryRunner } from 'typeorm'; +import type { MigrationInterface, QueryRunner } from 'typeorm'; export class AddJellyfinDeviceId1613670041760 implements MigrationInterface { name = 'AddJellyfinDeviceId1613670041760';