mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
chore: Add eslint-unicorn & fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
})();
|
||||
|
Reference in New Issue
Block a user