Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

fix: linter

kapishdima02dbf0567708
diff --git a/app/(home)/blog/page.tsx b/app/(home)/blog/page.tsx
index 7241ff5a..e5ec60b6 100644
--- a/app/(home)/blog/page.tsx
+++ b/app/(home)/blog/page.tsx
@@ -87,6 +87,7 @@ export default function BlogPage() {
<div className="aspect-video overflow-hidden rounded-lg bg-muted outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10">
{post.videoPoster ? (
+ // biome-ignore lint/performance/noImgElement: remote CDN video posters of arbitrary origin
<img
src={post.videoPoster}
alt=""
diff --git a/app/(home)/components/sections/faq.tsx b/app/(home)/components/sections/faq.tsx
index 27ea9a8e..2a596fbb 100644
--- a/app/(home)/components/sections/faq.tsx
+++ b/app/(home)/components/sections/faq.tsx
@@ -20,33 +20,33 @@ export function Faq({ className }: { className?: string }) {
/>
<dl className="mt-10 max-w-2xl sm:mt-14">
- {FAQ_ITEMS.map((item, i) => (
- <div
- key={item.question}
- className={cn(
- "py-6 sm:py-7",
- i > 0 && "border-t border-border/60",
- )}
- >
- <dt className="text-base font-medium text-balance text-foreground sm:text-lg">
- {item.question}
- </dt>
- <dd className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
- {item.answer}
- </dd>
- </div>
- ))}
+ {FAQ_ITEMS.map((item, i) => (
+ <div
+ key={item.question}
+ className={cn(
+ "py-6 sm:py-7",
+ i > 0 && "border-t border-border/60",
+ )}
+ >
+ <dt className="text-base font-medium text-balance text-foreground sm:text-lg">
+ {item.question}
+ </dt>
+ <dd className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
+ {item.answer}
+ </dd>
+ </div>
+ ))}
</dl>
<p className="mt-8 max-w-2xl border-t border-border/60 pt-8 text-sm text-muted-foreground sm:text-base">
- Still stuck?{" "}
- <a
- href={`mailto:${SUPPORT_EMAIL}`}
- className="text-foreground underline underline-offset-4 transition-colors hover:text-muted-foreground"
- >
- Email us
- </a>{" "}
- and we’ll walk you through it.
+ Still stuck?{" "}
+ <a
+ href={`mailto:${SUPPORT_EMAIL}`}
+ className="text-foreground underline underline-offset-4 transition-colors hover:text-muted-foreground"
+ >
+ Email us
+ </a>{" "}
+ and we’ll walk you through it.
</p>
</div>
</section>
diff --git a/app/(home)/components/sections/landing-partners.tsx b/app/(home)/components/sections/landing-partners.tsx
index 0098ec6f..b8a67990 100644
--- a/app/(home)/components/sections/landing-partners.tsx
+++ b/app/(home)/components/sections/landing-partners.tsx
@@ -66,17 +66,17 @@ export function LandingPartners() {
)}
<div className="mt-10 flex justify-center">
- <Link
- href="/sponsors"
- className="group relative inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors before:absolute before:inset-x-0 before:-inset-y-2 before:content-[''] hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
- >
- Become a sponsor
- <ArrowRight
- className="size-4 transition-transform group-hover:translate-x-0.5 group-focus-visible:translate-x-0.5"
- aria-hidden="true"
- />
- </Link>
- </div>
+ <Link
+ href="/sponsors"
+ className="group relative inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors before:absolute before:inset-x-0 before:-inset-y-2 before:content-[''] hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
+ >
+ Become a sponsor
+ <ArrowRight
+ className="size-4 transition-transform group-hover:translate-x-0.5 group-focus-visible:translate-x-0.5"
+ aria-hidden="true"
+ />
+ </Link>
+ </div>
</div>
</section>
);
diff --git a/app/(home)/components/sections/why-remocn.tsx b/app/(home)/components/sections/why-remocn.tsx
index 102d3a3a..0090f9fc 100644
--- a/app/(home)/components/sections/why-remocn.tsx
+++ b/app/(home)/components/sections/why-remocn.tsx
@@ -44,18 +44,18 @@ export function WhyRemocn({ className }: { className?: string }) {
const Icon = ICONS[i];
return (
<div key={reason.title} className="min-w-0">
- <div className="flex items-center gap-2">
- <Icon
- aria-hidden
- className="size-4 shrink-0 text-muted-foreground"
- />
- <h3 className="text-base font-medium text-foreground">
- {reason.title}
- </h3>
- </div>
- <p className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
- {reason.detail}
- </p>
+ <div className="flex items-center gap-2">
+ <Icon
+ aria-hidden
+ className="size-4 shrink-0 text-muted-foreground"
+ />
+ <h3 className="text-base font-medium text-foreground">
+ {reason.title}
+ </h3>
+ </div>
+ <p className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
+ {reason.detail}
+ </p>
</div>
);
})}
diff --git a/app/(home)/showcases/components/showcase-author.tsx b/app/(home)/showcases/components/showcase-author.tsx
index 1fad592e..01528496 100644
--- a/app/(home)/showcases/components/showcase-author.tsx
+++ b/app/(home)/showcases/components/showcase-author.tsx
@@ -12,6 +12,7 @@ export function ShowcaseAuthor({
}) {
const body = (
<>
+ {/** biome-ignore lint/performance/noImgElement: remote showcase avatars of arbitrary origin */}
<img
src={author.avatarUrl}
alt=""
diff --git a/app/(home)/sponsors/components/sections/hero.tsx b/app/(home)/sponsors/components/sections/hero.tsx
index cd4d74ee..cce6901e 100644
--- a/app/(home)/sponsors/components/sections/hero.tsx
+++ b/app/(home)/sponsors/components/sections/hero.tsx
@@ -84,6 +84,7 @@ export function Hero() {
size="lg"
className="h-11 gap-2 rounded-full px-5 text-sm"
render={
+ // biome-ignore lint/a11y/useAnchorContent: Base UI render prop merges the button children into this anchor
<a
href={OPENPANEL_DASHBOARD_URL}
target="_blank"
diff --git a/app/(home)/sponsors/components/sections/tiers.tsx b/app/(home)/sponsors/components/sections/tiers.tsx
index 006fdd43..3bb45358 100644
--- a/app/(home)/sponsors/components/sections/tiers.tsx
+++ b/app/(home)/sponsors/components/sections/tiers.tsx
@@ -162,7 +162,10 @@ function TierCard({
variant={tier.highlighted ? "default" : "outline"}
size="lg"
className="h-11 w-full gap-2 rounded-full"
- render={<a href={checkoutUrl} target="_blank" rel="noreferrer" />}
+ render={
+ // biome-ignore lint/a11y/useAnchorContent: Base UI render prop merges the button children into this anchor
+ <a href={checkoutUrl} target="_blank" rel="noreferrer" />
+ }
>
Become a {tier.name}
<ArrowRight
diff --git a/app/globals.css b/app/globals.css
index 60edfd87..d7e2f612 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -110,17 +110,14 @@
--badge-new-fg: oklch(0.205 0 0);
--elevation-raised:
- 0 0 0 1px rgb(0 0 0 / 0.05),
- 0 1px 3px rgb(0 0 0 / 0.05),
- 0 4px 10px -4px rgb(0 0 0 / 0.05);
+ 0 0 0 1px rgb(0 0 0 / 0.05), 0 1px 3px rgb(0 0 0 / 0.05), 0 4px 10px -4px
+ rgb(0 0 0 / 0.05);
--elevation-raised-hover:
- 0 0 0 1px rgb(0 0 0 / 0.07),
- 0 1px 3px rgb(0 0 0 / 0.07),
- 0 4px 10px -4px rgb(0 0 0 / 0.08);
+ 0 0 0 1px rgb(0 0 0 / 0.07), 0 1px 3px rgb(0 0 0 / 0.07), 0 4px 10px -4px
+ rgb(0 0 0 / 0.08);
--elevation-raised-highlighted:
- 0 0 0 1px rgb(0 0 0 / 0.15),
- 0 1px 3px rgb(0 0 0 / 0.05),
- 0 4px 10px -4px rgb(0 0 0 / 0.05);
+ 0 0 0 1px rgb(0 0 0 / 0.15), 0 1px 3px rgb(0 0 0 / 0.05), 0 4px 10px -4px
+ rgb(0 0 0 / 0.05);
}
.dark {
diff --git a/app/og/docs/[...slug]/route.tsx b/app/og/docs/[...slug]/route.tsx
index da6ddbe0..1b1a55fe 100644
--- a/app/og/docs/[...slug]/route.tsx
+++ b/app/og/docs/[...slug]/route.tsx
@@ -48,6 +48,7 @@ export async function GET(
position: "relative",
}}
>
+ {/** biome-ignore lint/performance/noImgElement: ImageResponse (satori) renders plain img only */}
<img
src={bgDataUri}
width={1200}
@@ -56,6 +57,7 @@ export async function GET(
style={{ position: "absolute", top: 0, left: 0 }}
/>
<div style={{ display: "flex", alignItems: "center", gap: 12 }}>
+ {/** biome-ignore lint/performance/noImgElement: ImageResponse (satori) renders plain img only */}
<img src={markDataUri} width={30} height={32} alt="" />
<span
style={{
diff --git a/components/docs/code-block-command.tsx b/components/docs/code-block-command.tsx
index ac6b4972..888f318f 100644
--- a/components/docs/code-block-command.tsx
+++ b/components/docs/code-block-command.tsx
@@ -102,7 +102,11 @@ export function CodeBlockCommand({
{tabsFiltered.map(([key, value]) => (
<TabsPrimitive.Panel key={key} value={key} className="outline-none">
- <pre tabIndex={0} className="overflow-x-auto overscroll-x-contain p-4">
+ <pre
+ // biome-ignore lint/a11y/noNoninteractiveTabindex: horizontally scrollable code must be keyboard-focusable
+ tabIndex={0}
+ className="overflow-x-auto overscroll-x-contain p-4"
+ >
<code
data-slot="code-block"
data-language="bash"
diff --git a/components/docs/props-table.tsx b/components/docs/props-table.tsx
index 8cfe5bde..e14d978e 100644
--- a/components/docs/props-table.tsx
+++ b/components/docs/props-table.tsx
@@ -9,7 +9,11 @@ export interface PropDef {
export function PropsTable({ rows }: { rows: PropDef[] }) {
return (
<div className="surface-card not-prose my-6 max-w-4xl overflow-hidden rounded-2xl">
- <div tabIndex={0} className="overflow-x-auto">
+ <div
+ // biome-ignore lint/a11y/noNoninteractiveTabindex: horizontally scrollable table must be keyboard-focusable
+ tabIndex={0}
+ className="overflow-x-auto"
+ >
<table className="w-full border-collapse text-sm">
<thead>
<tr className="border-b border-border/60">
diff --git a/lib/analytics.ts b/lib/analytics.ts
index ae2d2849..c1869068 100644
--- a/lib/analytics.ts
+++ b/lib/analytics.ts
@@ -39,6 +39,9 @@ type AnalyticsEvents = {
customized_link_shared: {
component: string;
};
+ docs_markdown_copied: {
+ page: string;
+ };
customizer_reset: {
component: string;
};
diff --git a/mdx-components.tsx b/mdx-components.tsx
index 8b8c1348..80d5c855 100644
--- a/mdx-components.tsx
+++ b/mdx-components.tsx
@@ -40,6 +40,7 @@ function Pre({ className, ...props }: ComponentProps<"pre">) {
return (
<pre
data-not-typeset
+ // biome-ignore lint/a11y/noNoninteractiveTabindex: horizontally scrollable code must be keyboard-focusable
tabIndex={0}
className={cn(
"min-w-0 overflow-x-auto px-4 py-3.5 has-data-line-numbers:px-0",
diff --git a/scripts/21st/generate.mts b/scripts/21st/generate.mts
index 16b5eb90..3147fced 100644
--- a/scripts/21st/generate.mts
+++ b/scripts/21st/generate.mts
@@ -100,8 +100,10 @@ function mergeIconWithCore(iconCode: string, coreCode: string): string {
for (const s of specs) {
if (set.has(s.replace(/^type /, ""))) continue;
if (s.startsWith("type ") || !set.has(`type ${s}`)) set.add(s);
- if (!s.startsWith("type ") && set.has(`type ${s}`))
- set.delete(`type ${s}`), set.add(s);
+ if (!s.startsWith("type ") && set.has(`type ${s}`)) {
+ set.delete(`type ${s}`);
+ set.add(s);
+ }
}
named.set(mod, set);
}