Skip to content

Commit 615812d

Browse files
committed
chore(*): eslint updates
1 parent 6fce4ef commit 615812d

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

examples/shadcn/src/screens/sign-in-auth-screen-w-handlers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function SignInAuthScreenWithHandlersPage() {
2222
const navigate = useNavigate();
2323
return (
2424
<SignInAuthScreen
25-
onSignIn={(credential) => {
25+
onSignIn={() => {
2626
navigate("/");
2727
}}
2828
onForgotPasswordClick={() => {

examples/shadcn/src/screens/sign-in-auth-screen-w-oauth.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515

1616
"use client";
1717

18-
import { GoogleSignInButton } from "@/components/google-sign-in-button";
19-
import { FacebookSignInButton } from "@/components/facebook-sign-in-button";
2018
import { AppleSignInButton } from "@/components/apple-sign-in-button";
19+
import { FacebookSignInButton } from "@/components/facebook-sign-in-button";
2120
import { GitHubSignInButton } from "@/components/github-sign-in-button";
21+
import { GoogleSignInButton } from "@/components/google-sign-in-button";
2222
import { MicrosoftSignInButton } from "@/components/microsoft-sign-in-button";
23-
import { TwitterSignInButton } from "@/components/twitter-sign-in-button";
2423
import { SignInAuthScreen } from "@/components/sign-in-auth-screen";
24+
import { TwitterSignInButton } from "@/components/twitter-sign-in-button";
2525
import { useNavigate } from "react-router";
2626

2727
export default function SignInAuthScreenWithOAuthPage() {
2828
const navigate = useNavigate();
2929

3030
return (
3131
<SignInAuthScreen
32-
onSignIn={(credential) => {
32+
onSignIn={() => {
3333
navigate("/");
3434
}}
3535
>

examples/shadcn/src/screens/sign-in-auth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function SignInAuthScreenPage() {
2323

2424
return (
2525
<SignInAuthScreen
26-
onSignIn={(credential) => {
26+
onSignIn={() => {
2727
navigate("/");
2828
}}
2929
/>

examples/shadcn/src/screens/sign-up-auth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function SignUpAuthScreenPage() {
2222
const navigate = useNavigate();
2323
return (
2424
<SignUpAuthScreen
25-
onSignUp={(credential) => {
25+
onSignUp={() => {
2626
navigate("/");
2727
}}
2828
/>

packages/shadcn/setup-test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
*/
1616

1717
import "@testing-library/jest-dom/vitest";
18-
import { vi, afterEach } from "vitest";
18+
import { afterEach, vi } from "vitest";
1919

2020
// Mock ResizeObserver for input-otp component
2121
global.ResizeObserver = class ResizeObserver {
2222
observe() {}
2323
unobserve() {}
2424
disconnect() {}
25+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2526
} as any;
2627

2728
afterEach(() => {

packages/shadcn/src/components/email-link-auth-form.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
"use client";
22

3+
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
34
import type { EmailLinkAuthFormSchema } from "@invertase/firebaseui-core";
5+
import { FirebaseUIError, getTranslation } from "@invertase/firebaseui-core";
46
import {
5-
useUI,
67
useEmailLinkAuthFormAction,
7-
useEmailLinkAuthFormSchema,
88
useEmailLinkAuthFormCompleteSignIn,
9+
useEmailLinkAuthFormSchema,
10+
useUI,
911
type EmailLinkAuthFormProps,
1012
} from "@invertase/firebaseui-react";
11-
import { useForm } from "react-hook-form";
12-
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
13-
import { FirebaseUIError, getTranslation } from "@invertase/firebaseui-core";
1413
import { useState } from "react";
14+
import { useForm } from "react-hook-form";
1515

16+
import { Policies } from "@/components/policies";
17+
import { Alert, AlertDescription } from "@/components/ui/alert";
18+
import { Button } from "@/components/ui/button";
1619
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
1720
import { Input } from "@/components/ui/input";
18-
import { Button } from "@/components/ui/button";
19-
import { Policies } from "@/components/policies";
20-
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
2121

2222
export type { EmailLinkAuthFormProps };
2323

packages/shadcn/src/components/multi-factor-auth-assertion-form.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"use client";
22

3-
import { PhoneMultiFactorGenerator, TotpMultiFactorGenerator, type MultiFactorInfo } from "firebase/auth";
4-
import { type ComponentProps, useState } from "react";
53
import { getTranslation } from "@invertase/firebaseui-core";
64
import { useUI } from "@invertase/firebaseui-react";
7-
import { useEffect } from "react";
5+
import { PhoneMultiFactorGenerator, TotpMultiFactorGenerator, type MultiFactorInfo } from "firebase/auth";
6+
import { useEffect, useState, type ComponentProps } from "react";
87

98
import { SmsMultiFactorAssertionForm } from "@/components/sms-multi-factor-assertion-form";
109
import { TotpMultiFactorAssertionForm } from "@/components/totp-multi-factor-assertion-form";
@@ -19,7 +18,7 @@ export function MultiFactorAuthAssertionForm() {
1918
return () => {
2019
ui.setMultiFactorResolver();
2120
};
22-
}, []);
21+
}, []); // eslint-disable-line react-hooks/exhaustive-deps
2322

2423
if (!resolver) {
2524
throw new Error("MultiFactorAuthAssertionForm requires a multi-factor resolver");

0 commit comments

Comments
 (0)