Skip to content

Commit 9d3c282

Browse files
Trailing comma setting adjustment (#21)
* update prettier resource file to keep trailing commas on objects, but not functions
1 parent 09a0761 commit 9d3c282

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"printWidth": 80,
44
"tabWidth": 2,
55
"singleQuote": false,
6-
"trailingComma": "all",
6+
"trailingComma": "es5",
77
"parser": "babylon",
88
"semi": true,
99
"quoteProps": "consistent"

source/code-snippets/usage-examples/replaceOne.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function run() {
4040
}
4141
if (result.upsertedCount === 1) {
4242
console.log(
43-
"Inserted one new document with an _id of " + result.upsertedId._id,
43+
"Inserted one new document with an _id of " + result.upsertedId._id
4444
);
4545
}
4646
}

0 commit comments

Comments
 (0)