chore(root): migrate to biome

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-16 12:20:40 +02:00
parent 1f6e198336
commit 32e91959f6
383 changed files with 1943 additions and 3085 deletions

View File

@@ -47,7 +47,7 @@ export function ProfileAvatar({
: size === 'xs'
? 'text-[8px]'
: 'text-base',
'bg-def-200 text-muted-foreground'
'bg-def-200 text-muted-foreground',
)}
>
{firstName?.at(0) ?? '🫣'}

View File

@@ -1,5 +1,3 @@
import { memo } from 'react';
import type { Dispatch, SetStateAction } from 'react';
import { DataTable } from '@/components/data-table';
import { FullPageEmptyState } from '@/components/full-page-empty-state';
import { Pagination } from '@/components/pagination';
@@ -8,6 +6,8 @@ import { TableSkeleton } from '@/components/ui/table';
import type { UseQueryResult } from '@tanstack/react-query';
import isEqual from 'lodash.isequal';
import { GanttChartIcon } from 'lucide-react';
import { memo } from 'react';
import type { Dispatch, SetStateAction } from 'react';
import type { IServiceProfile } from '@openpanel/db';
@@ -58,7 +58,7 @@ export const ProfilesTable = memo(
className="mt-2"
setCursor={props.setCursor}
cursor={props.cursor}
count={Infinity}
count={Number.POSITIVE_INFINITY}
take={50}
loading={isFetching}
/>
@@ -68,7 +68,7 @@ export const ProfilesTable = memo(
},
(prevProps, nextProps) => {
return isEqual(prevProps.query.data, nextProps.query.data);
}
},
);
ProfilesTable.displayName = 'ProfilesTable';