From 1d8a117b93cc6ad8ea8b049155a6c2d9fc74cb62 Mon Sep 17 00:00:00 2001 From: kenneth Date: Fri, 3 Oct 2025 20:40:23 +0000 Subject: [PATCH] chore: remove unused imports --- packages/path/tsconfig.json | 48 ++--- packages/web/bun-env.d.ts | 20 +- packages/web/src/components/ui/breadcrumb.tsx | 152 +++++++-------- packages/web/src/components/ui/checkbox.tsx | 40 ++-- packages/web/src/components/ui/input.tsx | 28 +-- packages/web/src/components/ui/separator.tsx | 34 ++-- packages/web/src/components/ui/sheet.tsx | 184 +++++++++--------- packages/web/src/components/ui/sidebar.tsx | 12 +- packages/web/src/components/ui/skeleton.tsx | 14 +- packages/web/src/components/ui/tooltip.tsx | 76 ++++---- .../directory-page/directory-page.tsx | 4 +- .../directory-page/skeleton-demo.tsx | 18 +- .../src/directories/directory-page/state.ts | 1 - packages/web/src/hooks/use-mobile.ts | 24 +-- .../routes/_authenticated/_sidebar-layout.tsx | 1 - 15 files changed, 326 insertions(+), 330 deletions(-) diff --git a/packages/path/tsconfig.json b/packages/path/tsconfig.json index bfa0fea..146fe4e 100644 --- a/packages/path/tsconfig.json +++ b/packages/path/tsconfig.json @@ -1,29 +1,29 @@ { - "compilerOptions": { - // Environment setup & latest features - "lib": ["ESNext"], - "target": "ESNext", - "module": "Preserve", - "moduleDetection": "force", - "jsx": "react-jsx", - "allowJs": true, + "compilerOptions": { + // Environment setup & latest features + "lib": ["ESNext"], + "target": "ESNext", + "module": "Preserve", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, - // Bundler mode - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "verbatimModuleSyntax": true, - "noEmit": true, + // Bundler mode + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "noEmit": true, - // Best practices - "strict": true, - "skipLibCheck": true, - "noFallthroughCasesInSwitch": true, - "noUncheckedIndexedAccess": true, - "noImplicitOverride": true, + // Best practices + "strict": true, + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, - // Some stricter flags (disabled by default) - "noUnusedLocals": false, - "noUnusedParameters": false, - "noPropertyAccessFromIndexSignature": false - } + // Some stricter flags (disabled by default) + "noUnusedLocals": false, + "noUnusedParameters": false, + "noPropertyAccessFromIndexSignature": false + } } diff --git a/packages/web/bun-env.d.ts b/packages/web/bun-env.d.ts index 72f1c26..2380a69 100644 --- a/packages/web/bun-env.d.ts +++ b/packages/web/bun-env.d.ts @@ -1,17 +1,17 @@ // Generated by `bun init` declare module "*.svg" { - /** - * A path to the SVG file - */ - const path: `${string}.svg`; - export = path; + /** + * A path to the SVG file + */ + const path: `${string}.svg` + export = path } declare module "*.module.css" { - /** - * A record of class names to their corresponding CSS module classes - */ - const classes: { readonly [key: string]: string }; - export = classes; + /** + * A record of class names to their corresponding CSS module classes + */ + const classes: { readonly [key: string]: string } + export = classes } diff --git a/packages/web/src/components/ui/breadcrumb.tsx b/packages/web/src/components/ui/breadcrumb.tsx index eb88f32..4b95252 100644 --- a/packages/web/src/components/ui/breadcrumb.tsx +++ b/packages/web/src/components/ui/breadcrumb.tsx @@ -1,109 +1,109 @@ -import * as React from "react" import { Slot } from "@radix-ui/react-slot" import { ChevronRight, MoreHorizontal } from "lucide-react" +import type * as React from "react" import { cn } from "@/lib/utils" function Breadcrumb({ ...props }: React.ComponentProps<"nav">) { - return