Skip to content

Commit e577676

Browse files
committed
linting
1 parent 1ec2ea7 commit e577676

File tree

8 files changed

+6
-22
lines changed

8 files changed

+6
-22
lines changed

knip.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
"vite.renderer.config.mts"
1111
],
1212
"project": ["src/**/*.{ts,tsx}", "scripts/**/*.ts"],
13-
"ignore": [
14-
"src/api/generated.ts"
15-
],
13+
"ignore": ["src/api/generated.ts"],
1614
"ignoreDependencies": [
1715
"@tiptap/core",
1816
"@radix-ui/react-collapsible",

src/renderer/components/MainLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function MainLayout() {
118118
</Box>
119119
</Flex>
120120

121-
<StatusBar onOpenSettings={handleOpenSettings} />
121+
<StatusBar />
122122

123123
<CommandMenu open={commandMenuOpen} onOpenChange={setCommandMenuOpen} />
124124
<UpdatePrompt />

src/renderer/components/ui/sidebar/SidebarContent.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ export const SidebarContent: React.FC = () => {
2929
const activeTab = tabs.find((tab) => tab.id === activeTabId);
3030
const userName = currentUser?.first_name || currentUser?.email || "Account";
3131

32-
const handleNavigate = (
33-
type: "task-list" | "settings",
34-
title: string,
35-
) => {
32+
const handleNavigate = (type: "task-list" | "settings", title: string) => {
3633
const existingTab = tabs.find((tab) => tab.type === type);
3734
if (existingTab) {
3835
setActiveTab(existingTab.id);

src/renderer/components/ui/sidebar/SidebarTreeItem.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ export function SidebarTreeItem({
9292
borderRadius: "2px",
9393
transition: "background-color 0.1s",
9494
}}
95-
className={
96-
"tree-item-action-hover"
97-
}
95+
className={"tree-item-action-hover"}
9896
onClick={(e) => {
9997
e.stopPropagation();
10098
line.hoverAction?.();

src/renderer/components/ui/sidebar/UseSidebarMenuData.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ interface UseSidebarMenuDataProps {
2828
activeFilters: ActiveFilters;
2929
currentUser: Schemas.User | undefined;
3030
setActiveFilters: (filters: ActiveFilters) => void;
31-
onNavigate: (
32-
type: "task-list" | "settings",
33-
title: string,
34-
) => void;
31+
onNavigate: (type: "task-list" | "settings", title: string) => void;
3532
onTaskClick: (task: Task) => void;
3633
onCreateTask: () => void;
3734
onProjectClick: (repository: string) => void;

src/renderer/features/command/components/CommandMenu.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Command } from "@features/command/components/Command";
22
import { CommandKeyHints } from "@features/command/components/CommandKeyHints";
33
import { useTasks } from "@features/tasks/hooks/useTasks";
4-
import { MicrophoneIcon } from "@phosphor-icons/react";
54
import { FileTextIcon, ListBulletIcon } from "@radix-ui/react-icons";
65
import { Flex, Text } from "@radix-ui/themes";
76
import type { Task } from "@shared/types";

src/renderer/types/electron.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { Schemas } from "@api/generated";
21
import type { AgentEvent } from "@posthog/agent";
32
import type { TaskArtifact } from "@shared/types";
43
import type {

src/shared/types.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ export interface LogEntry {
6464

6565
export interface TabState {
6666
id: string;
67-
type:
68-
| "task-list"
69-
| "task-detail"
70-
| "backlog"
71-
| "settings"
67+
type: "task-list" | "task-detail" | "backlog" | "settings";
7268
title: string;
7369
data?: Task | unknown;
7470
}

0 commit comments

Comments
 (0)