Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit db343b5

Browse files
committed
Two more easy files to remove from eslintignore
Just missing params/returns on jsdoc
1 parent db0d74d commit db343b5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.eslintignore.errorfiles

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# autogenerated file: run scripts/generate-eslint-error-ignore-file to update.
22

33
src/Markdown.js
4-
src/Rooms.js
5-
src/Unread.js
64
src/Velociraptor.js
75
src/components/structures/RoomDirectory.js
86
src/components/views/rooms/MemberList.js

src/Rooms.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import {MatrixClientPeg} from './MatrixClientPeg';
2121
* if any. This could be the canonical alias if one exists, otherwise
2222
* an alias selected arbitrarily but deterministically from the list
2323
* of aliases. Otherwise return null;
24+
*
25+
* @param {Object} room The room object
26+
* @returns {string} A display alias for the given room
2427
*/
2528
export function getDisplayAliasForRoom(room) {
2629
return room.getCanonicalAlias() || room.getAltAliases()[0];

src/Unread.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ limitations under the License.
1616

1717
import {MatrixClientPeg} from "./MatrixClientPeg";
1818
import shouldHideEvent from './shouldHideEvent';
19-
import * as sdk from "./index";
2019
import {haveTileForEvent} from "./components/views/rooms/EventTile";
2120

2221
/**
2322
* Returns true iff this event arriving in a room should affect the room's
2423
* count of unread messages
24+
*
25+
* @param {Object} ev The event
26+
* @returns {boolean} True if the given event should affect the unread message count
2527
*/
2628
export function eventTriggersUnreadCount(ev) {
2729
if (ev.sender && ev.sender.userId == MatrixClientPeg.get().credentials.userId) {

0 commit comments

Comments
 (0)