From 154440f0889398c787ca0f0808e9f8c627da5973 Mon Sep 17 00:00:00 2001 From: Alex Anderson <191496+alxndrsn@users.noreply.github.com> Date: Sun, 7 Jan 2024 15:29:52 +0300 Subject: [PATCH] eslint: comma-dangle: only allow for multiline declarations (#8846) --- .eslintrc.json | 1 + tests/find/test-suite-1/test.default-index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index a98dc4c77a..83668f2826 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,6 +25,7 @@ }, "rules": { + "comma-dangle": ["error", "only-multiline"], "eol-last": "error", "no-empty": "off", "no-console": "off", diff --git a/tests/find/test-suite-1/test.default-index.js b/tests/find/test-suite-1/test.default-index.js index afcaaa954b..61700da0de 100644 --- a/tests/find/test-suite-1/test.default-index.js +++ b/tests/find/test-suite-1/test.default-index.js @@ -126,7 +126,7 @@ describe('test.default-index.js', function () { ]).then(function () { return db.find({ selector: {foo: {$ne: "eba"}}, - fields: ["_id",], + fields: ["_id"], sort: ["_id"] }); }).then(function (resp) {