The best way to control Claude Code, Codex and more from any computer or phone
chore(lint): enforce react/static-components (#25110)
Julius Marminge committed
Oct 25, 2026 at 19:32 UTC
285b19d52eee750585d41aed5101b907a6205215
3 files changed
+3
apps/mobile/src/features/review/ReviewSheet.tsx
+1
@@ -721,6 +721,7 @@ export function ReviewSheet(props: ReviewSheetProps) {
721
>
722
{listHeader}
723
<View className="min-w-0 flex-1" collapsable={false}>
724
+ {/* oxlint-disable-next-line react/static-components -- The resolver returns a cached native component with stable identity. */}
725
<NativeReviewDiffView
726
collapsable={false}
727
testID="review-native-diff-view"
apps/mobile/src/features/terminal/NativeTerminalSurface.tsx
+1
@@ -274,6 +274,7 @@ const ReadyTerminalSurface = memo(function ReadyTerminalSurface(props: ReadyTerm
274
if (NativeTerminalSurfaceView) {
275
return (
276
<View style={props.style}>
277
+ {/* oxlint-disable-next-line react/static-components -- The resolver returns a cached native component with stable identity. */}
278
<NativeTerminalSurfaceView
279
ref={nativeRef}
280
appearanceScheme={themeAppearance}
vite.config.ts
+1
@@ -216,6 +216,7 @@ export default defineConfig({
216
perf: "warn",
217
},
218
rules: {
219
+ "react/static-components": "error",
220
"react/capitalized-calls": "error",
221
"typescript/no-extraneous-class": "error",
222
"eslint/no-empty-pattern": "error",