Upgrade eslint-plugin-matrix-org to 1.2.1

This upgrade came with a number of new lints that needed to be fixed across the code base. Primarily: explicit return types on functions, and explicit visibility modifiers on class members.
This commit is contained in:
Robin
2023-09-22 18:05:13 -04:00
parent 444a37224b
commit a7624806b2
88 changed files with 735 additions and 433 deletions

View File

@@ -68,7 +68,7 @@ interface WidgetHelpers {
* is declared and initialized on the top level because the widget messaging
* needs to be set up ASAP on load to ensure it doesn't miss any requests.
*/
export const widget: WidgetHelpers | null = (() => {
export const widget = ((): WidgetHelpers | null => {
try {
const query = new URLSearchParams(window.location.search);
const widgetId = query.get("widgetId");
@@ -161,7 +161,7 @@ export const widget: WidgetHelpers | null = (() => {
);
const clientPromise = new Promise<MatrixClient>((resolve) => {
(async () => {
(async (): Promise<void> => {
// wait for the config file to be ready (we load very early on so it might not
// be otherwise)
await Config.init();