feat: Replace eslint => oxlint + oxfmt
All checks were successful
Deployment / wordpress (push) Successful in 6s
Deployment / nuxt (push) Successful in 58s

This commit is contained in:
2026-02-01 21:53:40 -05:00
parent 58dbcdd25a
commit 9bb09b89d9
60 changed files with 14948 additions and 5941 deletions

View File

@@ -1,5 +1,5 @@
import * as z from "zod";
import type { AcfLinkFragment } from "#graphql/operations";
import * as z from "zod";
const acfLinkSchema = z.object({
title: z.string(),
@@ -11,8 +11,7 @@ export type AcfLinkOutput = z.infer<typeof acfLinkSchema>;
export function parseAcfLink(data?: Partial<AcfLinkFragment>) {
try {
return acfLinkSchema.parse(data);
}
catch {
} catch {
return undefined;
}
}

View File

@@ -22,8 +22,7 @@ export const acfMediaSchema = z.object({
export function parseAcfMedia(data?: Partial<AcfMediaFragment>) {
try {
return acfMediaSchema.parse(data);
}
catch {
} catch {
return undefined;
}
}

View File

@@ -1,7 +1,9 @@
import * as z from "zod";
import type { AcfSocialFragment } from "#graphql/operations";
import * as z from "zod";
const socialProfile = z.object({ url: z.url() }).transform(({ url }) => ({ url, icon: getSocialIcon(url) }));
const socialProfile = z
.object({ url: z.url() })
.transform(({ url }) => ({ url, icon: getSocialIcon(url) }));
const acfSocialSchema = z.object({
profiles: z.array(socialProfile),
});
@@ -10,8 +12,7 @@ export type AcfSocialOutput = z.infer<typeof acfSocialSchema>;
export function parseAcfSocial(data?: AcfSocialFragment) {
try {
return acfSocialSchema.parse(data);
}
catch {
} catch {
return undefined;
}
}