Skip to content

Commit 7bd49ea

Browse files
committed
refactor: remove ESLint disable comments from various hooks and components
1 parent 9cfa191 commit 7bd49ea

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

apps/web/src/components/docs/node-card.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export function NodeCard({
4040
className="h-4 w-4 text-blue-500 shrink-0"
4141
/>
4242
<CardTitle className="text-base font-semibold leading-tight truncate">
43-
{highlightMatch ? highlightMatch(nodeType.name, searchQuery) : nodeType.name}
43+
{highlightMatch
44+
? highlightMatch(nodeType.name, searchQuery)
45+
: nodeType.name}
4446
</CardTitle>
4547
{nodeType.tags.map((tag, index) => (
4648
<Badge
@@ -57,7 +59,9 @@ export function NodeCard({
5759
{nodeType.description && (
5860
<div className="hidden md:block flex-1 min-w-0">
5961
<p className="text-sm text-muted-foreground leading-relaxed truncate">
60-
{highlightMatch ? highlightMatch(nodeType.description, searchQuery) : nodeType.description}
62+
{highlightMatch
63+
? highlightMatch(nodeType.description, searchQuery)
64+
: nodeType.description}
6165
</p>
6266
</div>
6367
)}
@@ -100,7 +104,9 @@ export function NodeCard({
100104
className="h-4 w-4 text-blue-500 shrink-0"
101105
/>
102106
<CardTitle className="text-base font-semibold leading-tight truncate">
103-
{highlightMatch ? highlightMatch(nodeType.name, searchQuery) : nodeType.name}
107+
{highlightMatch
108+
? highlightMatch(nodeType.name, searchQuery)
109+
: nodeType.name}
104110
</CardTitle>
105111
</div>
106112
<NodeTags
@@ -112,7 +118,9 @@ export function NodeCard({
112118
<CardContent className="pt-0">
113119
{nodeType.description && (
114120
<p className="text-sm text-muted-foreground leading-relaxed max-h-16 overflow-hidden">
115-
{highlightMatch ? highlightMatch(nodeType.description, searchQuery) : nodeType.description}
121+
{highlightMatch
122+
? highlightMatch(nodeType.description, searchQuery)
123+
: nodeType.description}
116124
</p>
117125
)}
118126
{nodeType.compatibility && nodeType.compatibility.length > 0 && (

apps/web/src/components/head-seo.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ export const HeadSeo = (props: HeadSeoProps) => {
200200
tag.setAttribute(MANAGED_TAG_ATTRIBUTE, MANAGED_TAG_VALUE);
201201
document.head.appendChild(tag);
202202
});
203-
// eslint-disable-next-line react-compiler/react-compiler
204-
// eslint-disable-next-line react-hooks/exhaustive-deps
205203
}, [
206204
title,
207205
description,

apps/web/src/hooks/use-editable-workflow.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ export function useEditableWorkflow({
148148
wsRef.current = null;
149149
}
150150
};
151-
// eslint-disable-next-line react-compiler/react-compiler
152-
// eslint-disable-next-line react-hooks/exhaustive-deps
153151
}, [workflowId, organization?.handle]);
154152

155153
const saveWorkflowInternal = useCallback(

apps/web/src/hooks/use-page.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export function usePageBreadcrumbs(
2525
return () => {
2626
setBreadcrumbs([]);
2727
};
28-
// eslint-disable-next-line react-compiler/react-compiler
29-
// eslint-disable-next-line react-hooks/exhaustive-deps
3028
}, [...dependencies]);
3129

3230
// Return the setter for cases where breadcrumbs need to be updated dynamically

0 commit comments

Comments
 (0)