From 708acc39de3c12eac5c06d8fb47e497c98a81d42 Mon Sep 17 00:00:00 2001 From: Marcus Quinn <6428977+marcusquinn@users.noreply.github.com> Date: Mon, 16 Mar 2026 23:41:05 +0000 Subject: [PATCH] fix: add comma-dangle rule to .eslintrc.js to prevent trailing commas (issue #25) (#66) Add 'comma-dangle': ['error', 'never'] rule to .eslintrc.js to enforce no trailing commas in JavaScript files. This addresses the Codacy review findings from PR #15 that flagged trailing commas in object and array literals as ErrorProne issues. The rule ensures ESLint catches trailing commas automatically going forward. Closes #25 --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index a20b89b..6d22ada 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,6 +16,7 @@ module.exports = { sourceType: 'module' }, rules: { + 'comma-dangle': ['error', 'never'], 'no-console': 'warn', 'no-unused-vars': 'warn' },