From 2a00add966ff1a18e7c1e758ea26abbbf21504ef Mon Sep 17 00:00:00 2001 From: Siddharth Gelera Date: Mon, 29 Sep 2025 14:54:56 +0530 Subject: [PATCH] fix: update stylistic rules in ESLint configuration - Added 'comma-dangle' rule to disallow trailing commas. - Changed 'arrow-parens' rule to require parentheses for arrow functions. --- eslint.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 4eaaf583b..70c15f819 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -37,11 +37,11 @@ module.exports = runESMImports().then(() => defineConfig([ indent: 2, quotes: 'single', semi: true, - arrowParens: false, jsx: true, }).rules, + '@stylistic/comma-dangle': ['error', 'never'], '@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }], - '@stylistic/arrow-parens': ['error', 'as-needed'], + '@stylistic/arrow-parens': ['error', 'always'], '@stylistic/curly-newline': ['error', { multiline: true, minElements: 2,