infra: add linting and formatting for js projects (#230)

* wip

* wip

* wip

* format

* wip(mobile): lint and format

* cleanup

* nits

* nits

* idiomatic react

* nit

* format all root files
This commit was merged in pull request #230.
This commit is contained in:
Arjun Patel
2026-06-02 07:44:24 -07:00
committed by GitHub
parent 2fe562ce2b
commit a8a0b7db1b
258 changed files with 7822 additions and 5195 deletions
+8 -5
View File
@@ -1,13 +1,16 @@
import { useState, useCallback } from "react";
import { useState, useCallback } from 'react';
export type RecordingMode = "video" | "audio";
export type RecordingMode = 'video' | 'audio';
const KEY = "llink:recording-mode";
const KEY = 'llink:recording-mode';
export function useRecordingMode(): [RecordingMode, (mode: RecordingMode) => void] {
export function useRecordingMode(): [
RecordingMode,
(mode: RecordingMode) => void,
] {
const [mode, setModeState] = useState<RecordingMode>(() => {
const stored = localStorage.getItem(KEY);
return stored === "audio" ? "audio" : "video";
return stored === 'audio' ? 'audio' : 'video';
});
const setMode = useCallback((m: RecordingMode) => {