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

@ -35,11 +35,11 @@ export default class UploadConfirmDialog extends React.Component<IProps> {
private readonly objectUrl: string;
private readonly mimeType: string;
static defaultProps = {
public static defaultProps = {
totalFiles: 1,
};
constructor(props) {
public constructor(props) {
super(props);
// Create a fresh `Blob` for previewing (even though `File` already is
@ -49,7 +49,7 @@ export default class UploadConfirmDialog extends React.Component<IProps> {
this.objectUrl = URL.createObjectURL(blob);
}
componentWillUnmount() {
public componentWillUnmount() {
if (this.objectUrl) URL.revokeObjectURL(this.objectUrl);
}
@ -65,7 +65,7 @@ export default class UploadConfirmDialog extends React.Component<IProps> {
this.props.onFinished(true, true);
};
render() {
public render() {
let title: string;
if (this.props.totalFiles > 1 && this.props.currentIndex !== undefined) {
title = _t("Upload files (%(current)s of %(total)s)", {