chore: update Prettier configuration and dependencies; refactor code formatting for consistency (#3926)

This commit is contained in:
Tunglies
2025-06-28 18:37:53 +08:00
committed by GitHub
parent 82af9ed78e
commit bea6a2c8f7
7 changed files with 45 additions and 17 deletions

View File

@@ -86,9 +86,7 @@ const InnerConnectionDetail = ({ data, onClose }: InnerProps) => {
{ label: t("Rule"), value: rule },
{
label: t("Process"),
value: `${metadata.process}${
metadata.processPath ? `(${metadata.processPath})` : ""
}`,
value: `${metadata.process}${metadata.processPath ? `(${metadata.processPath})` : ""}`,
},
{ label: t("Time"), value: dayjs(data.start).fromNow() },
{

View File

@@ -59,7 +59,9 @@ export const ProfileItem = (props: Props) => {
transform,
transition,
isDragging,
} = useSortable({ id: props.id });
} = useSortable({
id: props.id,
});
const { t } = useTranslation();
const [anchorEl, setAnchorEl] = useState<any>(null);

View File

@@ -30,7 +30,9 @@ export const TestItem = (props: Props) => {
transform,
transition,
isDragging,
} = useSortable({ id: props.id });
} = useSortable({
id: props.id,
});
const { t } = useTranslation();
const [anchorEl, setAnchorEl] = useState<any>(null);

View File

@@ -48,7 +48,10 @@ export function useServiceInstaller() {
"error",
t(
"Failed to check service status, retrying attempt {count}/{total}...",
{ count: i + 1, total: 5 },
{
count: i + 1,
total: 5,
},
),
);
}