Skip to content

Commit

Permalink
Update eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Dec 5, 2024
1 parent 0587f0c commit cdff716
Show file tree
Hide file tree
Showing 14 changed files with 1,349 additions and 547 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

71 changes: 0 additions & 71 deletions .eslintrc.js

This file was deleted.

5 changes: 3 additions & 2 deletions client/components/DescriptionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ function DescriptionDialog({ server, isOpen, onCloseDescription }: DescriptionDi

const dialog = useRef<HTMLDialogElement>(null);
useEffect(() => {
const el = dialog.current;
if (isOpen) {
dialog.current?.showModal();
el?.showModal();
setEverOpened(true);
}
return () => {
dialog.current?.close();
el?.close();
};
}, [isOpen]);

Expand Down
2 changes: 1 addition & 1 deletion client/components/ServerThumbnail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const downTimeout = 600_000; // 10 minutes
function IconButton(props: React.ComponentPropsWithoutRef<'button'>) {
return (
<button type="button" className={styles.iconButton} {...props} />
)
);
}

function WarningIcon() {
Expand Down
2 changes: 1 addition & 1 deletion client/utils/hub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type Server = {
}

/** @param hubServer - URL of the announce server. */
export function loadServers(hubServer: string): Promise<Server[]> { // eslint-disable-line import/prefer-default-export
export function loadServers(hubServer: string): Promise<Server[]> {
return fetch(hubServer)
.then((response) => response.json())
.then((state: { servers: Server[] }) => (
Expand Down
Loading

0 comments on commit cdff716

Please sign in to comment.