chore(lint): enforce stricter eslint/oxlint rules (#37883)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-02-11 11:07:02 -05:00
committed by GitHub
parent c28729f944
commit 534fa48f1f
9 changed files with 29 additions and 6 deletions

View File

@@ -1060,17 +1060,19 @@ export default function TableChart<D extends DataRecord = DataRecord>(
};
if (html) {
if (truncateLongCells) {
// eslint-disable-next-line react/no-danger
return (
<StyledCell {...cellProps}>
<div
className="dt-truncate-cell"
style={columnWidth ? { width: columnWidth } : undefined}
// Safe: HTML is sanitized via formatColumnValue
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={html}
/>
</StyledCell>
);
}
// Safe: HTML is sanitized via formatColumnValue
// eslint-disable-next-line react/no-danger
return <StyledCell {...cellProps} dangerouslySetInnerHTML={html} />;
}