Skip to content

Commit 796b858

Browse files
Copilothotlong
andcommitted
Fix remaining @ts-ignore lint errors in plugin-calendar and components
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 6d47722 commit 796b858

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/components/src/renderers/complex/data-table.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,18 +491,18 @@ const DataTableRenderer = ({ schema }: { schema: DataTableSchema }) => {
491491
key={rowId}
492492
data-state={isSelected ? 'selected' : undefined}
493493
className={cn(
494-
// @ts-ignore
494+
// @ts-expect-error - onRowClick might not be in schema type definition
495495
schema.onRowClick && "cursor-pointer"
496496
)}
497497
onClick={(e) => {
498-
// @ts-ignore
498+
// @ts-expect-error - onRowClick might not be in schema type definition
499499
if (schema.onRowClick && !e.defaultPrevented) {
500500
// Simple heuristic to avoid triggering on interactive elements if they didn't stop propagation
501501
const target = e.target as HTMLElement;
502502
if (target.closest('button') || target.closest('[role="checkbox"]') || target.closest('a')) {
503503
return;
504504
}
505-
// @ts-ignore
505+
// @ts-expect-error - onRowClick might not be in schema type definition
506506
schema.onRowClick(row);
507507
}
508508
}}

packages/plugin-calendar/src/CalendarView.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (!global.PointerEvent) {
2626
this.shiftKey = props.shiftKey || false;
2727
}
2828
}
29-
// @ts-ignore
29+
// @ts-expect-error - PointerEvent polyfill for testing
3030
global.PointerEvent = PointerEvent as any;
3131
}
3232

0 commit comments

Comments
 (0)