Merge pull request #3942 from overleaf/prettier-trailing-comma

Set Prettier's "trailingComma" setting to "es5"

GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
This commit is contained in:
Alf Eaton
2021-04-28 02:10:01 +00:00
committed by Copybot
parent 15011a9982
commit 1be43911b4
877 changed files with 20093 additions and 20064 deletions
@@ -15,9 +15,9 @@ describe('RecurlyClient', function () {
apis: {
recurly: {
apiKey: 'nonsense',
privateKey: 'private_nonsense'
}
}
privateKey: 'private_nonsense',
},
},
}
this.user = { _id: '123456', email: 'joe@example.com', first_name: 'Joe' }
@@ -30,24 +30,24 @@ describe('RecurlyClient', function () {
if (userId === this.user._id) {
return this.user
}
})
}
}),
},
}
let client
this.client = client = {
getAccount: sinon.stub()
getAccount: sinon.stub(),
}
this.recurly = {
errors: recurly.errors,
Client: function () {
return client
}
},
}
return (this.RecurlyClient = SandboxedModule.require(modulePath, {
globals: {
console: console
console: console,
},
requires: {
'settings-sharelatex': this.settings,
@@ -57,10 +57,10 @@ describe('RecurlyClient', function () {
error: sinon.stub(),
warn: sinon.stub(),
log: sinon.stub(),
debug: sinon.stub()
debug: sinon.stub(),
},
'../User/UserGetter': this.UserGetter
}
'../User/UserGetter': this.UserGetter,
},
}))
})