From 75eb175e24ba646d66585b8ba10e9f4718f97e3d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 16 Nov 2024 12:28:17 +0100 Subject: [PATCH] eslint: enable object-shorthand --- eslint.config.js | 1 + lib/client.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index ffb435f..d25ca6a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -27,6 +27,7 @@ export default [ "no-invalid-this": "error", "prefer-arrow-callback": "error", "no-implicit-coercion": "warn", + "object-shorthand": "warn", "@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 9bc28bc..a0ee321 100644 --- a/lib/client.js +++ b/lib/client.js @@ -853,7 +853,7 @@ export default class Client extends EventTarget { } let msg = { command: "JOIN", - params: params, + params, }; return this.roundtrip(msg, (msg) => { switch (msg.command) {