From 023f3ca9e405589134fa1d2d921b24726879e1e8 Mon Sep 17 00:00:00 2001 From: "Thomas \"ajnart\" Camlong" Date: Sat, 30 Apr 2022 21:39:59 +0200 Subject: [PATCH] Eslint files --- .eslintignore | 3 ++- components/calendar/CalendarComponent.tsx | 10 +++------- tools/api.ts | 8 +++----- tools/settings.ts | 2 +- tools/types.ts | 4 ++-- 5 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.eslintignore b/.eslintignore index 4c43fe68f..60477535d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ -*.js \ No newline at end of file +*.js +nodes_modules/ \ No newline at end of file diff --git a/components/calendar/CalendarComponent.tsx b/components/calendar/CalendarComponent.tsx index e81c6aa98..746d695d9 100644 --- a/components/calendar/CalendarComponent.tsx +++ b/components/calendar/CalendarComponent.tsx @@ -1,16 +1,14 @@ import { Group, Indicator, Popover, Box, Container, Text, Avatar } from '@mantine/core'; import { useState } from 'react'; import { Calendar } from '@mantine/dates'; +import dayjs from 'dayjs'; import MediaDisplay from './MediaDisplay'; import { medias } from './mediaExample'; -import dayjs from 'dayjs'; import { useServices } from '../../tools/state'; -function GetCalendars(props: any) -{ +function GetCalendars(props: any) { // Load context const { services, addService, removeService, setServicesState } = useServices(); - } export default function CalendarComponent(props: any) { @@ -26,9 +24,7 @@ export default function CalendarComponent(props: any) { onChange={(day) => { setValue(day); }} - renderDay={(renderdate) => { - return ; - }} + renderDay={(renderdate) => } /> ); } diff --git a/tools/api.ts b/tools/api.ts index e543fe362..e44b6ee30 100644 --- a/tools/api.ts +++ b/tools/api.ts @@ -1,9 +1,7 @@ import { serviceItem } from '../components/AppShelf/AppShelf.d'; export function pingQbittorrent(service: serviceItem): any { - console.log("Getting service.cookie for service: ", service); - if (!service.cookie) - service.cookie = "Test"; - else - console.log(service.cookie); + console.log('Getting service.cookie for service: ', service); + if (!service.cookie) service.cookie = 'Test'; + else console.log(service.cookie); } diff --git a/tools/settings.ts b/tools/settings.ts index 6f0c8a955..174f5246c 100644 --- a/tools/settings.ts +++ b/tools/settings.ts @@ -14,4 +14,4 @@ export function loadSettings(path: string): Settings | null { export interface Settings { searchUrl: string; searchBar: boolean, -} \ No newline at end of file +} diff --git a/tools/types.ts b/tools/types.ts index 1adc83639..551c399b2 100644 --- a/tools/types.ts +++ b/tools/types.ts @@ -1,7 +1,7 @@ -import { serviceItem } from "../components/AppShelf/AppShelf.d"; +import { serviceItem } from '../components/AppShelf/AppShelf.d'; export interface Config { services: serviceItem[]; settings: {}; [key: string]: any; -} \ No newline at end of file +}