Skip to content

Commit

Permalink
eslint to 8.9.0 (#7889)
Browse files Browse the repository at this point in the history
Signed-off-by: Kerry Archibald <kerrya@element.io>
  • Loading branch information
Kerry committed Feb 24, 2022
1 parent c257bc3 commit 6e143c3
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 89 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@
"concurrently": "^5.3.0",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"eslint": "7.18.0",
"eslint": "8.9.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-matrix-org": "^0.4.0",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"glob": "^7.1.6",
"jest": "^27.4.0",
"jest-canvas-mock": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/structures/GroupView.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ export default class GroupView extends React.Component {
_dismissUpgradeNotice = () => {
localStorage.setItem(UPGRADE_NOTICE_LS_KEY, "true");
this.setState({ showUpgradeNotice: false });
}
};

_onCreateSpaceClick = () => {
createSpaceFromCommunity(this._matrixClient, this.props.groupId);
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/groups/GroupRoomTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GroupRoomTile extends React.Component {
groupRoom: GroupRoomType.isRequired,
};

static contextType = MatrixClientContext
static contextType = MatrixClientContext;

onClick = e => {
dis.dispatch({
Expand Down
6 changes: 5 additions & 1 deletion src/components/views/rooms/RoomList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,11 @@ export default class RoomList extends React.PureComponent<IProps, IState> {

public focus(): void {
// focus the first focusable element in this aria treeview widget
[...this.treeRef.current?.querySelectorAll<HTMLElement>('[role="treeitem"]')]
const treeItems = this.treeRef.current?.querySelectorAll<HTMLElement>('[role="treeitem"]');
if (treeItems) {
return;
}
[...treeItems]
.find(e => e.offsetParent !== null)?.focus();
}

Expand Down
Loading

0 comments on commit 6e143c3

Please sign in to comment.