Fix linting

This commit is contained in:
Maximilian Harz 2025-04-14 19:16:02 +02:00
parent 618bdf290e
commit f6fbc79f89
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,3 @@
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-unnecessary-condition */ /* eslint-disable @typescript-eslint/no-unnecessary-condition */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/restrict-plus-operands */ /* eslint-disable @typescript-eslint/restrict-plus-operands */
@ -177,8 +176,6 @@ export const TextView = ({
} }
if (href?.startsWith('#')) { if (href?.startsWith('#')) {
console.log(href.slice(1).toLowerCase())
console.log(tags)
const tag = tags.find( const tag = tags.find(
(t) => t.name.toLowerCase() === decodeURI(href).slice(1).toLowerCase(), (t) => t.name.toLowerCase() === decodeURI(href).slice(1).toLowerCase(),
) )

View File

@ -6,7 +6,9 @@ type UsePopupFormManagerResult = ReturnType<typeof usePopupFormManager>
const PoupFormContext = createContext<UsePopupFormManagerResult>({ const PoupFormContext = createContext<UsePopupFormManagerResult>({
popupForm: {} as PopupFormState | null, popupForm: {} as PopupFormState | null,
setPopupForm: () => {}, setPopupForm: () => {
/* empty function */
},
}) })
function usePopupFormManager(): { function usePopupFormManager(): {