ESlint array-bracket-spacing

and object-property-newline
This commit is contained in:
Peter Jaszkowiak
2017-02-18 00:04:34 -07:00
parent 554075b312
commit d7526b5e44
6 changed files with 18 additions and 7 deletions

View File

@@ -56,7 +56,15 @@ module.exports = function (db, module) {
$project: {
value: 1,
score: {
$cond: { if: { $eq: [ "$_key", sets[index] ] }, then: { $multiply: [ '$score', weight ] }, else: '$score' },
$cond: {
if: {
$eq: ["$_key", sets[index]],
},
then: {
$multiply: ['$score', weight],
},
else: '$score',
},
},
},
});