diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index f64b8b3..be3d72b 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -10,6 +10,9 @@ module.exports = { '@typescript-eslint/no-use-before-define': ['error'], '@typescript-eslint/no-shadow': ['error'], 'default-case': 'off', + 'consistent-return': 'off', + '@typescript-eslint/no-unsafe-return': ['error'], + '@typescript-eslint/switch-exhaustiveness-check': ['error'], }, settings: { 'import/resolver': { diff --git a/modules/twitch/modules.alerts.go b/modules/twitch/modules.alerts.go index 5cc37b1..a47ae2a 100644 --- a/modules/twitch/modules.alerts.go +++ b/modules/twitch/modules.alerts.go @@ -492,6 +492,7 @@ func (m *BotAlertsModule) addTemplate(templateList map[int]*template.Template, i templateList[id] = tpl } +// writeTemplate renders the template and sends the message to the channel func writeTemplate(bot *Bot, tpl *template.Template, data interface{}) { var buf bytes.Buffer err := tpl.Execute(&buf, data)