diff --git a/biome.json b/biome.json index 17393dfd1..9dc190833 100644 --- a/biome.json +++ b/biome.json @@ -46,7 +46,8 @@ "noUnusedTemplateLiteral": "error", "useNumberNamespace": "error", "noInferrableTypes": "error", - "noUselessElse": "error" + "noUselessElse": "error", + "noDescendingSpecificity": "off" } } } diff --git a/frontend/src/components/AccountDeleteButton.tsx b/frontend/src/components/AccountDeleteButton.tsx index da39f522e..6f1b80bec 100644 --- a/frontend/src/components/AccountDeleteButton.tsx +++ b/frontend/src/components/AccountDeleteButton.tsx @@ -70,7 +70,10 @@ const AccountDeleteButton: React.FC = (props) => { mutationFn: ({ password, hsErase, - }: { password: string | null; hsErase: boolean }) => + }: { + password: string | null; + hsErase: boolean; + }) => graphqlRequest({ query: MUTATION, variables: { password, hsErase }, diff --git a/frontend/src/components/ButtonLink.tsx b/frontend/src/components/ButtonLink.tsx index d8dc8de72..57362612d 100644 --- a/frontend/src/components/ButtonLink.tsx +++ b/frontend/src/components/ButtonLink.tsx @@ -7,7 +7,7 @@ import { createLink } from "@tanstack/react-router"; import { Button } from "@vector-im/compound-web"; import cx from "classnames"; -import { type PropsWithChildren, forwardRef } from "react"; +import { forwardRef, type PropsWithChildren } from "react"; import styles from "./ButtonLink.module.css"; type Props = { diff --git a/frontend/src/components/Dialog/Dialog.module.css b/frontend/src/components/Dialog/Dialog.module.css index cd5f1840a..eceb0c3bc 100644 --- a/frontend/src/components/Dialog/Dialog.module.css +++ b/frontend/src/components/Dialog/Dialog.module.css @@ -95,6 +95,7 @@ /* Cap the block size */ max-block-size: calc(100vh - var(--cpd-space-4x)); + /* biome-ignore lint/suspicious/noDuplicateProperties: this isn't a real duplicate */ max-block-size: calc(100svh - var(--cpd-space-4x)); /* Drawer comes in the Android style by default */ diff --git a/frontend/src/components/Dialog/Dialog.tsx b/frontend/src/components/Dialog/Dialog.tsx index fd354c872..45dba57a2 100644 --- a/frontend/src/components/Dialog/Dialog.tsx +++ b/frontend/src/components/Dialog/Dialog.tsx @@ -102,4 +102,4 @@ export const Title: React.FC = ({ children }) => ( {children} ); -export { Description, Close } from "@radix-ui/react-dialog"; +export { Close, Description } from "@radix-ui/react-dialog"; diff --git a/frontend/src/components/Dialog/index.ts b/frontend/src/components/Dialog/index.ts index db7bc83d5..73467a18a 100644 --- a/frontend/src/components/Dialog/index.ts +++ b/frontend/src/components/Dialog/index.ts @@ -4,4 +4,4 @@ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial // Please see LICENSE files in the repository root for full details. -export { Close, Dialog, Title, Description } from "./Dialog"; +export { Close, Description, Dialog, Title } from "./Dialog"; diff --git a/frontend/src/components/Layout/Layout.module.css b/frontend/src/components/Layout/Layout.module.css index ca51ed2ff..794f16783 100644 --- a/frontend/src/components/Layout/Layout.module.css +++ b/frontend/src/components/Layout/Layout.module.css @@ -16,6 +16,7 @@ /* Fallback for browsers that do not support 100svh */ min-height: 100vh; + /* biome-ignore lint/suspicious/noDuplicateProperties: this isn't a real duplicate */ min-height: 100svh; margin: 0 auto; diff --git a/frontend/src/components/LoadingScreen/LoadingScreen.module.css b/frontend/src/components/LoadingScreen/LoadingScreen.module.css index 4c2f04354..5963f9ecc 100644 --- a/frontend/src/components/LoadingScreen/LoadingScreen.module.css +++ b/frontend/src/components/LoadingScreen/LoadingScreen.module.css @@ -10,6 +10,7 @@ /* Fallback for browsers that do not support 100svh */ min-height: 100vh; + /* biome-ignore lint/suspicious/noDuplicateProperties: this isn't a real duplicate */ min-height: 100svh; justify-content: center; diff --git a/frontend/src/components/PaginationControls.tsx b/frontend/src/components/PaginationControls.tsx index ad569cf78..f8d3e68c3 100644 --- a/frontend/src/components/PaginationControls.tsx +++ b/frontend/src/components/PaginationControls.tsx @@ -39,9 +39,9 @@ const PaginationControls: React.FC = ({ {t("common.previous")}
- {count !== undefined ? ( - <>{t("frontend.pagination_controls.total", { totalCount: count })} - ) : null} + {count !== undefined + ? t("frontend.pagination_controls.total", { totalCount: count }) + : null}