ci: fix lint errors for CI
Deploy to VPS / deploy (push) Successful in 1m47s

- Fix noImplicitAnyLet: add type to let match variable
- Fix noAssignInExpressions: use matchAll() + for-of instead of while
- Suppress useExhaustiveDependencies in mascot scroll effect
- Suppress useSemanticElements for message card click handler
This commit is contained in:
asepharyana
2026-07-26 12:01:51 +07:00
parent 42595a75f3
commit cedce85087
22 changed files with 109 additions and 87 deletions
@@ -153,8 +153,8 @@ export function getCustomEmojiMetadata(
): RichMessageMetadata["customEmojis"] {
const CUSTOM_EMOJI_PATTERN = /<(a)?:([a-zA-Z0-9_]+):(\d+)>/g;
const emojis: CustomEmojiEvidence[] = [];
let match;
while ((match = CUSTOM_EMOJI_PATTERN.exec(message.content)) !== null) {
const matches = [...message.content.matchAll(CUSTOM_EMOJI_PATTERN)];
for (const match of matches) {
const [, animated, name, id] = match;
const ext = animated ? "gif" : "png";
emojis.push({