Migrate to stylistic
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
d8052e6a73
commit
6c6bf811a6
124 changed files with 239 additions and 196 deletions
|
@ -227,6 +227,7 @@ export const SETTINGS: { [setting: string]: ISetting } = {
|
|||
),
|
||||
feedbackLabel: "video-room-feedback",
|
||||
feedbackSubheading: _td("labs|video_rooms_feedbackSubheading"),
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
image: require("../../res/img/betas/video_rooms.png"),
|
||||
requiresRefresh: true,
|
||||
},
|
||||
|
|
|
@ -34,7 +34,7 @@ export function isPushNotifyDisabled(): boolean {
|
|||
|
||||
function getNotifier(): any {
|
||||
// TODO: [TS] Formal type that doesn't cause a cyclical reference.
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
let Notifier = require("../../Notifier"); // avoids cyclical references
|
||||
if (Notifier.default) Notifier = Notifier.default; // correct for webpack require() weirdness
|
||||
return Notifier;
|
||||
|
|
|
@ -57,7 +57,7 @@ export default class LocalEchoWrapper extends SettingsHandler {
|
|||
|
||||
try {
|
||||
await handlerPromise;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// notify of a rollback
|
||||
this.handler.watchers?.notifyUpdate(settingName, roomId, this.level, currentValue);
|
||||
} finally {
|
||||
|
|
|
@ -16,9 +16,7 @@ import { SettingLevel } from "../SettingLevel";
|
|||
import { WatchManager } from "../WatchManager";
|
||||
|
||||
const DEFAULT_SETTINGS_EVENT_TYPE = "im.vector.web.settings";
|
||||
const PREVIEW_URLS_EVENT_TYPE = "org.matrix.room.preview_urls";
|
||||
|
||||
type RoomSettingsEventType = typeof DEFAULT_SETTINGS_EVENT_TYPE | typeof PREVIEW_URLS_EVENT_TYPE;
|
||||
type RoomSettingsEventType = typeof DEFAULT_SETTINGS_EVENT_TYPE | "org.matrix.room.preview_urls";
|
||||
|
||||
/**
|
||||
* Gets and sets settings at the "room" level.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue