style: apply stylua formatter

This commit is contained in:
Erica Marigold 2024-12-03 15:05:47 +00:00
parent 650d3f9980
commit d49bc42ee0
2 changed files with 41 additions and 37 deletions

View file

@ -56,10 +56,14 @@ local PLATFORM_SEP = if process.os == "windows" then "\\" else "/"
--- ## Errors
--- * The current process lacks permissions to a file
--- * Any I/O error occurs
return function(packageDirectory: string?, files: { string }, options: {
writeToFile: boolean?,
force: boolean?,
}): (boolean, string?)
return function(
packageDirectory: string?,
files: { string },
options: {
writeToFile: boolean?,
force: boolean?,
}
): (boolean, string?)
packageDirectory = packageDirectory or process.cwd
local syncConfigPath = `{packageDirectory}{PLATFORM_SEP}default.project.json`
if fs.isFile(syncConfigPath) and not options.force then