Skip to content

Develop frontend for creating announcements #246

Develop frontend for creating announcements

Develop frontend for creating announcements #246

Triggered via pull request June 6, 2024 02:14
Status Success
Total duration 1m 8s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
run-lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, dorny/paths-filter@v2, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
run-lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
run-lint: frontend/src/components/pages/announcements/AnnouncementsGroups.tsx#L60
Replace `·(selectedRooms·&&·selectedRooms.length·>·0)?·selectedRooms` with `⏎····selectedRooms·&&·selectedRooms.length·>·0⏎······?·selectedRooms⏎······`
run-lint: frontend/src/components/pages/announcements/AnnouncementsGroups.tsx#L91
Replace `'gray.500'·:·'black'}>{formatRooms(rooms)}` with `"gray.500"·:·"black"}>⏎··············{formatRooms(rooms)}⏎············`
run-lint: frontend/src/components/pages/announcements/AnnouncementsGroups.tsx#L93
Replace `?·moment(firstAnnouncement.createdAt).fromNow()` with `⏎················?·moment(firstAnnouncement.createdAt).fromNow()⏎················`
run-lint: frontend/src/components/pages/announcements/AnnouncementsGroups.tsx#L97
Replace `{truncateMessage(firstAnnouncement?·firstAnnouncement.message:·"",·60)}</Text>` with `⏎············{truncateMessage(⏎··············firstAnnouncement·?·firstAnnouncement.message·:·"",⏎··············60,⏎············)}`
run-lint: frontend/src/components/pages/announcements/AnnouncementsGroups.tsx#L111
Replace `·announcements,·setSelectedGroup,·addingNewRoom,·setAddingNewRoom,·selectedRooms` with `⏎··announcements,⏎··setSelectedGroup,⏎··addingNewRoom,⏎··setAddingNewRoom,⏎··selectedRooms,⏎`
run-lint: frontend/src/components/pages/announcements/AnnouncementsGroups.tsx#L141
Replace `addingNewRoom?·` with `⏎········addingNewRoom·?·(`
run-lint: frontend/src/components/pages/announcements/AnnouncementsGroups.tsx#L142
Replace `········<GroupTab·` with `··········<GroupTab`