eslint: Enable @typescript-eslint/method-signature-style.

For historical reasons, TypeScript ignores variance errors for method
shorthand type declarations even in strict mode.  Prefer the correctly
checked style.

https://typescript-eslint.io/rules/method-signature-style

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-12-26 16:34:59 -08:00
committed by Anders Kaseorg
parent b44daf080c
commit 6e220f4dc1
15 changed files with 106 additions and 97 deletions

View File

@@ -16,13 +16,13 @@ import * as keydown_util from "./keydown_util";
*/
export type Toggle = {
maybe_go_left(): boolean;
maybe_go_right(): boolean;
disable_tab(name: string): void;
enable_tab(name: string): void;
value(): string | undefined;
get(): JQuery;
goto(name: string): void;
maybe_go_left: () => boolean;
maybe_go_right: () => boolean;
disable_tab: (name: string) => void;
enable_tab: (name: string) => void;
value: () => string | undefined;
get: () => JQuery;
goto: (name: string) => void;
};
export function toggle(opts: {