oh lord. prettier eslint and all that

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-11-02 20:24:41 +01:00
parent e1f37b439e
commit 107feda4ad
121 changed files with 1856 additions and 1684 deletions

View File

@@ -5,10 +5,11 @@
* We also create a few inference helpers for input and output types.
*/
import { toast } from '@/components/ui/use-toast';
import { type AppRouter } from '@/server/api/root';
import { httpLink, loggerLink, type TRPCClientErrorBase } from '@trpc/client';
import type { AppRouter } from '@/server/api/root';
import { httpLink, loggerLink } from '@trpc/client';
import type { TRPCClientErrorBase } from '@trpc/client';
import { createTRPCNext } from '@trpc/next';
import { type inferRouterInputs, type inferRouterOutputs } from '@trpc/server';
import type { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
import superjson from 'superjson';
const getBaseUrl = () => {

View File

@@ -1,4 +1,5 @@
import { clsx, type ClassValue } from 'clsx';
import { clsx } from 'clsx';
import type { ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {

View File

@@ -1,4 +1,4 @@
import { type IChartRange } from '@/types';
import type { IChartRange } from '@/types';
import { timeRanges } from './constants';

View File

@@ -2,13 +2,12 @@ import resolveConfig from 'tailwindcss/resolveConfig';
import tailwinConfig from '../../tailwind.config';
// @ts-expect-error
const config = resolveConfig(tailwinConfig);
const config = resolveConfig<any>(tailwinConfig);
export const theme = config.theme as any;
export const theme = config.theme;
export function getChartColor(index: number): string {
const chartColors: string[] = Object.keys(theme?.colors ?? {})
const chartColors: string[] = Object.keys(theme.colors ?? {})
.filter((key) => key.startsWith('chart-'))
.map((key) => theme.colors[key] as string);