Enable @typescript-eslint/explicit-function-return-type
in /src (#9788)
* Enable `@typescript-eslint/explicit-member-accessibility` on /src * Prettier * Enable `@typescript-eslint/explicit-function-return-type` in /src * Fix types * tsc strict fixes * Delint * Fix test * Fix bad merge
This commit is contained in:
parent
7a36ba0fde
commit
030b7e90bf
683 changed files with 3459 additions and 3013 deletions
|
@ -50,7 +50,7 @@ export interface RoomGeneralContextMenuProps extends IContextMenuProps {
|
|||
onPostLeaveClick?: (event: ButtonEvent) => void;
|
||||
}
|
||||
|
||||
export const RoomGeneralContextMenu = ({
|
||||
export const RoomGeneralContextMenu: React.FC<RoomGeneralContextMenuProps> = ({
|
||||
room,
|
||||
onFinished,
|
||||
onPostFavoriteClick,
|
||||
|
@ -61,7 +61,7 @@ export const RoomGeneralContextMenu = ({
|
|||
onPostLeaveClick,
|
||||
onPostForgetClick,
|
||||
...props
|
||||
}: RoomGeneralContextMenuProps) => {
|
||||
}) => {
|
||||
const cli = useContext(MatrixClientContext);
|
||||
const roomTags = useEventEmitterState(RoomListStore.instance, LISTS_UPDATE_EVENT, () =>
|
||||
RoomListStore.instance.getTagsForRoom(room),
|
||||
|
@ -86,7 +86,7 @@ export const RoomGeneralContextMenu = ({
|
|||
};
|
||||
};
|
||||
|
||||
const onTagRoom = (ev: ButtonEvent, tagId: TagID) => {
|
||||
const onTagRoom = (ev: ButtonEvent, tagId: TagID): void => {
|
||||
if (tagId === DefaultTagID.Favourite || tagId === DefaultTagID.LowPriority) {
|
||||
const inverseTag = tagId === DefaultTagID.Favourite ? DefaultTagID.LowPriority : DefaultTagID.Favourite;
|
||||
const isApplied = RoomListStore.instance.getTagsForRoom(room).includes(tagId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue