Enable @typescript-eslint/explicit-member-accessibility on /src (#9785)

* Enable `@typescript-eslint/explicit-member-accessibility` on /src

* Prettier
This commit is contained in:
Michael Telatynski 2022-12-16 12:29:59 +00:00 committed by GitHub
parent 51554399fb
commit f1e8e7f140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
396 changed files with 1110 additions and 1098 deletions

View file

@ -21,7 +21,7 @@ import { Action } from "../../dispatcher/actions";
import { SettingLevel } from "../SettingLevel";
export default class FontSizeController extends SettingController {
constructor() {
public constructor() {
super();
}

View file

@ -27,7 +27,7 @@ import { SettingLevel } from "../SettingLevel";
* will be used - other controllers will not be considered.
*/
export class OrderedMultiController extends SettingController {
constructor(public readonly controllers: SettingController[]) {
public constructor(public readonly controllers: SettingController[]) {
super();
}

View file

@ -22,7 +22,7 @@ import SettingController from "./SettingController";
* When the value changes, call a setter function on the matrix client with the new value
*/
export default class PushToMatrixClientController extends SettingController {
constructor(private setter: Function, private inverse: boolean) {
public constructor(private setter: Function, private inverse: boolean) {
super();
}

View file

@ -22,7 +22,7 @@ import { Action } from "../../dispatcher/actions";
import { SettingLevel } from "../SettingLevel";
export default class SystemFontController extends SettingController {
constructor() {
public constructor() {
super();
}

View file

@ -22,7 +22,7 @@ import { Action } from "../../dispatcher/actions";
import { SettingLevel } from "../SettingLevel";
export default class UseSystemFontController extends SettingController {
constructor() {
public constructor() {
super();
}

View file

@ -37,7 +37,7 @@ const DEFAULT_SETTINGS_EVENT_TYPE = "im.vector.web.settings";
* This handler does not make use of the roomId parameter.
*/
export default class AccountSettingsHandler extends MatrixClientBackedSettingsHandler {
constructor(public readonly watchers: WatchManager) {
public constructor(public readonly watchers: WatchManager) {
super();
}

View file

@ -27,7 +27,7 @@ export default class DefaultSettingsHandler extends SettingsHandler {
* @param {object} defaults The default setting values, keyed by setting name.
* @param {object} invertedDefaults The default inverted setting values, keyed by setting name.
*/
constructor(private defaults: Record<string, any>, private invertedDefaults: Record<string, any>) {
public constructor(private defaults: Record<string, any>, private invertedDefaults: Record<string, any>) {
super();
}

View file

@ -32,7 +32,7 @@ export default class DeviceSettingsHandler extends AbstractLocalStorageSettingsH
* @param {string[]} featureNames The names of known features.
* @param {WatchManager} watchers The watch manager to notify updates to
*/
constructor(private featureNames: string[], public readonly watchers: WatchManager) {
public constructor(private featureNames: string[], public readonly watchers: WatchManager) {
super();
}

View file

@ -35,7 +35,7 @@ export default class LocalEchoWrapper extends SettingsHandler {
* @param {SettingsHandler} handler The handler to wrap
* @param {SettingLevel} level The level to notify updates at
*/
constructor(private readonly handler: SettingsHandler, private readonly level: SettingLevel) {
public constructor(private readonly handler: SettingsHandler, private readonly level: SettingLevel) {
super();
}

View file

@ -29,7 +29,7 @@ import { Action } from "../../dispatcher/actions";
export default class PlatformSettingsHandler extends SettingsHandler {
private store: { [settingName: string]: any } = {};
constructor() {
public constructor() {
super();
defaultDispatcher.register(this.onAction);

View file

@ -32,7 +32,7 @@ const DEFAULT_SETTINGS_EVENT_TYPE = "im.vector.web.settings";
* Gets and sets settings at the "room-account" level for the current user.
*/
export default class RoomAccountSettingsHandler extends MatrixClientBackedSettingsHandler {
constructor(public readonly watchers: WatchManager) {
public constructor(public readonly watchers: WatchManager) {
super();
}

View file

@ -24,7 +24,7 @@ import AbstractLocalStorageSettingsHandler from "./AbstractLocalStorageSettingsH
* room.
*/
export default class RoomDeviceSettingsHandler extends AbstractLocalStorageSettingsHandler {
constructor(public readonly watchers: WatchManager) {
public constructor(public readonly watchers: WatchManager) {
super();
}

View file

@ -31,7 +31,7 @@ const DEFAULT_SETTINGS_EVENT_TYPE = "im.vector.web.settings";
* Gets and sets settings at the "room" level.
*/
export default class RoomSettingsHandler extends MatrixClientBackedSettingsHandler {
constructor(public readonly watchers: WatchManager) {
public constructor(public readonly watchers: WatchManager) {
super();
}

View file

@ -32,7 +32,7 @@ export class FontWatcher implements IWatcher {
private dispatcherRef: string;
constructor() {
public constructor() {
this.dispatcherRef = null;
}

View file

@ -36,7 +36,7 @@ export default class ThemeWatcher {
private currentTheme: string;
constructor() {
public constructor() {
this.themeWatchRef = null;
this.systemThemeWatchRef = null;
this.dispatcherRef = null;