Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Aug 27, 2024
1 parent 0745ce2 commit ea67ccf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/src/components/PropsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Props = {

const TableHead = ({
children,
}: React.PropsWithChildren<{ $i: number, $headers: string[] }>) => (
}: React.PropsWithChildren) => (
<Box as="th" position="sticky">
<Box as="div" padding="$4" textAlign="left">
<Typography fontVariant="bodyBold" textTransform="capitalize">
Expand Down Expand Up @@ -94,8 +94,8 @@ export const PropsTable = ({ sourceLink, types }: Props) => {
>
<Box as="thead" backgroundColor="$greySurface">
<tr>
{headers.map((x, i) => (
<TableHead key={x} $i={i} $headers={headers}>
{headers.map(x => (
<TableHead key={x}>
{x}
</TableHead>
))}
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ const baseConfig = tseslint.config(
'@eslint-react/dom/no-missing-button-type': 'off',
'stylistic/no-multiple-empty-lines': ['error', { max: 1 }],
'@typescript-eslint/no-explicit-any': 'off',
'@eslint-react/no-duplicate-key': 'warn',
},
},
{
files: ['docs/src/**/*.{ts,tsx}'],
settings: {

next: {
rootDir: 'docs',
},
Expand Down

0 comments on commit ea67ccf

Please sign in to comment.