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

Commit 6e143c3

Browse files
author
Kerry
authored
eslint to 8.9.0 (#7889)
Signed-off-by: Kerry Archibald <[email protected]>
1 parent c257bc3 commit 6e143c3

File tree

5 files changed

+105
-89
lines changed

5 files changed

+105
-89
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@
168168
"concurrently": "^5.3.0",
169169
"enzyme": "^3.11.0",
170170
"enzyme-to-json": "^3.6.2",
171-
"eslint": "7.18.0",
171+
"eslint": "8.9.0",
172172
"eslint-config-google": "^0.14.0",
173173
"eslint-plugin-import": "^2.25.4",
174174
"eslint-plugin-jsx-a11y": "^6.5.1",
175175
"eslint-plugin-matrix-org": "^0.4.0",
176-
"eslint-plugin-react": "^7.22.0",
177-
"eslint-plugin-react-hooks": "^4.2.0",
176+
"eslint-plugin-react": "^7.28.0",
177+
"eslint-plugin-react-hooks": "^4.3.0",
178178
"glob": "^7.1.6",
179179
"jest": "^27.4.0",
180180
"jest-canvas-mock": "^2.3.0",

src/components/structures/GroupView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ export default class GroupView extends React.Component {
815815
_dismissUpgradeNotice = () => {
816816
localStorage.setItem(UPGRADE_NOTICE_LS_KEY, "true");
817817
this.setState({ showUpgradeNotice: false });
818-
}
818+
};
819819

820820
_onCreateSpaceClick = () => {
821821
createSpaceFromCommunity(this._matrixClient, this.props.groupId);

src/components/views/groups/GroupRoomTile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GroupRoomTile extends React.Component {
3131
groupRoom: GroupRoomType.isRequired,
3232
};
3333

34-
static contextType = MatrixClientContext
34+
static contextType = MatrixClientContext;
3535

3636
onClick = e => {
3737
dis.dispatch({

src/components/views/rooms/RoomList.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,11 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
667667

668668
public focus(): void {
669669
// focus the first focusable element in this aria treeview widget
670-
[...this.treeRef.current?.querySelectorAll<HTMLElement>('[role="treeitem"]')]
670+
const treeItems = this.treeRef.current?.querySelectorAll<HTMLElement>('[role="treeitem"]');
671+
if (treeItems) {
672+
return;
673+
}
674+
[...treeItems]
671675
.find(e => e.offsetParent !== null)?.focus();
672676
}
673677

0 commit comments

Comments
 (0)