From 1e852c976dd3fdb9047cb57c731748027be62cd0 Mon Sep 17 00:00:00 2001 From: lemonslut Date: Sat, 7 Jun 2025 17:40:56 -0600 Subject: [PATCH] eslint: unused vars, indent, const for unchanging --- src/modules/chat/tokenizers.jsx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/modules/chat/tokenizers.jsx b/src/modules/chat/tokenizers.jsx index af8c881a..16a68fa6 100644 --- a/src/modules/chat/tokenizers.jsx +++ b/src/modules/chat/tokenizers.jsx @@ -442,14 +442,12 @@ export const Mentions = { const can_highlight_user = user && user.login && user.login == msg.user.login && ! this.context.get('chat.filtering.process-own'), priority = this.context.get('chat.filtering.mention-priority'); - let login, display, mentionable = false; + let login, display = false; if ( user && user.login && ! can_highlight_user ) { login = user.login.toLowerCase(); display = user.displayName && user.displayName.toLowerCase(); if ( display === login ) display = null; - - mentionable = true; } const out = []; @@ -464,9 +462,9 @@ export const Mentions = { for(const segment of token.text.split(/ +/)) { const match = /^(@?)(\S+?)(?:\b|$)/.exec(segment); if ( match ) { - let recipient = match[2], - has_at = match[1] === '@', - mentioned = false; + const recipient = match[2], + has_at = match[1] === '@'; + let mentioned = false; const rlower = recipient ? recipient.toLowerCase() : '', color = this.color_cache ? this.color_cache.get(rlower) : null; @@ -1696,6 +1694,7 @@ export const AddonEmotes = { } // Whip up a special preview. + /* eslint-disable indent -- disagrees with react/jsx-indent-props */ preview = (
{as_bg ?
: }
); + /* eslint-enable indent */ } }