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

@@ -1,6 +1,6 @@
import { Suspense } from 'react';
import { Widget, WidgetHead } from '@/components/widget';
import { cn } from '@/utils/cn';
import { Suspense } from 'react';
const withLoadingWidget = <P,>(Component: React.ComponentType<P>) => {
const WithLoadingWidget: React.ComponentType<P> = (props) => {
@@ -14,7 +14,7 @@ const withLoadingWidget = <P,>(Component: React.ComponentType<P>) => {
typeof props === 'object' &&
'className' in props &&
typeof props.className === 'string' &&
props?.className
props?.className,
)}
>
<WidgetHead>

View File

@@ -2,7 +2,7 @@ import { Suspense } from 'react';
const withSuspense = <P,>(
Component: React.ComponentType<P>,
Fallback: React.ComponentType<P>
Fallback: React.ComponentType<P>,
) => {
const WithSuspense: React.ComponentType<P> = (props) => {
const fallback = <Fallback {...(props as any)} />;