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

@ -57,7 +57,7 @@ class LocationPicker extends React.Component<ILocationPickerProps, IState> {
private geolocate?: maplibregl.GeolocateControl = null;
private marker?: maplibregl.Marker = null;
constructor(props: ILocationPickerProps) {
public constructor(props: ILocationPickerProps) {
super(props);
this.state = {
@ -71,7 +71,7 @@ class LocationPicker extends React.Component<ILocationPickerProps, IState> {
return "mx_MLocationPicker_marker";
};
componentDidMount() {
public componentDidMount() {
this.context.on(ClientEvent.ClientWellKnown, this.updateStyleUrl);
try {
@ -128,7 +128,7 @@ class LocationPicker extends React.Component<ILocationPickerProps, IState> {
}
}
componentWillUnmount() {
public componentWillUnmount() {
this.geolocate?.off("error", this.onGeolocateError);
this.geolocate?.off("geolocate", this.onGeolocate);
this.map?.off("click", this.onClick);
@ -208,7 +208,7 @@ class LocationPicker extends React.Component<ILocationPickerProps, IState> {
this.props.onFinished();
};
render() {
public render() {
if (this.state.error) {
return (
<div className="mx_LocationPicker mx_LocationPicker_hasError">