Skip to content

Commit 154440f

Browse files
authored
eslint: comma-dangle: only allow for multiline declarations (#8846)
1 parent 5054bf8 commit 154440f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626

2727
"rules": {
28+
"comma-dangle": ["error", "only-multiline"],
2829
"eol-last": "error",
2930
"no-empty": "off",
3031
"no-console": "off",

tests/find/test-suite-1/test.default-index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('test.default-index.js', function () {
126126
]).then(function () {
127127
return db.find({
128128
selector: {foo: {$ne: "eba"}},
129-
fields: ["_id",],
129+
fields: ["_id"],
130130
sort: ["_id"]
131131
});
132132
}).then(function (resp) {

0 commit comments

Comments
 (0)