Enable @typescript-eslint/explicit-member-accessibility on /src (#9785)
* Enable `@typescript-eslint/explicit-member-accessibility` on /src * Prettier
This commit is contained in:
committed by
GitHub
parent
51554399fb
commit
f1e8e7f140
@@ -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">
|
||||
|
||||
@@ -38,7 +38,7 @@ interface IState {
|
||||
* Dialog to view m.location events maximised
|
||||
*/
|
||||
export default class LocationViewDialog extends React.Component<IProps, IState> {
|
||||
constructor(props: IProps) {
|
||||
public constructor(props: IProps) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
@@ -54,7 +54,7 @@ export default class LocationViewDialog extends React.Component<IProps, IState>
|
||||
this.setState({ error });
|
||||
};
|
||||
|
||||
render() {
|
||||
public render() {
|
||||
const { mxEvent } = this.props;
|
||||
|
||||
// only pass member to marker when should render avatar marker
|
||||
|
||||
Reference in New Issue
Block a user