style: apply biome safe auto-fixes

Run 'biome check --fix' on apps/api/src and apps/web/src to clear
the safe-fixable lint backlog (151 files: parseInt → Number.parseInt,
isNaN → Number.isNaN, organize imports, etc.). 769 errors remain
that require manual changes (mostly noExplicitAny).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sase Dev
2026-05-09 16:13:56 +00:00
parent ca2798b5d1
commit 3184e4c619
181 changed files with 3739 additions and 3713 deletions

View File

@@ -1,18 +1,18 @@
import {
Cog,
Settings,
CircleDot,
Shield,
Zap,
Droplets,
Wind,
Car,
Footprints,
Wrench,
Package,
FlaskConical,
CircleDot,
Cog,
Droplets,
FileText,
FlaskConical,
Footprints,
type LucideIcon,
Package,
Settings,
Shield,
Wind,
Wrench,
Zap,
} from "lucide-react";
const iconRules: [RegExp, LucideIcon][] = [

View File

@@ -43,17 +43,11 @@ export function getFaro() {
}
/** Start a programmatic user action (auto-completes 100ms after last linked event) */
export function startAction(
name: string,
attributes?: Record<string, string>,
) {
export function startAction(name: string, attributes?: Record<string, string>) {
faro?.api.startUserAction(name, attributes);
}
/** Push a Faro event (for non-action tracking like page-level events) */
export function pushEvent(
name: string,
attributes?: Record<string, string>,
) {
export function pushEvent(name: string, attributes?: Record<string, string>) {
faro?.api.pushEvent(name, attributes);
}

View File

@@ -61,9 +61,7 @@ export function capture(event: string, properties?: Record<string, unknown>): vo
}
export function capturePageView(path: string): void {
load().then((ph) =>
ph.capture("$pageview", { $current_url: window.location.origin + path }),
);
load().then((ph) => ph.capture("$pageview", { $current_url: window.location.origin + path }));
}
export function setPeopleProperties(properties: Record<string, unknown>): void {

View File

@@ -14,12 +14,8 @@ interface ToastOptions {
}
export const toast = {
success: (title: string, opts?: ToastOptions) =>
sileo.success({ title, ...opts }),
error: (title: string, opts?: ToastOptions) =>
sileo.error({ title, ...opts }),
info: (title: string, opts?: ToastOptions) =>
sileo.info({ title, ...opts }),
warning: (title: string, opts?: ToastOptions) =>
sileo.warning({ title, ...opts }),
success: (title: string, opts?: ToastOptions) => sileo.success({ title, ...opts }),
error: (title: string, opts?: ToastOptions) => sileo.error({ title, ...opts }),
info: (title: string, opts?: ToastOptions) => sileo.info({ title, ...opts }),
warning: (title: string, opts?: ToastOptions) => sileo.warning({ title, ...opts }),
};

View File

@@ -22,10 +22,7 @@ export function getUserSettings(): UserSettings {
}
}
export function setUserSetting<K extends keyof UserSettings>(
key: K,
value: UserSettings[K],
) {
export function setUserSetting<K extends keyof UserSettings>(key: K, value: UserSettings[K]) {
const settings = getUserSettings();
settings[key] = value;
localStorage.setItem(STORAGE_KEY, JSON.stringify(settings));