feat(setup): Add oxlint, dprint, vite, playwright configs

This commit is contained in:
Ilia Mashkov
2025-12-30 11:05:13 +03:00
parent cd7c4ef9a3
commit 6d70c1ed0e
21 changed files with 898 additions and 15136 deletions

13
src/lib/utils.ts Normal file
View File

@@ -0,0 +1,13 @@
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type WithoutChild<T> = T extends { child?: any } ? Omit<T, 'child'> : T;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type WithoutChildren<T> = T extends { children?: any } ? Omit<T, 'children'> : T;
export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>;
export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & { ref?: U | null };