[WIP] ♻️ make templates classy and replace 🍝 code #11064
Annotations
15 errors and 10 warnings
typecheck:
packages/loot-core/src/server/budget/app.ts#L30
Argument of type '(args_0: { month: any; }) => Promise<void>' is not assignable to parameter of type '(arg: { month: string; }) => Promise<Notification>'.
|
typecheck:
packages/loot-core/src/server/budget/app.ts#L34
Argument of type '(args_0: { month: any; }) => Promise<void>' is not assignable to parameter of type '(arg: { month: string; }) => Promise<Notification>'.
|
typecheck:
packages/loot-core/src/server/budget/app.ts#L38
Argument of type '(args_0: { month: any; category: any; }) => Promise<void>' is not assignable to parameter of type '(arg: { month: string; category: string; }) => Promise<Notification>'.
|
typecheck:
packages/loot-core/src/server/budget/goals/goalsSimple.test.ts#L18
Expected 2 arguments, but got 7.
|
typecheck:
packages/loot-core/src/server/budget/goals/goalsSimple.test.ts#L26
Property 'to_budget' does not exist on type '{ increment: number; }'.
|
typecheck:
packages/loot-core/src/server/budget/goals/goalsSimple.test.ts#L27
Property 'errors' does not exist on type '{ increment: number; }'.
|
typecheck:
packages/loot-core/src/server/budget/goals/goalsSimple.test.ts#L28
Property 'limitCheck' does not exist on type '{ increment: number; }'.
|
typecheck:
packages/loot-core/src/server/budget/goals/goalsSimple.test.ts#L29
Property 'limit' does not exist on type '{ increment: number; }'.
|
typecheck:
packages/loot-core/src/server/budget/goals/goalsSimple.test.ts#L30
Property 'hold' does not exist on type '{ increment: number; }'.
|
typecheck:
packages/loot-core/src/server/budget/goals/goalsSimple.test.ts#L47
Expected 2 arguments, but got 7.
|
test
Argument of type '(args_0: { month: any; }) => Promise<void>' is not assignable to parameter of type '(arg: { month: string; }) => Promise<Notification>'.
|
test
Argument of type '(args_0: { month: any; }) => Promise<void>' is not assignable to parameter of type '(arg: { month: string; }) => Promise<Notification>'.
|
test
Argument of type '(args_0: { month: any; category: any; }) => Promise<void>' is not assignable to parameter of type '(arg: { month: string; category: string; }) => Promise<Notification>'.
|
test
Process completed with exit code 1.
|
lint
Process completed with exit code 1.
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L7
'isReflectBudget' is defined but never used. Allowed unused vars must match /^(_|React)/u
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L9
'Template' is defined but never used. Allowed unused vars must match /^(_|React)/u
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L58
Replace `⏎····priority:·number,⏎····budgetAvail:·number,⏎··)·{⏎` with `priority:·number,·budgetAvail:·number)·{`
|
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L134
Replace `-` with `·-·`
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L176
Replace `templates,·categoryID:·string,·month:·string,·fromLastMonth:number` with `⏎····templates,⏎····categoryID:·string,⏎····month:·string,⏎····fromLastMonth:·number,⏎··`
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L183
Expected '!==' and instead saw '!='
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L287
Avoid using straight quotes (' or ") in user-visible text. Use curly quotes (‘ ’ or “ ”) instead
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L287
Avoid using straight quotes (' or ") in user-visible text. Use curly quotes (‘ ’ or “ ”) instead
|
lint:
packages/loot-core/src/server/budget/categoryTemplate.ts#L303
Expected '!==' and instead saw '!='
|