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:
@@ -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][] = [
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 }),
|
||||
};
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user