chore(deps): update dependency @antfu/eslint-config to ^2.19.0 (#2726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
23f82d3296
commit
0fba07e6e5
32 changed files with 820 additions and 710 deletions
|
@ -60,8 +60,8 @@ export function createNotificationOptions(
|
|||
icon,
|
||||
lang: preferred_locale,
|
||||
tag: notification_id,
|
||||
// eslint-disable-next-line ts/prefer-ts-expect-error
|
||||
// @ts-ignore error missing type, just ignore
|
||||
|
||||
// @ts-expect-error error missing type, just ignore
|
||||
timestamp: new Date().getTime(),
|
||||
}
|
||||
|
||||
|
@ -73,8 +73,7 @@ export function createNotificationOptions(
|
|||
notificationOptions.icon = notification.account.avatar_static
|
||||
*/
|
||||
if (notification.created_at) {
|
||||
// eslint-disable-next-line ts/prefer-ts-expect-error
|
||||
// @ts-ignore error missing type, just ignore
|
||||
// @ts-expect-error error missing type, just ignore
|
||||
notificationOptions.timestamp = new Date(notification.created_at).getTime()
|
||||
}
|
||||
|
||||
|
@ -89,8 +88,7 @@ export function createNotificationOptions(
|
|||
if (notification.status) {
|
||||
// notificationOptions.body = htmlToPlainText(notification.status.content)
|
||||
if (notification.status.media_attachments && notification.status.media_attachments.length > 0 && notification.status.media_attachments[0].preview_url) {
|
||||
// eslint-disable-next-line ts/prefer-ts-expect-error
|
||||
// @ts-ignore error missing type, just ignore
|
||||
// @ts-expect-error error missing type, just ignore
|
||||
notificationOptions.image = notification.status.media_attachments[0].preview_url
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue