diff --git a/src/components/DynamicPropertiesPanel.tsx b/src/components/DynamicPropertiesPanel.tsx index 30e190b0..b36ac11f 100644 --- a/src/components/DynamicPropertiesPanel.tsx +++ b/src/components/DynamicPropertiesPanel.tsx @@ -30,6 +30,7 @@ export const RELATIONSHIP_KEYS = new Set([ // Keys to skip showing in Properties const SKIP_KEYS = new Set(['aliases', 'notion_id', 'workspace']) +// eslint-disable-next-line react-refresh/only-export-components -- utility co-located with component export function containsWikilinks(value: FrontmatterValue): boolean { if (typeof value === 'string') return /^\[\[.*\]\]$/.test(value) if (Array.isArray(value)) return value.some(v => typeof v === 'string' && /^\[\[.*\]\]$/.test(v)) diff --git a/src/components/NoteItem.tsx b/src/components/NoteItem.tsx index b07a30cd..ef55e4c6 100644 --- a/src/components/NoteItem.tsx +++ b/src/components/NoteItem.tsx @@ -20,6 +20,7 @@ const TYPE_ICON_MAP: Record>> Type: StackSimple, } +// eslint-disable-next-line react-refresh/only-export-components -- utility co-located with component export function getTypeIcon(isA: string | null, customIcon?: string | null): ComponentType> { if (customIcon) return resolveIcon(customIcon) return (isA && TYPE_ICON_MAP[isA]) || FileText diff --git a/src/components/NoteList.tsx b/src/components/NoteList.tsx index be1500a8..df27b172 100644 --- a/src/components/NoteList.tsx +++ b/src/components/NoteList.tsx @@ -15,7 +15,7 @@ import { loadSortPreferences, saveSortPreferences, } from '../utils/noteListHelpers' -// Re-export for consumers +// eslint-disable-next-line react-refresh/only-export-components -- re-exports for consumers export { sortByModified, filterEntries, buildRelationshipGroups, getSortComparator } export type { SortOption } diff --git a/src/components/SidebarParts.tsx b/src/components/SidebarParts.tsx index e6b10b75..84dc5ead 100644 --- a/src/components/SidebarParts.tsx +++ b/src/components/SidebarParts.tsx @@ -12,6 +12,7 @@ export interface SectionGroup { customColor?: string | null } +// eslint-disable-next-line react-refresh/only-export-components -- utility co-located with component export function isSelectionActive(current: SidebarSelection, check: SidebarSelection): boolean { if (current.kind !== check.kind) return false switch (check.kind) { diff --git a/src/components/TypeCustomizePopover.tsx b/src/components/TypeCustomizePopover.tsx index 83bef593..222a456d 100644 --- a/src/components/TypeCustomizePopover.tsx +++ b/src/components/TypeCustomizePopover.tsx @@ -11,6 +11,7 @@ import { ACCENT_COLORS } from '../utils/typeColors' import { cn } from '@/lib/utils' /** Curated Phosphor icons (normal weight) for type customization */ +// eslint-disable-next-line react-refresh/only-export-components -- constant co-located with component export const ICON_OPTIONS: { name: string; Icon: ComponentType }[] = [ { name: 'file-text', Icon: FileText }, { name: 'wrench', Icon: Wrench }, @@ -54,6 +55,7 @@ const ICON_MAP: Record> = Object.fromEntries( ) /** Resolves a Phosphor icon name to its component, with fallback to FileText */ +// eslint-disable-next-line react-refresh/only-export-components -- utility co-located with component export function resolveIcon(name: string | null): ComponentType { return (name && ICON_MAP[name]) || FileText } diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx index beb56ed1..db73602b 100644 --- a/src/components/ui/badge.tsx +++ b/src/components/ui/badge.tsx @@ -45,4 +45,5 @@ function Badge({ ) } +// eslint-disable-next-line react-refresh/only-export-components -- shadcn/ui pattern export { Badge, badgeVariants } diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index b5ea4abd..5fef1d15 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -61,4 +61,5 @@ function Button({ ) } +// eslint-disable-next-line react-refresh/only-export-components -- shadcn/ui pattern export { Button, buttonVariants } diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index 7bf18aa7..b8b95294 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -86,4 +86,5 @@ function TabsContent({ ) } +// eslint-disable-next-line react-refresh/only-export-components -- shadcn/ui pattern export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants }