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

@ -224,7 +224,7 @@ export default class MPollBody extends React.Component<IBodyProps, IState> {
private voteRelationsReceived = false;
private endRelationsReceived = false;
constructor(props: IBodyProps) {
public constructor(props: IBodyProps) {
super(props);
this.state = {
@ -237,7 +237,7 @@ export default class MPollBody extends React.Component<IBodyProps, IState> {
this.props.mxEvent.on(MatrixEventEvent.RelationsCreated, this.onRelationsCreated);
}
componentWillUnmount() {
public componentWillUnmount() {
this.props.mxEvent.off(MatrixEventEvent.RelationsCreated, this.onRelationsCreated);
this.removeListeners(this.state.voteRelations, this.state.endRelations);
}
@ -415,7 +415,7 @@ export default class MPollBody extends React.Component<IBodyProps, IState> {
return isPollEnded(this.props.mxEvent, this.context, this.props.getRelationsForEvent);
}
render() {
public render() {
const poll = this.props.mxEvent.unstableExtensibleEvent as PollStartEvent;
if (!poll?.isEquivalentTo(M_POLL_START)) return null; // invalid
@ -552,7 +552,7 @@ function LivePollOption(props: ILivePollOptionProps) {
}
export class UserVote {
constructor(public readonly ts: number, public readonly sender: string, public readonly answers: string[]) {}
public constructor(public readonly ts: number, public readonly sender: string, public readonly answers: string[]) {}
}
function userResponseFromPollResponseEvent(event: MatrixEvent): UserVote {