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

@ -51,11 +51,11 @@ interface IState {
}
export default class AuxPanel extends React.Component<IProps, IState> {
static defaultProps = {
public static defaultProps = {
showApps: true,
};
constructor(props) {
public constructor(props) {
super(props);
this.state = {
@ -63,20 +63,20 @@ export default class AuxPanel extends React.Component<IProps, IState> {
};
}
componentDidMount() {
public componentDidMount() {
const cli = MatrixClientPeg.get();
if (SettingsStore.getValue("feature_state_counters")) {
cli.on(RoomStateEvent.Events, this.onRoomStateEvents);
}
}
componentWillUnmount() {
public componentWillUnmount() {
if (SettingsStore.getValue("feature_state_counters")) {
MatrixClientPeg.get()?.removeListener(RoomStateEvent.Events, this.onRoomStateEvents);
}
}
shouldComponentUpdate(nextProps, nextState) {
public shouldComponentUpdate(nextProps, nextState) {
return objectHasDiff(this.props, nextProps) || objectHasDiff(this.state, nextState);
}
@ -125,7 +125,7 @@ export default class AuxPanel extends React.Component<IProps, IState> {
return counters;
}
render() {
public render() {
const callView = (
<LegacyCallViewForRoom
roomId={this.props.room.roomId}