[update] migrate the project formatter from prettier and eslint to biome

This commit is contained in:
PrinOrange
2024-08-14 12:57:22 +08:00
parent 009be6e7d9
commit 81de437888
61 changed files with 480 additions and 3865 deletions

View File

@@ -8,6 +8,7 @@ export function checkAndCreateDirectory(dirPath: string) {
fs.accessSync(dirPath, fs.constants.R_OK | fs.constants.W_OK);
return true;
} catch (err) {
console.log(err);
throw err;
}
}
@@ -20,6 +21,7 @@ export function isDirectoryEmptySync(directory: string) {
const files = fs.readdirSync(directory);
return files.length === 0;
} catch (err) {
console.log(err);
throw err;
}
}