diff --git a/src/lib/calc/calculator.ts b/src/lib/calc/calculator.ts index e8bf9ae..2977e86 100644 --- a/src/lib/calc/calculator.ts +++ b/src/lib/calc/calculator.ts @@ -151,6 +151,7 @@ export const calculate = (expression: string, previous: number | null) => { } switch (token.type) { case 'number': { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion accumulator = parseFloat(token.value!); return; } @@ -177,6 +178,7 @@ export const calculate = (expression: string, previous: number | null) => { } switch (leftOperand.type) { case 'number': { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const value = parseFloat(leftOperand.value!); const result = performOperation(operation, value, accumulator ?? 0); accumulator = result; diff --git a/src/routes/analytics/accounts/groupings/GroupingListItem.svelte b/src/routes/analytics/accounts/groupings/GroupingListItem.svelte index f469b92..cf5966a 100644 --- a/src/routes/analytics/accounts/groupings/GroupingListItem.svelte +++ b/src/routes/analytics/accounts/groupings/GroupingListItem.svelte @@ -14,6 +14,7 @@ export let draggable = false; export let editable = true; + // TODO: on grouping click export let onClick: (grouping: Grouping) => void = () => console.log('onClick', grouping); const handleClick = () => { diff --git a/src/routes/categories/+page.svelte b/src/routes/categories/+page.svelte index 99c9579..39cf957 100644 --- a/src/routes/categories/+page.svelte +++ b/src/routes/categories/+page.svelte @@ -1,7 +1,7 @@