Skip to content

Commit bea28c5

Browse files
committed
fix lint
1 parent f24f54f commit bea28c5

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

website/theme.config.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
import { ComponentProps } from 'react';
33
import { Callout, defineConfig, PRODUCTS } from '@theguild/components';
44

5-
function Anchor(props: ComponentProps<'a'>) {
5+
function Anchor({ children, ...props }: ComponentProps<'a'>) {
66
return (
77
<a
88
target="_blank"
99
rel="noreferrer"
1010
className="_text-primary-600 _underline _decoration-from-font [text-underline-position:from-font]"
1111
{...props}
12-
/>
12+
>
13+
{children}
14+
</a>
1315
);
1416
}
1517

@@ -28,14 +30,7 @@ export default defineConfig({
2830
dismissible: false,
2931
},
3032
components: {
31-
WIP() {
32-
return (
33-
<Callout type="warning" emoji="🚧">
34-
This page is under construction. Help us improve the content by submitting a PR.
35-
</Callout>
36-
);
37-
},
38-
// @ts-expect-error
33+
// @ts-expect-error -- fixme
3934
OfficialExampleCallout({ gitFolder }: { gitFolder: string }) {
4035
return (
4136
<Callout type="info">
@@ -61,6 +56,13 @@ export default defineConfig({
6156
</Callout>
6257
);
6358
},
59+
WIP() {
60+
return (
61+
<Callout type="warning" emoji="🚧">
62+
This page is under construction. Help us improve the content by submitting a PR.
63+
</Callout>
64+
);
65+
},
6466
},
6567
description: PRODUCTS.ESLINT.title,
6668
docsRepositoryBase: 'https://github.com/B2o5T/graphql-eslint/tree/master/website', // base URL for the docs repository

0 commit comments

Comments
 (0)