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
@@ -76,7 +76,7 @@ module.exports = ProjectRootDocManager = {
cwd: directoryPath,
followSymlinkedDirectories: false,
onlyFiles: true,
case: false
case: false,
})
// the search order is such that we prefer files closer to the project root, then
@@ -272,7 +272,7 @@ module.exports = ProjectRootDocManager = {
size: stat.size,
path: filePath,
elements: filePath.split(Path.sep).length,
name: Path.basename(filePath)
name: Path.basename(filePath),
})
}),
function (err, files) {
@@ -309,7 +309,7 @@ module.exports = ProjectRootDocManager = {
}
// otherwise, use the full path name
return a.path.localeCompare(b.path)
}
},
}
const promises = {
@@ -330,7 +330,7 @@ const promises = {
}
)
}),
setRootDocFromName: promisify(ProjectRootDocManager.setRootDocFromName)
setRootDocFromName: promisify(ProjectRootDocManager.setRootDocFromName),
}
ProjectRootDocManager.promises = promises