Skip to content

Commit 90ef60d

Browse files
committed
update @epic-web/config
1 parent 6847347 commit 90ef60d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+115
-108
lines changed

app/components/error-boundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function GeneralErrorBoundary({
1919
</p>
2020
),
2121
statusHandlers,
22-
unexpectedErrorHandler = error => <p>{getErrorMessage(error)}</p>,
22+
unexpectedErrorHandler = (error) => <p>{getErrorMessage(error)}</p>,
2323
}: {
2424
defaultStatusHandler?: StatusHandler
2525
statusHandlers?: Record<number, StatusHandler>

app/components/forms.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function ErrorList({
2525
if (!errorsToRender?.length) return null
2626
return (
2727
<ul id={id} className="flex flex-col gap-1">
28-
{errorsToRender.map(e => (
28+
{errorsToRender.map((e) => (
2929
<li key={e} className="text-[10px] text-foreground-destructive">
3030
{e}
3131
</li>
@@ -174,15 +174,15 @@ export function CheckboxField({
174174
aria-invalid={errorId ? true : undefined}
175175
aria-describedby={errorId}
176176
checked={input.value === checkedValue}
177-
onCheckedChange={state => {
177+
onCheckedChange={(state) => {
178178
input.change(state.valueOf() ? checkedValue : '')
179179
buttonProps.onCheckedChange?.(state)
180180
}}
181-
onFocus={event => {
181+
onFocus={(event) => {
182182
input.focus()
183183
buttonProps.onFocus?.(event)
184184
}}
185-
onBlur={event => {
185+
onBlur={(event) => {
186186
input.blur()
187187
buttonProps.onBlur?.(event)
188188
}}

app/components/search-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function SearchBar({
3232
method="GET"
3333
action="/users"
3434
className="flex flex-wrap items-center justify-center gap-2"
35-
onChange={e => autoSubmit && handleFormChange(e.currentTarget)}
35+
onChange={(e) => autoSubmit && handleFormChange(e.currentTarget)}
3636
>
3737
<div className="flex-1">
3838
<Label htmlFor={id} className="sr-only">

app/root.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function App() {
195195
const user = useOptionalUser()
196196
const theme = useTheme()
197197
const matches = useMatches()
198-
const isOnSearchPage = matches.find(m => m.id === 'routes/users+/index')
198+
const isOnSearchPage = matches.find((m) => m.id === 'routes/users+/index')
199199
const searchBar = isOnSearchPage ? null : <SearchBar status="idle" />
200200
const allowIndexing = data.ENV.ALLOW_INDEXING !== 'false'
201201
useToast(data.toast)
@@ -277,7 +277,7 @@ function UserDropdown() {
277277
<Link
278278
to={`/users/${user.username}`}
279279
// this is for progressive enhancement
280-
onClick={e => e.preventDefault()}
280+
onClick={(e) => e.preventDefault()}
281281
className="flex items-center gap-2"
282282
>
283283
<img
@@ -310,7 +310,7 @@ function UserDropdown() {
310310
<DropdownMenuItem
311311
asChild
312312
// this prevents the menu from closing before the form submission is completed
313-
onSelect={event => {
313+
onSelect={(event) => {
314314
event.preventDefault()
315315
submit(formRef.current)
316316
}}

app/routes/_auth+/auth.$provider.callback.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ afterEach(async () => {
2626
test('a new user goes to onboarding', async () => {
2727
const request = await setupRequest()
2828
const response = await loader({ request, params: PARAMS, context: {} }).catch(
29-
e => e,
29+
(e) => e,
3030
)
3131
expect(response).toHaveRedirect('/onboarding/github')
3232
})
@@ -40,7 +40,7 @@ test('when auth fails, send the user to login with a toast', async () => {
4040
)
4141
const request = await setupRequest()
4242
const response = await loader({ request, params: PARAMS, context: {} }).catch(
43-
e => e,
43+
(e) => e,
4444
)
4545
invariant(response instanceof Response, 'response should be a Response')
4646
expect(response).toHaveRedirect('/login')

app/routes/_auth+/auth.$provider.callback.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
3939
const authResult = await authenticator
4040
.authenticate(providerName, request, { throwOnError: true })
4141
.then(
42-
data => ({ success: true, data }) as const,
43-
error => ({ success: false, error }) as const,
42+
(data) => ({ success: true, data }) as const,
43+
(error) => ({ success: false, error }) as const,
4444
)
4545

4646
if (!authResult.success) {

app/routes/_auth+/login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function action({ request }: ActionFunctionArgs) {
4040
const formData = await request.formData()
4141
checkHoneypot(formData)
4242
const submission = await parseWithZod(formData, {
43-
schema: intent =>
43+
schema: (intent) =>
4444
LoginFormSchema.transform(async (data, ctx) => {
4545
if (intent !== null) return { ...data, session: null }
4646

@@ -167,7 +167,7 @@ export default function LoginPage() {
167167
</div>
168168
</Form>
169169
<ul className="mt-5 flex flex-col gap-5 border-b-2 border-t-2 border-border py-3">
170-
{providerNames.map(providerName => (
170+
{providerNames.map((providerName) => (
171171
<li key={providerName}>
172172
<ProviderConnectionForm
173173
type="Login"

app/routes/_auth+/onboarding.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export async function action({ request }: ActionFunctionArgs) {
6969
const formData = await request.formData()
7070
checkHoneypot(formData)
7171
const submission = await parseWithZod(formData, {
72-
schema: intent =>
72+
schema: (intent) =>
7373
SignupFormSchema.superRefine(async (data, ctx) => {
7474
const existingUser = await prisma.user.findUnique({
7575
where: { username: data.username },
@@ -83,7 +83,7 @@ export async function action({ request }: ActionFunctionArgs) {
8383
})
8484
return
8585
}
86-
}).transform(async data => {
86+
}).transform(async (data) => {
8787
if (intent !== null) return { ...data, session: null }
8888

8989
const session = await signup({ ...data, email })

app/routes/_auth+/onboarding_.$provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
130130
})
131131
return
132132
}
133-
}).transform(async data => {
133+
}).transform(async (data) => {
134134
const session = await signupWithConnection({
135135
...data,
136136
email,

app/routes/_auth+/signup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default function SignupRoute() {
166166
</StatusButton>
167167
</Form>
168168
<ul className="mt-5 flex flex-col gap-5 border-b-2 border-t-2 border-border py-3">
169-
{providerNames.map(providerName => (
169+
{providerNames.map((providerName) => (
170170
<li key={providerName}>
171171
<ProviderConnectionForm
172172
type="Signup"

0 commit comments

Comments
 (0)