add eslint

This commit is contained in:
Eduard Gert
2026-06-18 13:56:41 +02:00
parent 3175b880e4
commit cc842f17d5
61 changed files with 2631 additions and 364 deletions
@@ -1,4 +1,4 @@
import { ReactNode, forwardRef } from "react";
import { type ReactNode, forwardRef } from "react";
import { cn } from "@/lib/cn.ts";
import { isMacOS } from "@/lib/platform.ts";
@@ -17,9 +17,7 @@ export const ConfirmDialog = forwardRef<HTMLDivElement, ConfirmDialogProps>(func
open
aria-label={ariaLabel}
aria-labelledby={ariaLabelledBy}
className={
"wails-draggable select-none flex flex-col items-center static bg-transparent text-inherit p-0 m-0 max-w-none max-h-none border-0 w-full"
}
className={"wails-draggable select-none flex flex-col items-center static bg-transparent text-inherit p-0 m-0 max-w-none max-h-none border-0 w-full"}
>
<div
ref={ref}
@@ -1,4 +1,4 @@
import { ReactNode } from "react";
import { type ReactNode } from "react";
import { useTranslation } from "react-i18next";
import * as Dialog from "@/components/dialog/Dialog";
import { Button } from "@/components/buttons/Button";
@@ -43,15 +43,15 @@ export const ConfirmModal = ({
}}
>
<Dialog.Content
maxWidthClass="max-w-sm"
maxWidthClass={"max-w-sm"}
showClose={false}
className="py-5"
className={"py-5"}
srTitle={srTitle}
srDescription={srDescription}
onOpenAutoFocus={(e) => e.preventDefault()}
>
<div className="flex flex-col gap-5 px-5">
<div className="flex flex-col gap-1 pl-1">
<div className={"flex flex-col gap-5 px-5"}>
<div className={"flex flex-col gap-1 pl-1"}>
<DialogHeading align={"left"}>{title}</DialogHeading>
<DialogDescription align={"left"} className={"whitespace-pre-line"}>
{description}
@@ -1,4 +1,4 @@
import { forwardRef, ComponentPropsWithoutRef, ElementRef, HTMLAttributes } from "react";
import { forwardRef, type ComponentPropsWithoutRef, type ElementRef, type HTMLAttributes } from "react";
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
import { X } from "lucide-react";
@@ -96,7 +96,7 @@ export const Content = forwardRef<ElementRef<typeof DialogPrimitive.Content>, Co
)}
aria-label={t("common.close")}
>
<X className="h-4 w-4" aria-hidden="true" />
<X className={"h-4 w-4"} aria-hidden={"true"} />
</DialogPrimitive.Close>
)}
</DialogPrimitive.Content>
@@ -1,4 +1,4 @@
import { ReactNode } from "react";
import { type ReactNode } from "react";
import { cn } from "@/lib/cn";
type DialogActionsProps = {
@@ -1,4 +1,4 @@
import { ReactNode } from "react";
import { type ReactNode } from "react";
import { cn } from "@/lib/cn";
type DialogAlign = "left" | "center" | "right";
@@ -1,4 +1,4 @@
import { ReactNode } from "react";
import { type ReactNode } from "react";
import { cn } from "@/lib/cn";
type DialogAlign = "left" | "center" | "right";