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

@ -25,7 +25,7 @@ interface IState {
}
export default class ToastContainer extends React.Component<{}, IState> {
constructor(props, context) {
public constructor(props, context) {
super(props, context);
this.state = {
toasts: ToastStore.sharedInstance().getToasts(),
@ -39,7 +39,7 @@ export default class ToastContainer extends React.Component<{}, IState> {
ToastStore.sharedInstance().on("update", this.onToastStoreUpdate);
}
componentWillUnmount() {
public componentWillUnmount() {
ToastStore.sharedInstance().removeListener("update", this.onToastStoreUpdate);
}
@ -50,7 +50,7 @@ export default class ToastContainer extends React.Component<{}, IState> {
});
};
render() {
public render() {
const totalCount = this.state.toasts.length;
const isStacked = totalCount > 1;
let toast;