Merge pull request #3470 from overleaf/eslint

Upgrade and configure ESLint

GitOrigin-RevId: ad5aeaf85e72c847a125ff3a9db99a12855e38aa
This commit is contained in:
Alf Eaton
2020-12-16 03:08:28 +00:00
committed by Copybot
parent 1fcf94c3b9
commit 2ff1cf43d6
264 changed files with 3356 additions and 6520 deletions
@@ -83,11 +83,7 @@ attemptInvoicesCollection(error => {
throw error
}
console.log(
`DONE (DRY_RUN=${DRY_RUN}). ${
INVOICES_COLLECTED.length
} invoices collection attempts for ${USERS_COLLECTED.length} users. ${
INVOICES_COLLECTED_SUCCESS.length
} successful collections`
`DONE (DRY_RUN=${DRY_RUN}). ${INVOICES_COLLECTED.length} invoices collection attempts for ${USERS_COLLECTED.length} users. ${INVOICES_COLLECTED_SUCCESS.length} successful collections`
)
console.dir(
{
@@ -55,12 +55,8 @@ const printAccountCSV = (account, callback) => {
first_name: account.first_name,
last_name: account.last_name,
hosted_login_token: account.hosted_login_token,
billing_info_url: `https://sharelatex.recurly.com/account/billing_info/edit?ht=${
account.hosted_login_token
}`,
account_management_url: `https://sharelatex.recurly.com/account/${
account.hosted_login_token
}`,
billing_info_url: `https://sharelatex.recurly.com/account/billing_info/edit?ht=${account.hosted_login_token}`,
account_management_url: `https://sharelatex.recurly.com/account/${account.hosted_login_token}`,
current_period_ends_at: `${endAt.getFullYear()}-${endAt.getMonth() +
1}-${endAt.getDate()}`,
current_period_ends_at_segment: parseInt(
@@ -42,9 +42,7 @@ const ScriptLogger = {
printProgress: () => {
console.warn(
`Subscriptions checked: ${
ScriptLogger.checkedSubscriptionsCount
}. Mismatches: ${ScriptLogger.mismatchSubscriptionsCount}`
`Subscriptions checked: ${ScriptLogger.checkedSubscriptionsCount}. Mismatches: ${ScriptLogger.mismatchSubscriptionsCount}`
)
},