Merge pull request #18289 from overleaf/ac-ar-eslint-return-await

Add ESLint rule @typescript-eslint/return-await to backend services

GitOrigin-RevId: 75e3e32597827fcc852e69d479515fc72e8f45e4
This commit is contained in:
Andrew Rumble
2024-05-22 10:37:08 +01:00
committed by Copybot
parent 029cd4abe7
commit 71187a51ba
43 changed files with 1180 additions and 411 deletions

View File

@@ -2,7 +2,7 @@ const ProjectFlusher = require('../app/js/ProjectFlusher')
async function main() {
console.log('Flushing all projects')
return new Promise((resolve, reject) => {
return await new Promise((resolve, reject) => {
const options = {
limit: 100000,
concurrency: 5,

View File

@@ -2,7 +2,10 @@
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"expire_docops.js",
"app/js/**/*",
"benchmarks/**/*",
"config/**/*",
"scripts/**/*",
"test/**/*"
]