Skip to content

Commit b088a85

Browse files
chore(lint): enforce react/static-components
1 parent 53896ae commit b088a85

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/mobile/src/features/review/ReviewSheet.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ export function ReviewSheet(props: ReviewSheetProps) {
721721
>
722722
{listHeader}
723723
<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. */}
724725
<NativeReviewDiffView
725726
collapsable={false}
726727
testID="review-native-diff-view"

‎apps/mobile/src/features/terminal/NativeTerminalSurface.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ const ReadyTerminalSurface = memo(function ReadyTerminalSurface(props: ReadyTerm
274274
if (NativeTerminalSurfaceView) {
275275
return (
276276
<View style={props.style}>
277+
{/* oxlint-disable-next-line react/static-components -- The resolver returns a cached native component with stable identity. */}
277278
<NativeTerminalSurfaceView
278279
ref={nativeRef}
279280
appearanceScheme={themeAppearance}

‎vite.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ export default defineConfig({
216216
perf: "warn",
217217
},
218218
rules: {
219+
"react/static-components": "error",
219220
"react/capitalized-calls": "error",
220221
"typescript/no-extraneous-class": "error",
221222
"eslint/no-empty-pattern": "error",

0 commit comments

Comments
 (0)