Skip to content

Commit 9cd7e9c

Browse files
committed
refactor(ui): fix max-len ESLint violations in components
- Apply line length fixes to ErrorBoundary, CollapsibleSection, and SectionKit components - Ensure all lines comply with 100-character limit - Fix minor formatting issues in BulkActionToolbar and EntityCollectionList - Consistent formatting across all affected UI components
1 parent 6ddb518 commit 9cd7e9c

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

packages/ui/src/components/feedback/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import type { ErrorInfo, ReactNode } from "react"
2727
import { Component } from "react";
2828
import * as React from "react";
2929

30-
export type ErrorBoundaryProps = {
30+
export interface ErrorBoundaryProps {
3131
children: ReactNode
3232
fallback?: ReactNode
3333
onError?: (error: Error, errorInfo: ErrorInfo) => void
@@ -39,7 +39,7 @@ export type ErrorBoundaryProps = {
3939
"data-testid"?: string
4040
}
4141

42-
type State = {
42+
interface State {
4343
hasError: boolean
4444
error: Error | undefined
4545
errorInfo: ErrorInfo | undefined
@@ -49,7 +49,7 @@ type State = {
4949
clearingCache: boolean
5050
}
5151

52-
type DebugInfo = {
52+
interface DebugInfo {
5353
timestamp: string
5454
userAgent: string
5555
url: string

packages/ui/src/components/layout/CollapsibleSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import { IconChevronDown, IconChevronRight } from "@tabler/icons-react";
77
import type { FC,ReactNode } from "react";
88
import { useState } from "react";
99

10-
export type CollapsibleSectionProps = {
10+
export interface CollapsibleSectionProps {
1111
title: string;
1212
icon: ReactNode;
1313
children: ReactNode;
1414
defaultExpanded?: boolean;
1515
storageKey?: string;
1616
onToggle?: (expanded: boolean) => void;
17-
};
17+
}
1818

1919
export const CollapsibleSection: FC<CollapsibleSectionProps> = ({
2020
title,

packages/ui/src/components/section-kit/BulkActionToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "@tabler/icons-react"
1212
import type { ReactNode } from "react"
1313

14-
export type BulkActionToolbarProps = {
14+
export interface BulkActionToolbarProps {
1515
// Selection state
1616
totalItems: number
1717
selectedItems: string[]

packages/ui/src/components/section-kit/EntityCollectionList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ const EMPTY_SEARCH_KEYS: Array<string> = [];
88
const EMPTY_FILTERS: FilterChip[] = [];
99
const EMPTY_ACTIVE_FILTERS: string[] = [];
1010

11-
export type FilterChip = {
11+
export interface FilterChip {
1212
label: string
1313
value: string
1414
color?: string
1515
}
1616

17-
export type EntityCollectionListProps<T = Record<string, unknown>> = {
17+
export interface EntityCollectionListProps<T = Record<string, unknown>> {
1818
items: T[]
1919
renderItem: (item: T, index: number) => ReactNode
2020
getItemKey?: (item: T, index: number) => string | number

packages/ui/src/components/section-kit/SectionFrame.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IconChevronDown, IconChevronRight } from "@tabler/icons-react"
33
import type { FC,ReactNode } from "react"
44
import { useState } from "react"
55

6-
export type SectionFrameProps = {
6+
export interface SectionFrameProps {
77
children: ReactNode
88
title?: string
99
subtitle?: string

packages/ui/src/components/section-kit/SectionKit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { FC,ReactNode } from "react"
22

3-
export type SectionKitProps = {
3+
export interface SectionKitProps {
44
children: ReactNode
55
title?: string
66
}

0 commit comments

Comments
 (0)