From cf54beacc2330c779ae0d21716d04648cae869e2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 29 Sep 2024 11:54:21 +0200 Subject: [PATCH] lint: turn on @stylistic/js/arrow-parens --- components/app.js | 2 +- eslint.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index 075a52e..1e4120b 100644 --- a/components/app.js +++ b/components/app.js @@ -1716,7 +1716,7 @@ export default class App extends Component { if (prefix.startsWith("/")) { let repl = fromList(Object.keys(commands), prefix.slice(1)); - return repl.map(cmd => "/" + cmd); + return repl.map((cmd) => "/" + cmd); } // TODO: consider using the CHANTYPES ISUPPORT token here diff --git a/eslint.config.js b/eslint.config.js index 2471c1a..a3bbd22 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -27,6 +27,7 @@ export default [ "@stylistic/js/quotes": ["warn", "double"], "@stylistic/js/semi": "warn", "@stylistic/js/comma-dangle": ["warn", "always-multiline"], + "@stylistic/js/arrow-parens": "warn", }, }, ];