Migrate from Biome to Oxlint/Oxfmt (#2822)

* Migrate from Biome to Oxlint/Oxfmt

* pin version of autofix

* set version of autofix

* pin version of autofix

* [autofix.ci] apply automated fixes

* better comments, test formatter

* [autofix.ci] apply automated fixes

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Amruth Pillai
2026-03-18 14:59:05 +01:00
committed by GitHub
parent 040755bec9
commit 99c602e3c7
338 changed files with 19496 additions and 5374 deletions
+4 -3
View File
@@ -4,6 +4,7 @@ import { GithubLogoIcon, GoogleLogoIcon, VaultIcon } from "@phosphor-icons/react
import { useQuery } from "@tanstack/react-query";
import { useRouter } from "@tanstack/react-router";
import { toast } from "sonner";
import { Button } from "@/components/ui/button";
import { authClient } from "@/integrations/auth/client";
import { orpc } from "@/integrations/orpc/client";
@@ -27,7 +28,7 @@ export function SocialAuth() {
}
toast.dismiss(toastId);
router.invalidate();
await router.invalidate();
};
const handleOAuthLogin = async () => {
@@ -44,14 +45,14 @@ export function SocialAuth() {
}
toast.dismiss(toastId);
router.invalidate();
await router.invalidate();
};
return (
<>
<div className="flex items-center gap-x-2">
<hr className="flex-1" />
<span className="font-medium text-xs tracking-wide">
<span className="text-xs font-medium tracking-wide">
<Trans context="Choose to authenticate with a social provider (Google, GitHub, etc.) instead of email and password">
or continue with
</Trans>
+3 -2
View File
@@ -7,6 +7,7 @@ import { useState } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import z from "zod";
import { Button } from "@/components/ui/button";
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
import { Input } from "@/components/ui/input";
@@ -57,7 +58,7 @@ function RouteComponent() {
return (
<>
<div className="space-y-1 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>Forgot your password?</Trans>
</h1>
@@ -109,7 +110,7 @@ function PostForgotPasswordScreen() {
return (
<>
<div className="space-y-1 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>You've got mail!</Trans>
</h1>
<p className="text-muted-foreground">
+6 -4
View File
@@ -7,10 +7,12 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { useToggle } from "usehooks-ts";
import z from "zod";
import { Button } from "@/components/ui/button";
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { authClient } from "@/integrations/auth/client";
import { SocialAuth } from "./-components/social-auth";
export const Route = createFileRoute("/auth/login")({
@@ -66,14 +68,14 @@ function RouteComponent() {
// Credential check passed, but the account still requires a 2FA verification step.
if (requiresTwoFactor) {
toast.dismiss(toastId);
navigate({ to: "/auth/verify-2fa", replace: true });
void navigate({ to: "/auth/verify-2fa", replace: true });
return;
}
// Refresh route context so protected routes can read the newly established session.
await router.invalidate();
toast.dismiss(toastId);
navigate({ to: "/dashboard", replace: true });
await router.invalidate();
void navigate({ to: "/dashboard", replace: true });
} catch {
toast.error(t`Failed to sign in. Please try again.`, { id: toastId });
}
@@ -82,7 +84,7 @@ function RouteComponent() {
return (
<>
<div className="space-y-1 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>Sign in to your account</Trans>
</h1>
+4 -2
View File
@@ -8,11 +8,13 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { useToggle } from "usehooks-ts";
import z from "zod";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { authClient } from "@/integrations/auth/client";
import { SocialAuth } from "./-components/social-auth";
export const Route = createFileRoute("/auth/register")({
@@ -82,7 +84,7 @@ function RouteComponent() {
return (
<>
<div className="space-y-1 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>Create a new account</Trans>
</h1>
@@ -219,7 +221,7 @@ function PostSignupScreen() {
return (
<>
<div className="space-y-1 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>You've got mail!</Trans>
</h1>
<p className="text-muted-foreground">
+4 -2
View File
@@ -8,6 +8,7 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { useToggle } from "usehooks-ts";
import z from "zod";
import { Button } from "@/components/ui/button";
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
import { Input } from "@/components/ui/input";
@@ -59,13 +60,14 @@ function RouteComponent() {
toast.success(t`Your password has been reset successfully. You can now sign in with your new password.`, {
id: toastId,
});
navigate({ to: "/auth/login" });
void navigate({ to: "/auth/login" });
};
return (
<>
<div className="space-y-1 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>Reset your password</Trans>
</h1>
+4 -3
View File
@@ -11,6 +11,7 @@ import { useForm } from "react-hook-form";
import { toast } from "sonner";
import { useToggle } from "usehooks-ts";
import z from "zod";
import { Button } from "@/components/ui/button";
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
import { Input } from "@/components/ui/input";
@@ -67,7 +68,7 @@ function RouteComponent() {
{
onSuccess: () => {
toast.dismiss(toastId);
navigate({ to: redirect, replace: true });
void navigate({ to: redirect, replace: true });
},
onError: (error) => {
if (error instanceof ORPCError && error.code === "INVALID_PASSWORD") {
@@ -84,11 +85,11 @@ function RouteComponent() {
return (
<>
<div className="space-y-4 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>The resume you are trying to access is password protected</Trans>
</h1>
<div className="text-muted-foreground leading-relaxed">
<div className="leading-relaxed text-muted-foreground">
<Trans>Please enter the password shared with you by the owner of the resume to continue.</Trans>
</div>
</div>
+2 -1
View File
@@ -1,4 +1,5 @@
import { createFileRoute, Outlet } from "@tanstack/react-router";
import { BrandIcon } from "@/components/ui/brand-icon";
export const Route = createFileRoute("/auth")({
@@ -7,7 +8,7 @@ export const Route = createFileRoute("/auth")({
function RouteComponent() {
return (
<div className="mx-auto flex h-svh w-dvw max-w-sm flex-col justify-center space-y-6 px-4 xs:px-0">
<div className="xs:px-0 mx-auto flex h-svh w-dvw max-w-sm flex-col justify-center space-y-6 px-4">
<BrandIcon className="mb-4 size-20 self-center" />
<Outlet />
+4 -3
View File
@@ -7,6 +7,7 @@ import { REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import z from "zod";
import { Button } from "@/components/ui/button";
import { Form, FormControl, FormField, FormItem, FormMessage } from "@/components/ui/form";
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "@/components/ui/input-otp";
@@ -48,14 +49,14 @@ function RouteComponent() {
}
toast.dismiss(toastId);
router.invalidate();
navigate({ to: "/dashboard", replace: true });
await router.invalidate();
void navigate({ to: "/dashboard", replace: true });
};
return (
<>
<div className="space-y-1 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>Verify with a Backup Code</Trans>
</h1>
<div className="text-muted-foreground">
+4 -3
View File
@@ -7,6 +7,7 @@ import { REGEXP_ONLY_DIGITS } from "input-otp";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
import z from "zod";
import { Button } from "@/components/ui/button";
import { Form, FormControl, FormField, FormItem, FormMessage } from "@/components/ui/form";
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "@/components/ui/input-otp";
@@ -48,15 +49,15 @@ function RouteComponent() {
return;
}
router.invalidate();
toast.dismiss(toastId);
navigate({ to: "/dashboard", replace: true });
await router.invalidate();
void navigate({ to: "/dashboard", replace: true });
};
return (
<>
<div className="space-y-1 text-center">
<h1 className="font-bold text-2xl tracking-tight">
<h1 className="text-2xl font-bold tracking-tight">
<Trans>Two-Factor Authentication</Trans>
</h1>
<div className="text-muted-foreground">