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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user