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

@ -38,13 +38,13 @@ export default class LinkPreviewWidget extends React.Component<IProps> {
private readonly description = createRef<HTMLDivElement>();
private image = createRef<HTMLImageElement>();
componentDidMount() {
public componentDidMount() {
if (this.description.current) {
linkifyElement(this.description.current);
}
}
componentDidUpdate() {
public componentDidUpdate() {
if (this.description.current) {
linkifyElement(this.description.current);
}
@ -83,7 +83,7 @@ export default class LinkPreviewWidget extends React.Component<IProps> {
Modal.createDialog(ImageView, params, "mx_Dialog_lightbox", null, true);
};
render() {
public render() {
const p = this.props.preview;
if (!p || Object.keys(p).length === 0) {
return <div />;