The best way to control Claude Code, Codex and more from any computer or phone
chore(lint): enforce react/capitalized-calls (#25109)
Julius Marminge committed
Oct 25, 2026 at 19:18 UTC
53896aea76145325136a85f0e2da435c5426b41a
4 files changed
+4
apps/mobile/src/features/threads/ThreadArrangementSheet.tsx
+1
@@ -105,6 +105,7 @@ function DragHandle(props: {
105
latest.current = props;
106
const gesture = useMemo(
107
() =>
108
+ // oxlint-disable-next-line react/capitalized-calls -- Gesture.Pan is a gesture factory, not a React component.
109
Gesture.Pan()
110
.enabled(!props.disabled)
111
.minDistance(0)
apps/mobile/src/features/threads/ThreadQueueControl.tsx
+1
@@ -614,6 +614,7 @@ function QueueDragHandle(props: {
614
const onStart = useEffectEvent(() => props.onStart());
615
const onMove = useEffectEvent((y: number) => props.onMove(y));
616
const onEnd = useEffectEvent((y: number, success: boolean) => props.onEnd(y, success));
617
+ // oxlint-disable-next-line react/capitalized-calls -- Gesture.Pan is a gesture factory, not a React component.
618
const gesture = Gesture.Pan()
619
.enabled(!props.disabled)
620
.minDistance(0)
apps/mobile/src/lib/useHoverGesture.ts
+1
@@ -5,6 +5,7 @@ export function useHoverGesture(disabled = false) {
5
const [hovered, setHovered] = useState(false);
6
const hoverGesture = useMemo(
7
() =>
8
+ // oxlint-disable-next-line react/capitalized-calls -- Gesture.Hover is a gesture factory, not a React component.
9
Gesture.Hover()
10
.manualActivation(true)
11
.enabled(!disabled)
vite.config.ts
+1
@@ -216,6 +216,7 @@ export default defineConfig({
216
perf: "warn",
217
},
218
rules: {
219
+ "react/capitalized-calls": "error",
220
"typescript/no-extraneous-class": "error",
221
"eslint/no-empty-pattern": "error",
222
"eslint/no-new": "error",