Enable @typescript-eslint/explicit-member-accessibility
on /src (#9785)
* Enable `@typescript-eslint/explicit-member-accessibility` on /src * Prettier
This commit is contained in:
parent
51554399fb
commit
f1e8e7f140
396 changed files with 1110 additions and 1098 deletions
|
@ -21,7 +21,7 @@ import { Action } from "../../dispatcher/actions";
|
|||
import { SettingLevel } from "../SettingLevel";
|
||||
|
||||
export default class FontSizeController extends SettingController {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import { Action } from "../../dispatcher/actions";
|
|||
import { SettingLevel } from "../SettingLevel";
|
||||
|
||||
export default class SystemFontController extends SettingController {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import { Action } from "../../dispatcher/actions";
|
|||
import { SettingLevel } from "../SettingLevel";
|
||||
|
||||
export default class UseSystemFontController extends SettingController {
|
||||
constructor() {
|
||||
public constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ export class FontWatcher implements IWatcher {
|
|||
|
||||
private dispatcherRef: string;
|
||||
|
||||
constructor() {
|
||||
public constructor() {
|
||||
this.dispatcherRef = null;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ export default class ThemeWatcher {
|
|||
|
||||
private currentTheme: string;
|
||||
|
||||
constructor() {
|
||||
public constructor() {
|
||||
this.themeWatchRef = null;
|
||||
this.systemThemeWatchRef = null;
|
||||
this.dispatcherRef = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue