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
@@ -135,7 +135,7 @@ async function syncUserEntitlement(userId, email, hasEntitlement) {
function loadUserEntitlements(userEntitlementsFilename) {
const userEntitlementsFile = fs.readFileSync(userEntitlementsFilename, {
encoding: 'utf8'
encoding: 'utf8',
})
const userEntitlements = {}
@@ -156,7 +156,7 @@ function loadUserEntitlements(userEntitlementsFilename) {
function loadCachedEntitlements(cachedEntitlementsFilename) {
const cachedEntitlementsFile = fs.readFileSync(cachedEntitlementsFilename, {
encoding: 'utf8'
encoding: 'utf8',
})
const cachedEntitlements = {}
@@ -167,7 +167,7 @@ function loadCachedEntitlements(cachedEntitlementsFilename) {
userId,
email,
hasEntitlement,
providerId
providerId,
] = cachedEntitlementLine.split(',')
let hasEntitlementBoolean
if (ignoreNulls) {
@@ -180,7 +180,7 @@ function loadCachedEntitlements(cachedEntitlementsFilename) {
email,
hasEntitlement: hasEntitlementBoolean,
providerId,
userId
userId,
}
}