fix(#375): resolve lint errors in usage dashboard
All checks were successful
ci/woodpecker/push/web Pipeline was successful
All checks were successful
ci/woodpecker/push/web Pipeline was successful
- Fix prettier formatting for Tooltip formatter props (single-line) - Fix no-base-to-string by using typed props instead of Record<string, unknown> - Fix restrict-template-expressions by wrapping number in String() Refs #375 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -367,9 +367,7 @@ export default function UsagePage(): ReactElement {
|
||||
width={140}
|
||||
/>
|
||||
<Tooltip
|
||||
formatter={
|
||||
((value: number) => [formatCurrency(value), "Cost"]) as never
|
||||
}
|
||||
formatter={((value: number) => [formatCurrency(value), "Cost"]) as never}
|
||||
contentStyle={{
|
||||
borderRadius: "8px",
|
||||
border: "1px solid #E2E8F0",
|
||||
@@ -406,14 +404,12 @@ export default function UsagePage(): ReactElement {
|
||||
dataKey="count"
|
||||
nameKey="outcome"
|
||||
label={
|
||||
((props: Record<string, unknown>) =>
|
||||
`${String(props.outcome ?? "")}: ${String(props.count ?? 0)}`) as never
|
||||
((props: { outcome?: string; count?: number }) =>
|
||||
`${props.outcome ?? ""}: ${String(props.count ?? 0)}`) as never
|
||||
}
|
||||
/>
|
||||
<Tooltip
|
||||
formatter={
|
||||
((value: number, name: string) => [value, name]) as never
|
||||
}
|
||||
formatter={((value: number, name: string) => [value, name]) as never}
|
||||
contentStyle={{
|
||||
borderRadius: "8px",
|
||||
border: "1px solid #E2E8F0",
|
||||
|
||||
Reference in New Issue
Block a user