Merge pull request #3470 from overleaf/eslint

Upgrade and configure ESLint

GitOrigin-RevId: ad5aeaf85e72c847a125ff3a9db99a12855e38aa
This commit is contained in:
Alf Eaton
2020-12-15 10:23:54 +00:00
committed by Copybot
parent 1fcf94c3b9
commit 2ff1cf43d6
264 changed files with 3356 additions and 6520 deletions
@@ -1,6 +1,6 @@
/* eslint-disable
camelcase,
handle-callback-err,
node/handle-callback-err,
max-len,
no-unused-vars,
*/
@@ -100,9 +100,7 @@ module.exports = ProjectOutputFileAgent = {
) // Created
} else {
err = new OutputFileFetchFailedError(
`Output file fetch failed: ${linkedFileData.build_id}, ${
linkedFileData.source_output_file_path
}`
`Output file fetch failed: ${linkedFileData.build_id}, ${linkedFileData.source_output_file_path}`
)
err.statusCode = response.statusCode
return callback(err)
@@ -158,9 +156,7 @@ module.exports = ProjectOutputFileAgent = {
) // Created
} else {
err = new OutputFileFetchFailedError(
`Output file fetch failed: ${linkedFileData.build_id}, ${
linkedFileData.source_output_file_path
}`
`Output file fetch failed: ${linkedFileData.build_id}, ${linkedFileData.source_output_file_path}`
)
err.statusCode = response.statusCode
return callback(err)