eslint: Enable @typescript-eslint/recommended plugin.

This is not automatically enabled by
@typescript-eslint/recommended-requiring-type-checking for some
reason.

https://typescript-eslint.io/linting/configs/#recommended

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-03-16 11:19:53 -07:00
committed by Tim Abbott
parent 96e657a954
commit 3109ee8015
7 changed files with 8 additions and 10 deletions

View File

@@ -367,7 +367,7 @@ export function stringify_time(time: number | Date): string {
return get_localized_date_or_time_for_format(time, "time");
}
export function format_time_modern(time: number | Date, today = new Date()): String {
export function format_time_modern(time: number | Date, today = new Date()): string {
const hours = differenceInHours(today, time);
const days_old = differenceInCalendarDays(today, time);