🚨 Lint code and prettier

This commit is contained in:
ajnart
2022-05-23 10:24:54 +02:00
parent 72e08f484f
commit 6a905e1b49
3 changed files with 17 additions and 17 deletions

View File

@@ -18,10 +18,10 @@ import { useForm } from '@mantine/form';
import { motion } from 'framer-motion'; import { motion } from 'framer-motion';
import { useState } from 'react'; import { useState } from 'react';
import { Apps } from 'tabler-icons-react'; import { Apps } from 'tabler-icons-react';
import { v4 as uuidv4 } from 'uuid';
import { useConfig } from '../../tools/state'; import { useConfig } from '../../tools/state';
import { ServiceTypeList } from '../../tools/types'; import { ServiceTypeList } from '../../tools/types';
import { AppShelfItemWrapper } from './AppShelfItemWrapper'; import { AppShelfItemWrapper } from './AppShelfItemWrapper';
import { v4 as uuidv4 } from 'uuid';
export function AddItemShelfButton(props: any) { export function AddItemShelfButton(props: any) {
const [opened, setOpened] = useState(false); const [opened, setOpened] = useState(false);

View File

@@ -33,9 +33,8 @@ export default function CalendarComponent(props: any) {
const nextMonth = new Date(new Date().setMonth(new Date().getMonth() + 2)).toISOString(); const nextMonth = new Date(new Date().setMonth(new Date().getMonth() + 2)).toISOString();
if (sonarrService && sonarrService.apiKey) { if (sonarrService && sonarrService.apiKey) {
const baseUrl = new URL(sonarrService.url).origin; const baseUrl = new URL(sonarrService.url).origin;
fetch( fetch(`${baseUrl}/api/calendar?apikey=${sonarrService?.apiKey}&end=${nextMonth}`).then(
`${baseUrl}/api/calendar?apikey=${sonarrService?.apiKey}&end=${nextMonth}` (response) => {
).then((response) => {
response.ok && response.ok &&
response.json().then((data) => { response.json().then((data) => {
setSonarrMedias(data); setSonarrMedias(data);
@@ -48,7 +47,8 @@ export default function CalendarComponent(props: any) {
message: `Loaded ${data.length} releases`, message: `Loaded ${data.length} releases`,
}); });
}); });
}); }
);
} }
if (radarrService && radarrService.apiKey) { if (radarrService && radarrService.apiKey) {
const baseUrl = new URL(radarrService.url).origin; const baseUrl = new URL(radarrService.url).origin;

View File

@@ -16,5 +16,5 @@
"incremental": true "incremental": true
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.js"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.js"],
"exclude": ["node_modules", "**/*.story.*"] "exclude": ["node_modules"]
} }