Skip to content

Commit 2272247

Browse files
committed
chore: fix linter issues
1 parent 21e30c6 commit 2272247

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

ui/src/keyboardLayouts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { chars as chars_sv_SE, name as name_sv_SE } from "@/keyboardLayouts/sv_S
1111
import { chars as chars_fr_CH, name as name_fr_CH } from "@/keyboardLayouts/fr_CH"
1212
import { chars as chars_de_CH, name as name_de_CH } from "@/keyboardLayouts/de_CH"
1313

14-
type KeyInfo = { key: string | number; shift?: boolean, altRight?: boolean }
14+
interface KeyInfo { key: string | number; shift?: boolean, altRight?: boolean }
1515
export type KeyCombo = KeyInfo & { deadKey?: boolean, accentKey?: KeyInfo }
1616

1717
export const layouts: Record<string, string> = {

ui/src/keyboardLayouts/fr_CH.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { KeyCombo } from "../keyboardLayouts"
2+
23
import { chars as chars_de_CH } from "./de_CH"
34

45
export const name = "Français de Suisse";

ui/src/routes/devices.$id.settings.keyboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function SettingsKeyboardRoute() {
2525
if ("error" in resp) return;
2626
setKeyboardLayout(resp.result as string);
2727
});
28-
}, []);
28+
}, []); // eslint-disable-line react-hooks/exhaustive-deps
2929

3030
const onKeyboardLayoutChange = useCallback(
3131
(e: React.ChangeEvent<HTMLSelectElement>) => {

ui/src/routes/devices.$id.settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import { LinkButton } from "@/components/Button";
2020
import LoadingSpinner from "@/components/LoadingSpinner";
2121
import { useUiStore } from "@/hooks/stores";
2222
import useKeyboard from "@/hooks/useKeyboard";
23-
import { FeatureFlag } from "../components/FeatureFlag";
2423

24+
import { FeatureFlag } from "../components/FeatureFlag";
2525
import { cx } from "../cva.config";
2626

2727

0 commit comments

Comments
 (0)