chore: Add eslint-unicorn & fix

This commit is contained in:
Sidharth Vinod
2022-11-23 01:05:08 +05:30
parent 8116c8b40d
commit 7f4368415d
60 changed files with 494 additions and 539 deletions

View File

@@ -28,7 +28,7 @@ const lint = async (file: string): Promise<boolean> => {
dot: true,
});
const lintResults = await Promise.all(jisonFiles.map(lint));
if (lintResults.some((result) => result === false)) {
if (lintResults.includes(false)) {
process.exit(1);
}
})();