Skip to content

Multi attachment content type #1060

Multi attachment content type

Multi attachment content type #1060

Triggered via pull request February 14, 2025 22:28
Status Failure
Total duration 1m 18s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 10 warnings
lint: example/src/ConversationScreen.tsx#L4
'xmtp-react-native-sdk' imported multiple times
lint: example/src/ConversationScreen.tsx#L37
'xmtp-react-native-sdk' imported multiple times
lint: example/src/ConversationScreen.tsx#L718
React Hook "ImagePicker.useCameraPermissions" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function
lint: example/src/hooks.tsx#L519
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
lint: example/src/hooks.tsx#L692
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
lint
Process completed with exit code 1.
lint: example/src/ConversationScreen.tsx#L4
`xmtp-react-native-sdk` import should occur after import of `react-native`
lint: example/src/ConversationScreen.tsx#L76
Delete `··`
lint: example/src/ConversationScreen.tsx#L84
Insert `··`
lint: example/src/ConversationScreen.tsx#L85
Replace `const·[previewingAttachmentIndex,·setPreviewingAttachmentIndex]·=·useState<number·|·null` with `··const·[previewingAttachmentIndex,·setPreviewingAttachmentIndex]·=·useState<⏎····number·|·null⏎··`
lint: example/src/ConversationScreen.tsx#L86
Insert `··`
lint: example/src/ConversationScreen.tsx#L87
Insert `··`
lint: example/src/ConversationScreen.tsx#L88
Replace `····.filter(a·=>·(a.image?.uri·||·a.file?.uri)` with `······.filter((a)·=>·a.image?.uri·||·a.file?.uri`
lint: example/src/ConversationScreen.tsx#L89
Replace `····.map(a` with `······.map((a)`
lint: example/src/ConversationScreen.tsx#L90
Replace `······const·uri·=·a.image?.uri·||·a.file?.uri·||·'';` with `········const·uri·=·a.image?.uri·||·a.file?.uri·||·''`
lint: example/src/ConversationScreen.tsx#L91
Insert `··`