From 4c54949c73d2f4f8f63d3f156c51a129cb6db8ea Mon Sep 17 00:00:00 2001 From: James Scott-Brown Date: Mon, 6 Jan 2025 09:04:58 +0000 Subject: [PATCH] resolve some unexpected prop warnings (#729) --- packages/tables/src/lib/core/renderers/BarCell.svelte | 4 ++++ packages/tables/src/lib/core/renderers/CategoricalTick.svelte | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/tables/src/lib/core/renderers/BarCell.svelte b/packages/tables/src/lib/core/renderers/BarCell.svelte index 368a2869..ba00b0ce 100644 --- a/packages/tables/src/lib/core/renderers/BarCell.svelte +++ b/packages/tables/src/lib/core/renderers/BarCell.svelte @@ -37,6 +37,10 @@ let f = format(formatString); $: f = format(formatString); + + // This suppresses warnings due to the RowRenderer providing props that aren't used. + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + $$restProps;
diff --git a/packages/tables/src/lib/core/renderers/CategoricalTick.svelte b/packages/tables/src/lib/core/renderers/CategoricalTick.svelte index 7e6b652d..f608b1f5 100644 --- a/packages/tables/src/lib/core/renderers/CategoricalTick.svelte +++ b/packages/tables/src/lib/core/renderers/CategoricalTick.svelte @@ -32,6 +32,10 @@ let l; $: l = posScale(value); + + // This suppresses warnings due to the RowRenderer providing props that aren't used. + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + $$restProps;