Skip to content

Commit 2f28f94

Browse files
Update prettier [skip ci] (#171)
* update prettier and run it * minify api-docs.json * Update prettier-plugin-tailwindcss
1 parent 7c99675 commit 2f28f94

35 files changed

+144
-103225
lines changed

app/components/color-scheme-toggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ let ColorSchemeButton = React.forwardRef<
7070
"flex w-full items-center gap-4 px-4 py-1",
7171
colorScheme === props.value
7272
? "text-red-brand"
73-
: "hover:bg-gray-50 active:text-red-brand dark:hover:bg-gray-700 dark:active:text-red-brand"
73+
: "hover:bg-gray-50 active:text-red-brand dark:hover:bg-gray-700 dark:active:text-red-brand",
7474
)}
7575
>
7676
<svg className="h-[18px] w-[18px]">

app/components/docs-header/data.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type HeaderData = Awaited<ReturnType<typeof getHeaderData>>;
99
export async function getHeaderData(
1010
lang: string,
1111
ref: string,
12-
refParam?: string
12+
refParam?: string,
1313
) {
1414
let githubRef = ref;
1515
let branchesInMenu = ["main", "dev"];

app/components/docs-header/docs-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function HeaderSvgLink({
8787
href={href}
8888
className={classNames(
8989
`hidden text-gray-400 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50 md:block`,
90-
className
90+
className,
9191
)}
9292
title={title}
9393
>

app/components/docs-menu/menu-desktop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function NavMenuDesktop({ children }: { children: React.ReactNode }) {
66
className={classNames(
77
"sticky bottom-0 top-16 hidden w-[--nav-width] flex-col gap-3 self-start overflow-auto py-6 pl-8 pr-6 lg:flex",
88
// Account for the height of the top nav
9-
"h-[calc(100vh-var(--header-height))]"
9+
"h-[calc(100vh-var(--header-height))]",
1010
)}
1111
>
1212
<div className="[&_*:focus]:scroll-mt-[6rem]">{children}</div>

app/components/docs-menu/menu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function MenuSummary({ children }: { children: React.ReactNode }) {
132132
sharedClassName,
133133
"_no-triangle block cursor-pointer select-none",
134134
"outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-red-brand dark:focus-visible:ring-gray-100",
135-
"hover:bg-gray-50 active:bg-gray-100 dark:bg-gray-900 dark:hover:bg-gray-800 dark:active:bg-gray-700"
135+
"hover:bg-gray-50 active:bg-gray-100 dark:bg-gray-900 dark:hover:bg-gray-800 dark:active:bg-gray-700",
136136
)}
137137
>
138138
<div className="flex h-5 w-full items-center justify-between font-bold">
@@ -157,7 +157,7 @@ function HeaderMenuLink({
157157
"relative -mx-4 flex items-center justify-between rounded-md px-4 py-3 font-bold",
158158
isActive
159159
? "bg-gray-50 font-semibold text-red-brand dark:bg-gray-800"
160-
: "hover:bg-gray-50 active:text-red-brand dark:hover:bg-gray-800 dark:active:text-red-brand"
160+
: "hover:bg-gray-50 active:text-red-brand dark:hover:bg-gray-800 dark:active:text-red-brand",
161161
)
162162
}
163163
>
@@ -175,7 +175,7 @@ function MenuLink({ to, children }: { to: string; children: React.ReactNode }) {
175175
"relative -mx-2 flex items-center justify-between rounded-md px-4 py-1.5 lg:text-sm",
176176
isActive
177177
? "bg-gray-50 font-semibold text-red-brand dark:bg-gray-800"
178-
: "text-gray-400 hover:text-gray-800 active:text-red-brand dark:text-gray-400 dark:hover:text-gray-50 dark:active:text-red-brand"
178+
: "text-gray-400 hover:text-gray-800 active:text-red-brand dark:text-gray-400 dark:hover:text-gray-50 dark:active:text-red-brand",
179179
)
180180
}
181181
>

app/components/on-this-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function LargeOnThisPage({
6969
className={classNames(
7070
activeHeading == heading.slug &&
7171
"text-gray-900 dark:text-gray-50",
72-
" block py-1 text-sm text-gray-400 hover:text-gray-900 active:text-red-brand dark:text-gray-400 dark:hover:text-gray-50 dark:active:text-red-brand"
72+
" block py-1 text-sm text-gray-400 hover:text-gray-900 active:text-red-brand dark:text-gray-400 dark:hover:text-gray-50 dark:active:text-red-brand",
7373
)}
7474
/>
7575
</li>

app/components/package-select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function PackageLink({
5252
<span
5353
className={classNames(
5454
className,
55-
"font-bold text-red-brand before:bg-red-brand"
55+
"font-bold text-red-brand before:bg-red-brand",
5656
)}
5757
>
5858
{name}
@@ -63,7 +63,7 @@ function PackageLink({
6363
relative="path"
6464
className={classNames(
6565
className,
66-
"hover:bg-gray-50 active:text-red-brand dark:text-gray-200 dark:hover:bg-gray-700 dark:active:text-red-brand"
66+
"hover:bg-gray-50 active:text-red-brand dark:text-gray-200 dark:hover:bg-gray-700 dark:active:text-red-brand",
6767
)}
6868
>
6969
{name}

app/components/version-select.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function VersionSelect() {
2828
title={label}
2929
className={classNames(
3030
`_no-triangle relative flex h-[40px] w-24 cursor-pointer list-none items-center justify-between gap-3 overflow-hidden whitespace-nowrap rounded-full px-3`,
31-
className
31+
className,
3232
)}
3333
>
3434
<div>{label}</div>
@@ -100,7 +100,7 @@ function RefLink({ to, children }: { to: string; children: React.ReactNode }) {
100100
className,
101101
"after:absolute after:right-4 after:top-1 after:block after:-rotate-45 after:opacity-50 after:content-['→']",
102102
// Same as !isActive styles on <Link> below
103-
"hover:bg-gray-50 active:text-red-brand dark:text-gray-200 dark:hover:bg-gray-700 dark:active:text-red-brand"
103+
"hover:bg-gray-50 active:text-red-brand dark:text-gray-200 dark:hover:bg-gray-700 dark:active:text-red-brand",
104104
)}
105105
>
106106
{children}
@@ -114,7 +114,7 @@ function RefLink({ to, children }: { to: string; children: React.ReactNode }) {
114114
className,
115115
isActive
116116
? "font-bold text-red-brand before:bg-red-brand"
117-
: "before:bg-transparent hover:bg-gray-50 active:text-red-brand dark:text-gray-200 dark:hover:bg-gray-700 dark:active:text-red-brand"
117+
: "before:bg-transparent hover:bg-gray-50 active:text-red-brand dark:text-gray-200 dark:hover:bg-gray-700 dark:active:text-red-brand",
118118
)}
119119
to={to}
120120
>

app/hooks/use-navigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function useNavigation(to?: string, end?: boolean) {
1313

1414
let navigation = Object.assign(
1515
{ isActive: false, isPending: false },
16-
navigation_
16+
navigation_,
1717
);
1818

1919
if (toPathname) {

app/modules/color-scheme/components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function ColorSchemeScript() {
2828
if (media.matches) document.documentElement.classList.add("dark");
2929
}
3030
`,
31-
[] // eslint-disable-line
31+
[], // eslint-disable-line
3232
// we don't want this script to ever change
3333
);
3434

0 commit comments

Comments
 (0)