diff --git a/commands.js b/commands.js index 8b98a81..8f2450e 100644 --- a/commands.js +++ b/commands.js @@ -116,7 +116,7 @@ export default { usage: "[message]", description: "Set away message", execute: (app, args) => { - const params = [] + const params = []; if (args.length) { params.push(args.join(" ")); } diff --git a/eslint.config.js b/eslint.config.js index f740aa3..bcc27b3 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -25,6 +25,7 @@ export default [ "no-var": "error", "@stylistic/js/indent": ["warn", "tab"], "@stylistic/js/quotes": ["warn", "double"], + "@stylistic/js/semi": "warn", }, }, ]; diff --git a/lib/client.js b/lib/client.js index f7a02b9..90c25ba 100644 --- a/lib/client.js +++ b/lib/client.js @@ -710,7 +710,7 @@ export default class Client extends EventTarget { if (!this.ws) { throw new Error("Failed to send IRC message " + msg.command + ": socket is closed"); } - let raw = irc.formatMessage(msg) + let raw = irc.formatMessage(msg); this.ws.send(raw); if (this.debug) { console.debug("Sent:", raw); diff --git a/lib/irc.js b/lib/irc.js index 2d8836c..d370294 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -123,7 +123,7 @@ export function parseTags(s) { if (parts.length == 2) { v = unescapeTag(parts[1]); if (v.endsWith("\\")) { - v = v.slice(0, v.length - 1) + v = v.slice(0, v.length - 1); } } tags[k] = v; @@ -241,7 +241,7 @@ export function formatMessage(msg) { s += msg.command; if (msg.params && msg.params.length > 0) { for (let i = 0; i < msg.params.length - 1; i++) { - s += " " + msg.params[i] + s += " " + msg.params[i]; } let last = String(msg.params[msg.params.length - 1]); diff --git a/lib/linkify.js b/lib/linkify.js index 4f0e669..a8fd32a 100644 --- a/lib/linkify.js +++ b/lib/linkify.js @@ -43,7 +43,7 @@ export default function linkify(text, onClick) { return; } - const prefix = text.substring(last, match.start) + const prefix = text.substring(last, match.start); children.push(prefix); children.push(html` @@ -58,7 +58,7 @@ export default function linkify(text, onClick) { last = match.end; }); - const suffix = text.substring(last) + const suffix = text.substring(last); children.push(suffix); return children;