Fix all ESLint errors: remove unused imports, replace any types
- Remove ~60 unused imports and variables across 88 files - Replace ~80 `any` type annotations with proper types (unknown, Record<string, unknown>, or specific types) - Prefix unused callback args with underscore - Fix unescaped JSX entities - Lint now passes cleanly (0 errors, 2 intentional img warnings) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -83,7 +83,7 @@ export function Breadcrumbs() {
|
||||
<BreadcrumbItem>
|
||||
<BreadcrumbLink asChild>
|
||||
<Link
|
||||
href={`/${currentPortSlug}/dashboard` as any}
|
||||
href={`/${currentPortSlug}/dashboard`}
|
||||
className="text-muted-foreground hover:text-foreground transition-colors"
|
||||
>
|
||||
{currentPort.name}
|
||||
@@ -98,7 +98,7 @@ export function Breadcrumbs() {
|
||||
</>
|
||||
)}
|
||||
|
||||
{crumbs.map((crumb, index) => (
|
||||
{crumbs.map((crumb, _index) => (
|
||||
<Fragment key={crumb.href}>
|
||||
<BreadcrumbItem>
|
||||
{crumb.isLast ? (
|
||||
@@ -108,7 +108,7 @@ export function Breadcrumbs() {
|
||||
) : (
|
||||
<BreadcrumbLink asChild>
|
||||
<Link
|
||||
href={crumb.href as any}
|
||||
href={crumb.href}
|
||||
className="text-muted-foreground hover:text-foreground transition-colors"
|
||||
>
|
||||
{crumb.label}
|
||||
|
||||
@@ -36,7 +36,7 @@ export function PortSwitcher({ ports }: PortSwitcherProps) {
|
||||
queryClient.invalidateQueries();
|
||||
|
||||
// Navigate to the selected port's dashboard
|
||||
router.push(`/${port.slug}/dashboard` as any);
|
||||
router.push(`/${port.slug}/dashboard`);
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -20,7 +20,6 @@ import {
|
||||
Menu,
|
||||
ChevronDown,
|
||||
ChevronUp,
|
||||
LogOut,
|
||||
} from 'lucide-react';
|
||||
|
||||
import { cn } from '@/lib/utils';
|
||||
@@ -113,7 +112,7 @@ function NavItemLink({
|
||||
}) {
|
||||
const content = (
|
||||
<Link
|
||||
href={item.href as any}
|
||||
href={item.href}
|
||||
className={cn(
|
||||
'flex items-center gap-3 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-150',
|
||||
'text-[#cdcfd6] hover:bg-[#171f35] hover:text-white',
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from '@/components/ui/dropdown-menu';
|
||||
import { PortSwitcher } from '@/components/layout/port-switcher';
|
||||
import { Breadcrumbs } from '@/components/layout/breadcrumbs';
|
||||
import { CommandSearch, SearchTrigger } from '@/components/search/command-search';
|
||||
import { CommandSearch } from '@/components/search/command-search';
|
||||
import { NotificationBell } from '@/components/notifications/notification-bell';
|
||||
import type { Port } from '@/lib/db/schema/ports';
|
||||
|
||||
@@ -64,16 +64,16 @@ export function Topbar({ ports }: TopbarProps) {
|
||||
<DropdownMenuContent align="end" className="w-44">
|
||||
<DropdownMenuLabel className="text-xs text-muted-foreground">Create</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/clients/new` as any)}>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/clients/new`)}>
|
||||
New Client
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/interests/new` as any)}>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/interests/new`)}>
|
||||
New Interest
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/expenses/new` as any)}>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/expenses/new`)}>
|
||||
New Expense
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/reminders/new` as any)}>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/reminders/new`)}>
|
||||
New Reminder
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
@@ -99,11 +99,11 @@ export function Topbar({ ports }: TopbarProps) {
|
||||
<DropdownMenuContent align="end" className="w-52">
|
||||
<DropdownMenuLabel>My Account</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/settings/profile` as any)}>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/settings/profile`)}>
|
||||
<User className="w-4 h-4 mr-2" />
|
||||
Profile
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/settings` as any)}>
|
||||
<DropdownMenuItem onClick={() => router.push(`${base}/settings`)}>
|
||||
<Settings className="w-4 h-4 mr-2" />
|
||||
Settings
|
||||
</DropdownMenuItem>
|
||||
|
||||
Reference in New Issue
Block a user